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

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

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值