简体   繁体   English

Laravel Composer需要Mac Sierra的问题

[英]Laravel Composer require issue with Mac Sierra

I'm trying to include Laravel 5 Facade for Goutte in my application. 我正在尝试将Laravel 5 Facade for Goutte包含在我的应用程序中。 However I am getting the following error: 但是我收到以下错误:

 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].

I have searched online and it suggests installing a new version of PHP and try using that instead however I have installed php56 via homebrew and its still not working. 我在网上搜索过,它建议您安装新版本的PHP,然后尝试使用该版本,但是我已经通过自制软件安装了php56,它仍然无法正常工作。 When i run: 当我跑步时:

which php

it says the path is: 它说的路径是:

/usr/bin/php

However brew installed PHP to: 但是brew将PHP安装到:

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

I have updated my .bash_profile with the following line: 我用以下行更新了.bash_profile:

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

However even after restarting the terminal which php still returns /usr/bin/php. 但是,即使重新启动终端之后,哪个php仍然返回/ usr / bin / php。

You can try to create a symlink for new php version this way : 您可以尝试通过以下方式为新的php版本创建符号链接:

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

Then run your composer command 然后运行您的作曲家命令

php composer require weidner/goutte

or 要么

php composer.phar require weidner/goutte

Hope this helps ! 希望这可以帮助 !

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

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