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

By Tristan Cohan
at 2008-10-01T16:16
at 2008-10-01T16:16
Table of Contents
你改了/usr/bin/ld? 還是/etc/ld.so.conf?
如果是後者的話, 貼出來看一下
那個ld說 -lcv找不到
就是說你的/etc/ld.so.conf中列的地方都找不到一個libcv.so的文件
試著找一找它, find / -iname libcv.so
看看以前你裝在什地方
※ 引述《Reinhard (偽ABJ)》之銘言:
: 承上文 參考了這篇 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
--
如果是後者的話, 貼出來看一下
那個ld說 -lcv找不到
就是說你的/etc/ld.so.conf中列的地方都找不到一個libcv.so的文件
試著找一找它, find / -iname libcv.so
看看以前你裝在什地方
※ 引述《Reinhard (偽ABJ)》之銘言:
: 承上文 參考了這篇 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
--
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