繁体   English   中英

Laravel Composer需要Mac Sierra的问题

[英]Laravel Composer require issue with Mac Sierra

我正在尝试将Laravel 5 Facade for Goutte包含在我的应用程序中。 但是我收到以下错误:

 Problem 1
- namshi/jose 5.0.2 requires lib-openssl * -> the requested linked library openssl has the wrong version installed or is missing from your system, make sure to have the extension providing it.
- namshi/jose 5.0.2 requires lib-openssl * -> the requested linked library openssl has the wrong version installed or is missing from your system, make sure to have the extension providing it.
- namshi/jose 5.0.2 requires lib-openssl * -> the requested linked library openssl has the wrong version installed or is missing from your system, make sure to have the extension providing it.
- Installation request for namshi/jose (locked at 5.0.2) -> satisfiable by namshi/jose[5.0.2].

我在网上搜索过,它建议您安装新版本的PHP,然后尝试使用该版本,但是我已经通过自制软件安装了php56,它仍然无法正常工作。 当我跑步时:

which php

它说的路径是:

/usr/bin/php

但是brew将PHP安装到:

/usr/local/Cellar/php56/5.6.30_6/bin

我用以下行更新了.bash_profile:

export PATH=$PATH:/usr/local/Cellar/php56/5.6.30_6/bin

但是,即使重新启动终端之后,哪个php仍然返回/ usr / bin / php。

您可以尝试通过以下方式为新的php版本创建符号链接:

sudo ln /usr/local/Cellar/php56/5.6.30_6/bin/php /usr/local/bin/php

然后运行您的作曲家命令

php composer require weidner/goutte

要么

php composer.phar require weidner/goutte

希望这可以帮助 !

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM