执行 ./configure 编译源码,报错如下:
checking whether mhash >= 0.8.15... no
configure: error: "You need at least libmhash 0.8.15 to compile this program. http://mhash.sf.net/"
奇怪,libmhash安装的是 mhash-0.9.9.9.tar.gz ,怎么会报这样的错误呢,难道是没找到?
[plain] view plain copy
ln -s /usr/local/lib/libmhash.a /usr/lib/libmhash.a
ln -s /usr/local/lib/libmhash.la /usr/lib/libmhash.la
ln -s /usr/local/lib/libmhash.so /usr/lib/libmhash.so
ln -s /usr/local/lib/libmhash.so.2 /usr/lib/libmhash.so.2
ln -s /usr/local/lib/libmhash.so.2.0.1 /usr/lib/libmhash.so.2.0.1
一通上面的操作之后,还是不行。
打开/etc/ld.so.conf,在文件之后,添加一行:
[html] view plain copy
/usr/local/lib
然后,执行 ldconfig ,重新编译即可
本文出自 “火星男-神自不凡” 博客,请务必保留此出处http://marsman.blog.51cto.com/6410055/1915645
编译mcrypt时,报错:You need at least libmhash 0.8.15
原文地址:http://marsman.blog.51cto.com/6410055/1915645