我用下面(我這樣做是爲root
)安裝自由報0.4.16我的服務器上:Restund給我的錯誤:libre.so:無法打開共享對象文件:沒有這樣的文件或目錄
wget http://creytiv.com/pub/re-0.4.16.tar.gz
tar xf re-0.4.16.tar.gz
cd re-0.4.16/
make
make install
在那之後,我回到了父文件夾,並安裝restund像這樣:
wget http://creytiv.com/pub/restund-0.4.12.tar.gz
tar xf restund-0.4.12.tar.gz
cd restund-0.4.12/
make
make install
在此之後,我試圖運行在主文件夾中的以下內容:
restund ./restund-0.4.12/etc/restund.conf
它給了我這個錯誤:
restund: error while loading shared libraries: libre.so: cannot open shared object file: No such file or directory
我搜索這件事,我在主目錄跑ldconfig
,但無濟於事。
對此問題的任何其他修復?是因爲我是以root
用戶身份運行它嗎?
我在我的服務器上運行CentOS 6.4 Linux,如果有幫助的話。
可能你提供更多的細節?對不起 - 對Linux環境不太熟悉:) – think123
我檢查了,是的你是對的 -/usr/local/lib裏面有一個'libre.so'文件。我應該從這裏做什麼? – think123
最快的方法是[設置LD_LIBRARY_PATH](http://stackoverflow.com/questions/13428910/how-to-set-the-environmental-variable-ld-library-path-in-linux)。更好的是改變系統庫路徑,如圖所示(這裏)[http://blog.andrewbeacock.com/2007/10/how-to-add-shared-libraries-to-linuxs.html]。或者編輯Makefile並重新安裝到/ usr/lib。如此多的選擇:-) –