error while loading shared libraries錯誤的解決

linux下,安裝一個軟件的時候,遇見問題:error while loading shared libraries: libmpc.so.3: cannot open shared object file: No such file or directory

有兩種情況,第一種,你已經安裝這個東西;系統沒找到;第二種,你沒安裝;第二種這裏不再贅述,說第一種解決方案。


第一步,找到你的這個文件:

 find -name  libmpc.so.3

./home/dkeeper/tools/mpc-1.0/lib/libmpc.so.3.0.0


第二部,配置文件:

root@DKeeper:/# cd /etc
root@DKeeper:/etc# vim ld.so.conf

之後將上邊的地址加進去就好


第三步,更新


root@DKeeper:/etc# ldconfig -v


問題解決。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章