Restund giving me error: libre.so: cannot open shared object file: No such file or directory

Restund giving me error: libre.so: cannot open shared object file: No such file or directory

我使用以下方法在我的服务器上安装了 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。因此,您需要将其添加到您的库路径或在 Makefile 中将 DESTDIR 设置为 /usr/lib/。

nano /etc/ld.so.conf.d/restund.conf

将以下行添加到 .conf

/usr/local/lib

reload
ldconfig
restart

restund -d /etc/restund.conf

在你的终端上试试这个sudo ldconfig