简体   繁体   English

Laravel 4与Composer一起安装

[英]Laravel 4 installation with composer

I wanted to try out the Laravel 4 but, unfortunately, got stuck at the very beginning. 我想试用Laravel 4,但不幸的是,它一开始就卡住了。 When I try to install it using composer as mentioned in the Laravel 4 documentation, I get the following error: 当我尝试使用Laravel 4文档中提到的composer安装它时,出现以下错误:

[Composer\\Downloader\\TransportException] The " http://nodeload.github.com/laravel/laravel/zip/v4.0.5 " file could not be downloaded: failed to open stream: Unable to find the socket transport "SSL" - did you forget to enable it when you configured PHP? [Composer \\ Downloader \\ TransportException]无法下载“ http://nodeload.github.com/laravel/laravel/zip/v4.0.5 ”文件:无法打开流:无法找到套接字传输“ SSL”-您在配置PHP时是否忘记启用它?

I have PHP 5.5.0 with OpenSSL 0.9.8x running on a Mountain Lion 10.8.4. 我有在Mountain Lion 10.8.4上运行的带有OpenSSL 0.9.8x的PHP 5.5.0。 Does anyone have a clue how on earth I can fix this? 有谁知道我怎么能解决这个问题?

I have tried googling through all of the dark corners of the internet, 2006 forums but to no avail...... 我曾尝试在2006年论坛的所有黑暗角落中进行谷歌搜索,但无济于事……

Any help is appreciated. 任何帮助表示赞赏。 Thank you! 谢谢!

Edit your php.ini file and add 编辑您的php.ini文件并添加

extension=php_openssl.dll

and then restart the apache and your ssl should be detected. 然后重新启动apache,应该会检测到您的ssl。

Hope this will help. 希望这会有所帮助。

If you are using WAMP you should edit php.ini in your Apache folder. 如果您使用的是WAMP,则应在Apache文件夹中编辑php.ini。 for some reason composer uses that php.ini instead of php.ini stored in php folder. 由于某些原因,作曲家使用该php.ini而不是存储在php文件夹中的php.ini。

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

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