我在 Ubuntu 13.10 上安装 apache2,但安装后我尝试运行 apache showin 出现错误:
$ sudo ./httpd start
./httpd: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory
我尝试了网上提供的解决方案,但都没有用,请帮忙!!
$ ldd httpd
linux-vdso.so.1 => (0x00007ffff05fe000)
libpcre.so.1 => /usr/local/lib/libpcre.so.1 (0x00007f60741a5000)
libaprutil-1.so.0 => not found
libapr-1.so.0 => /usr/local/apr/lib/libapr-1.so.0 (0x00007f6073f71000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f6073d54000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f607398c000)
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f6073786000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f6073582000)
/lib64/ld-linux-x86-64.so.2 (0x00007f60743d9000)
答案1
首先尝试配置动态链接器运行时绑定
ldconfig
如果这不能解决你的问题,请尝试重新安装 libaprutil1
sudo apt-get install --reinstall libaprutil1