/usr/bin/ld 不小心被改爛了 - Linux

By Odelette
at 2008-10-01T16:07
at 2008-10-01T16:07
Table of Contents
承上文 參考了這篇 http://tinyurl.com/52efab
把 /etc/ld.so.conf
在第一行加上了
/usr/local/lib
從此以後我的所以程式都不能跑
linking 也不會過了?
原本有裝的一些 library 全部都被 ld 抱怨說找不到…
該怎麼樣 restore 回來呢? QQ
舉一錯誤訊息為例:
make -f Makefile CXXFLAGS="-c -O2"
make[1]: Entering directory
`/home/jutirain/Research/Video_Segmentation/Code/trunk'
g++ -c -O2 main.cpp
g++ -c -O2 ImageBox.cpp
g++ -c -O2 DoFunc.cpp
g++ -c -O2 GraphCut/graph.cpp
g++ -c -O2 GraphCut/maxflow.cpp
g++ -c -O2 GraphCut/GraphCut.cpp
g++ -c -O2 OpticalFlowSand.cpp
g++ main.o ImageBox.o DoFunc.o graph.o maxflow.o GraphCut.o OpticalFlowSand.o
-o video_segmentation `fltk-config --cxxflags --ldflags --use-images` -lgil2
-lANN -lm -lcv -lhighgui -lcvaux
/usr/bin/ld: cannot find -lcv
collect2: ld returned 1 exit status
make[1]: *** [all] Error 1
make[1]: Leaving directory
`/home/jutirain/Research/Video_Segmentation/Code/trunk'
make: *** [optimize] Error 2
--
把 /etc/ld.so.conf
在第一行加上了
/usr/local/lib
從此以後我的所以程式都不能跑
linking 也不會過了?
原本有裝的一些 library 全部都被 ld 抱怨說找不到…
該怎麼樣 restore 回來呢? QQ
舉一錯誤訊息為例:
make -f Makefile CXXFLAGS="-c -O2"
make[1]: Entering directory
`/home/jutirain/Research/Video_Segmentation/Code/trunk'
g++ -c -O2 main.cpp
g++ -c -O2 ImageBox.cpp
g++ -c -O2 DoFunc.cpp
g++ -c -O2 GraphCut/graph.cpp
g++ -c -O2 GraphCut/maxflow.cpp
g++ -c -O2 GraphCut/GraphCut.cpp
g++ -c -O2 OpticalFlowSand.cpp
g++ main.o ImageBox.o DoFunc.o graph.o maxflow.o GraphCut.o OpticalFlowSand.o
-o video_segmentation `fltk-config --cxxflags --ldflags --use-images` -lgil2
-lANN -lm -lcv -lhighgui -lcvaux
/usr/bin/ld: cannot find -lcv
collect2: ld returned 1 exit status
make[1]: *** [all] Error 1
make[1]: Leaving directory
`/home/jutirain/Research/Video_Segmentation/Code/trunk'
make: *** [optimize] Error 2
--
Tags:
Linux
All Comments
Related Posts
PAFF interlacing is not implemented?

By Edith
at 2008-10-01T16:02
at 2008-10-01T16:02
shell script for-loop increment

By Susan
at 2008-10-01T15:43
at 2008-10-01T15:43
Can't open display

By Leila
at 2008-10-01T14:08
at 2008-10-01T14:08
Can't open display

By Sarah
at 2008-10-01T12:40
at 2008-10-01T12:40
gdb/strace 一問

By Anonymous
at 2008-10-01T11:37
at 2008-10-01T11:37