无法通过自制OSX Yosemite安装mcrypt

时间:2014-11-25 18:03:30

标签: php macos homebrew mcrypt

运行OSX 10.10.1。我安装了自制软件,然后尝试运行以下命令:

brew install mcrypt

之后,它经历了一个下载/安装文件的漫长过程。然后它给了我一个错误:

checking for mhash_keygen in -lmhash... no
configure: error: "You need at least libmhash 0.8.15 to compile this program.     
http://mhash.sf.net/"

在终端中运行php -v:

PHP 5.6.2 (cli) (built: Nov  2 2014 09:34:41) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans

感谢任何帮助。在OSX Yosemite中,一切似乎都在破碎......

1 个答案:

答案 0 :(得分:10)

我遇到了同样的问题,卸载/重新安装mhash解决了这个问题:

brew uninstall mhash

brew install mhash

在我这样做后,我能够正确安装mcrypt。