【c/c++】第一次使用-lwiredtiger時報錯:can not open shared object file

編譯鏈接報錯:can not open shared object file: no such file or directory
1. sudo vim /etc/ld.so.conf
2. 因爲libwiredtiger.so默認放到/usr/local/lib,所以打開後添加庫路徑 /usr/local/lib
3. 保存退出,執行 sudo ldconfig
4. 再次鏈接不報錯

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