我想用GTEST但執行告訴我g ++的標準lib路徑。而如何增加新的
./netTest: error while loading shared libraries: libgtest.so.0:
cannot open shared object file: No such file or directory
- 什麼是標準路徑在GCC鏈接查找庫
- 什麼是存儲庫 的Debian的標準路徑
- 如何添加libpaths到g ++(-L標誌是否正確?)
注2:我問,因爲GTEST的庫都在/usr/local/libs/
但有剛PYT hon和gtest。所有其他庫位於/usr/lib/
。因此,我猜測gtest安裝程序出錯了。
libgtest-dev只是v1.5的頭文件。 debian wheezy上沒有libgtest0這個共享庫。 ls.so.conf內容:'include /etc/ld.so.conf.d/ *。conf'。 /etc/ld.so.conf.d/libc.conf內容:'/ usr/local/lib'。這正是libgtest.so.0所在的地方。爲什麼我會提到這個錯誤? – ManuelSchneid3r
也許緩存沒有更新。以root身份運行'ldconfig -v'。 – chill