ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
* ##安装扩展错误原因及说明: > composer 安装是每个包五分钟超时的。所以请注意了 > * composer install把安装依赖的时间也算进包安装时间了,遇到依赖多的,网络差的,就会出错了。还得重新弄。 > * 如果用composer require,则会把要依赖的包分开下载,这样就会减少很多错误 * ##安装错误: 一般有以下错误。 * php未开启openssl扩展 * 未安装CA证书 **错误详情** ![未安装CA证书](https://box.kancloud.cn/a5c6cf4d5e28f2d13d48ce428a3944ce_977x218.png) ~~~ PHP Warning: no valid certs found cafile stream: `E:\develop\phpStudy\cert\cacert.pem' in Command line code on line 1 Warning: no valid certs found cafile stream: `E:\develop\phpStudy\cert\cacert.pem' in Command line code on line 1 PHP Warning: copy(): Failed to enable crypto in Command line code on line 1 Warning: copy(): Failed to enable crypto in Command line code on line 1 PHP Warning: copy(https://getcomposer.org/installer): failed to open stream: operation failed in Command line code on line 1 Warning: copy(https://getcomposer.org/installer): failed to open stream: operation failed in Command line code on line ~~~ **解决办法:** 先下载:CA证书下载地址:http://curl.haxx.se/docs/caextract.html 修改php.ini配置,开启openssl扩展 ~~~ ;开启openssl扩展 extension=php_openssl.dll ;配置ca证书地址 openssl.cafile= E:\develop\phpStudy\cert\cacert.pem ~~~ * ##找不到包