我使用以下命令在我的服务器上安装了libre 0.4.16(我这样做是为了root
):
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 /。
nano /etc/ld.so.conf.d/restund.conf
在.conf中添加以下行
/usr/local/lib
和
reload
ldconfig
restart
restund -d /etc/restund.conf