大家都说好记性不如烂blog

博客园 首页 新随笔 联系 订阅 管理

got error when ./runTC

./runTC: error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or directory

 那就表示系統不知道xxx.so 放在哪個目錄下。

這個時候就要在/etc/ld.so.conf中加入xxx.so所在的目錄。

 一般而言,有很多so檔會在/usr/local/lib這個目錄下,所以在/etc/ld.so.conf中加入/usr/local/lib這一行,可以解決此問題。

对于ET来讲需要把/ET/*/lib 放进去。


將 /etc/ld.so.conf存檔後,還要執行「/sbin/ldconfig –v」來更新一下才會生效。

 

照上执行后遇到一个问题,导致team的buildserver不能正常build。。。。真无语。。。

看来还有待斟酌。。。

等过后试试。。。

“export LD_LIBRARY_PATH=$PWD/../lib:$PWD/../Qt/qt/

posted on 2010-12-10 14:37  leqiangw  阅读(172)  评论(0编辑  收藏  举报