libtcmalloc.so.4 链接失败
error while loading shared libraries: libtcmalloc.so.4: cannot open shared object file: No such file or directory
楼主在安装lnmp时,开启了tmalloc优化,结果在安装过程中报了如上错误;
解决办法:
- 用locate命令或者find命令查找确认该文件确实存在的路径;
- 将路径加载到ld的配置中,命令就一句(root权限)
echo /usr/local/lib > /etc/ld.so.conf.d/libtcmalloc.conf
楼主的文件位于/usr/local/lib
来自 <http://www.th7.cn/Program/cp/201310/154663.shtml>