您的位置:首页 > 编程语言 > PHP开发

使用composer安装laravel遇到的一些小问题

2016-05-24 11:42 911 查看
1.Your configuration does not allow connection to http://ooxx/xxoo.git. See https://getcomposer.org/doc/06-config.md#secure-http for details.

镜像使用用的是http,而原地址是需要https,所以配置下关掉https就好了。

解决方案:

设置一个本地或全局的composer配置:

composer config secure-http false

全局设置: composer config -g secure-http false

zlib_decode(): data error

解决方案:

执行
composer self-update
即可

3.can’t create a Laravel project because mcrypt extension is missing

解决方案:
brew reinstall php56-mcrypt


4.用了第三个解决方案后,

PHP Warning:  PHP Startup: fileinfo: Unable to initialize module

Module compiled with module API=20050922, debug=0, thread-safety=0

PHP    compiled with module API=20060613, debug=0, thread-safety=0

These options need to match

in Unknown on line 0


解决方案:
brew reinstall php56-mcrypt --build-from-source
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息