0

我最近在我的 Mac 上安装了 Laravel 以开始学习它,因为我听到了一些好消息。

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

Laravel 需要 Mcrypt PHP 扩展。

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

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

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

警告:php54-mcrypt-5.4.16 已经安装

然后我跑去brew doctor接;

警告:“config”脚本存在于您的系统或 Homebrew 目录之外。/configure 脚本通常会查找 *-config 脚本以确定是否安装了软件包,以及在编译和链接时要使用哪些附加标志。

如果配置脚本覆盖系统或 Homebrew 提供的同名脚本,则在路径中包含其他脚本可能会混淆通过 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
4

1 回答 1

0

/usr/local/Cellar 中的东西是由 MacPorts 放在那里的,MacPorts 是一个早期的 mac 包管理器。你可能想删除它。https://guide.macports.org/chunked/installing.macports.uninstalling.html

于 2014-03-20T14:26:48.593 回答