安裝ImageMagick出現(xiàn)error while loading shared libraries的解決方法
本文實例講述了安裝安裝ImageMagick出現(xiàn)error while loading shared libraries的解決方法。分享給大家供大家參考。具體解決方法如下:
運行程序時,如遇到像下列這種錯誤:
./tests: error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or directory
那就表示系統(tǒng)不知道xxx.so 放在哪個目錄下。
這個時候就要在/etc/ld.so.conf中加入xxx.so所在的目錄。
一般而言,有很多so檔會在/usr/local/lib這個目錄下,所以在/etc/ld.so.conf中加入/usr/local/lib這一行,可以解決此問題。
將 /etc/ld.so.conf存檔后,還要執(zhí)行「/sbin/ldconfig –v」來更新一下才會生效。
希望本文所述對大家有所幫助。
相關(guān)文章
php中比較簡單的導(dǎo)入phpmyadmin生成的sql文件的方法
做網(wǎng)站的時候 我們會制作一個安裝文件 就需要用到sql文件創(chuàng)建數(shù)據(jù)庫。分享一下 我所用的方法。2011-06-06
php獲取遠(yuǎn)程文件內(nèi)容的函數(shù)
這篇文章主要介紹了關(guān)于php獲取遠(yuǎn)程文件內(nèi)容的函數(shù)代碼,使用這個函數(shù)也可以獲取圖片2015-11-11

