酿造医生投掷大量错误?

时间:2013-08-12 23:04:08

标签: laravel homebrew mcrypt

我最近在我的Mac上安装了Laravel,开始学习它,因为我听说过好东西。

我的第一个错误是访问/public/时的错误:

  

Laravel需要Mcrypt PHP扩展。

然后我安装了 php54-mcrypt ,并在昨天晚上继续学习。

我今天下班回家,点击'brew update'然后出现同样的错误?

然后我运行brew install php54-mcrypt来接收:

  

警告:已安装php54-mcrypt-5.4.16

然后我跑brew doctor接收;

  

警告:“config”脚本存在于系统或Homebrew目录之外       ./configure脚本经常查找* -config脚本以确定是否       安装软件包,以及使用什么附加标志       编译和链接。

     

在您的路径中添加其他脚本可能会混淆通过安装的软件       如果配置脚本覆盖系统或提供的Homebrew,则自制       同名脚本。我们找到了以下“配置”脚本:

/opt/sm/pkg/active/bin/curl-config
/opt/sm/pkg/active/bin/ncurses5-config
/opt/sm/pkg/active/bin/ncursesw5-config
/opt/sm/pkg/active/bin/pkg-config
/opt/sm/pkg/active/bin/xml2-config
/opt/sm/pkg/active/bin/xslt-config
PHP Warning:  PHP Startup: Unable to load dynamic library
'/usr/local/Cellar/php54-mcrypt/5.4.16/mcrypt.so' - 
dlopen(/usr/local/Cellar/php54-mcrypt/5.4.16/mcrypt.so, 9): 
Library not loaded: /usr/local/lib/libmcrypt.4.4.8.dylib
Referenced from: /usr/local/Cellar/php54-mcrypt/5.4.16/mcrypt.so
Reason: image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 
'/usr/local/Cellar/php54-mcrypt/5.4.16/mcrypt.so' - 
dlopen(/usr/local/Cellar/php54-mcrypt/5.4.16/mcrypt.so, 9): 
Library not loaded: /usr/local/lib/libmcrypt.4.4.8.dylib
Referenced from: /usr/local/Cellar/php54-mcrypt/5.4.16/mcrypt.so
Reason: image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 
'/usr/local/Cellar/php54-mcrypt/5.4.16/mcrypt.so' - 
dlopen(/usr/local/Cellar/php54-mcrypt/5.4.16/mcrypt.so, 9): 
Library not loaded: /usr/local/lib/libmcrypt.4.4.8.dylib
Referenced from: /usr/local/Cellar/php54-mcrypt/5.4.16/mcrypt.so
Reason: image not found in Unknown on line 0

我是新手,所以如果你问我一个我不确定的问题,请跟我一起去。

1 个答案:

答案 0 :(得分:0)

/ usr / local / Cellar中的东西被MacPorts放到那里,MacPorts是Mac的早期软件包经理。你可能想删除它。 https://guide.macports.org/chunked/installing.macports.uninstalling.html