Installing laravel 4 via composer?

蹲街弑〆低调 提交于 2020-01-06 11:06:46

问题


I have composer installed and openSSL extension enable in PHP but I still get the error (I restarted wamp twice)

Afflicto@Afflicto-PC /cygdrive/e/wamp/www/wirezapp2
$ composer create-project laravel/laravel wirezapp --prefer-dist
Installing laravel/laravel (v4.0.5)
  - Installing laravel/laravel (v4.0.5)
    Downloading: 100%
    Downloading: 100%
    Downloading: 100%

[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?



create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repository-
url="..."] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress]
[--  keep-vcs] [package] [directory] [version]

回答1:


Figured it out:

The php.ini in wamp is different than that used by apache/wamp, so I had to enable the open ssl extension via php.ini found in wamp/bin/php/php5.4.3/php.ini



来源:https://stackoverflow.com/questions/17606131/installing-laravel-4-via-composer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!