error while loading shared libraries錯誤的原因及解決方法
在linux下執行程式時,發現了error while loading shared libraries
這種錯誤,一時間不知道解決辦法,在網上搜索,終於解決了:
./tests: 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
這個目錄底下,去這個目錄底下找,果然發現自己所需要的.so
所以,在/etc/ld.so.conf
中加入/usr/local/lib
這一行,儲存之後,再執行:/sbin/ldconfig –v
更新一下配置即可。
參考這裡
相關推薦
error while loading shared libraries錯誤的原因及解決方法
在linux下執行程式時,發現了error while loading shared libraries這種錯誤,一時間不知道解決辦法,在網上搜索,終於解決了: ./tests: error wh
error while loading shared libraries 錯誤解決辦法總結,
最近安裝了裝了幾次ACE庫,裝起來會出現很多問題。 其實我發現直接按照ace的幫助文件進行編寫。就差不多。 安裝完成後,經常會遇到以下問題error while loading shared libraries,就是編譯器沒有找到相應的lib庫檔案。 從網際網路上找
linux下的centos出現error while loading shared libraries錯誤
例如serice searchd start開啟sphinx時提示:error while loading shared libraries: libmysqlclient.so.20: cannot open shared object file: No such fil
Linux連結boost庫錯誤error while loading shared libraries錯誤解決方法
那就表示系統不知道xxx.so放在哪個目錄下,這個時候就要在/etc/ld.so.conf中加入xxx.so所在的目錄。首先查詢存在的目錄,結果為/usr/local/boost_1_51_0/~/boost_install/lib/,具體操作如下:
error while loading shared libraries: xxx.so.x"錯誤的原因和解決辦法
exp 不想 ech cache 方案 動態鏈接庫 direct 就會 export 一般我們在Linux下執行某些外部程序的時候可能會提示找不到共享庫的錯誤, 比如: tmux: error while loading shared libraries: libe
error while loading shared libraries: xxx.so.x" 錯誤的原因和解決辦法
今天在執行一個protobuf程式時,提示error while loading shared libraries: libprotobuf.so.8: cannot open shared object file: No such file or directory錯誤。google了一下,是由於找不到li
error while loading shared libraries: xxx.so"錯誤的原因和解決辦法
原因一般有兩個, 一個是作業系統裡確實沒有包含該共享庫(lib*.so.*檔案)或者共享庫版本不對, 遇到這種情況那就去網上下載並安裝上即可. 另外一個原因就是已經安裝了該共享庫, 但執行需要呼叫該共享庫的程式的時候, 程式按照預設共享庫路徑找不到該共享庫檔案. 所以安裝共享庫後要注意共享庫路徑設定問題,
錯誤"error while loading shared libraries: xxx.so.x" 的原因和解決辦法
一般我們在Linux下執行某些外部程式的時候可能會提示找不到共享庫的錯誤,比如: error while loading shared libraries: libprotobuf.so.9: cannot open shared object file: N
Nginx啟動錯誤:error while loading shared libraries: libpcre.so.1
bsp crypto UC shared include libc.so.6 aries while 進一步 # /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx: error while loading sh
Nginx啟動錯誤:error while loading shared libraries: libpcre.so.0
sbin 共享 shared 啟動 direct error oca lib while 今天測試的時候,啟動一個其他機器預編譯好的nginx到目標測試機器(OEL 7.4)啟動的時候,報了下列錯誤: /usr/local/nginx/sbin/nginx: error w
解決軟件啟動報error while loading shared libraries: libgd.so.2: cannot open shared object錯誤
data dso htm inux libpcre 通過 libc.so.6 code 相關 解決軟件啟動報error while loading shared libraries: libgd.so.2: cannot open shared object錯誤 今天安
錯誤解決:當前目錄下有so,提示 error while loading shared libraries
真是讓人莫名其妙…… ldd檢視 ldd gh_main linux-vdso.so.1 => (0x00007ffed294f000) libgh2mqtt.so (0x00007f4475a29000) libgh2mysql.so (0x0000
mysq安裝錯誤:error while loading shared libraries: libaio.so.1: cannot open shared object file: No such
centos6安裝mysq5.6 錯誤資訊:Installing MySQL system tables..../bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object
PostgreSQL使用者建立刪除及error while loading shared libraries解決方法
1.為資料庫建立一個pg_test_user使用者;[[email protected] lib]# su - postgres [[email protected] ~]$ createuser pg_test_user createuser: err
ubuntu 12.04 LTS 解決DB2 V10.5.0.1 64bit 安裝中的error while loading shared libraries: libnuma.so.1錯誤
[email protected]:~$ sudo apt-get install numactl正在讀取軟體包列表... 完成正在分析軟體包的依賴關係樹 正在讀取狀態資訊... 完成 下列軟體包是自動安裝的並且現在不需要了: libope
錯誤解決error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file
前提:ubuntu-debug機器上向SVN提交了pdu-IVT,想在別的普通機器上驗證直接make能否成功,編譯出的使用者程式能否執行。 工作PC機上裝有VMware,裡面的ubuntu版本跟ubuntu-debug機器上相同,都是ubuntu 11.10版本。 VMw
java 罕見的依賴報錯 jstat: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
玩意兒 rpm 文件 .com pen jdk1 obj not found linu java 都用了N長時間了,突然,意外地發現有一個依賴的so文件從來沒找見過 # ldd /usr/bin/java linux-vdso.so.1 => (0x00007ff
error while loading shared libraries: libssl.so.6: cannot open shared object file
ldd yum check_tcp libssl.so.6 openssl098e-0.9.8e-20 [root@ ~]# /usr/local/nagios/libexec/check_tcp -H 127.0.0.1 80/usr/local/nagios/libexec/check
openCV編譯的程序運行時error while loading shared libraries
onf har font spa 出現 程序 err mil xxx 出現這類錯誤表示,系統不知道xxx.so放在哪個目錄下,這時候就要在/etc/ld.so.conf中加入xxx.so所在的目錄。 一般而言,有很多的so會存放在/usr/local/lib這個目錄底下,去
memcache啟動報錯:memcached: error while loading shared libraries: libevent-XXXXX5: cannot 。。。。
share mem dev 鏈接 debug 修改文件 memcache null 鏈接地址 創建連接 ln -s /usr/lib/libevent-2.1.so.6 /usr/lib/libevent-2.1.so.6 如果還不行就下面解決 執行下面語句查看鏈接