|
本文實例講述了安裝安裝ImageMagick出現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這個目錄下,所以在/etc/ld.so.conf中加入/usr/local/lib這一行,可以解決此問題。
將 /etc/ld.so.conf存檔后,還要執行「/sbin/ldconfig 主站蜘蛛池模板: 车致| 瑞金市| 武义县| 广昌县| 化德县| 句容市| 肇州县| 宁海县| 屏南县| 张家港市| 芒康县| 山阴县| 正安县| 吴桥县| 武鸣县| 白玉县| 乌拉特中旗| 滕州市| 西乡县| 沙雅县| 清新县| 双流县| 隆化县| 伊金霍洛旗| 化州市| 开封县| 诸城市| 时尚| 巍山| 万州区| 广州市| 福建省| 扶余县| 格尔木市| 杨浦区| 库车县| 卓资县| 玛多县| 宣化县| 兴隆县| 五峰|