Restund给我的错误:libre.so:无法打开共享对象文件:没有这样的文件或目录
问题描述:
我用下面(我这样做是为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,如果有帮助的话。
答
我认为libre默认安装到/ usr/local/lib。因此,您需要将其添加到您的库路径中,或将DESTDIR设置为Makefile中的/ usr/lib /。
答
$纳米/etc/ld.so.conf.d/restund.conf
添加以下行的.conf
在/ usr/local/lib目录
重装 $ LDCONFIG
重启
$ restund -d /etc/restund.conf
可能你提供更多的细节?对不起 - 对Linux环境不太熟悉:) – think123
我检查了,是的你是对的 -/usr/local/lib里面有一个'libre.so'文件。我应该从这里做什么? – think123
最快的方法是[设置LD_LIBRARY_PATH](http://*.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。如此多的选择:-) –