Php Linux composer安装错误';openssl扩展是必需的';
我使用了'composer install'命令,它说Php Linux composer安装错误';openssl扩展是必需的';,php,linux,composer-php,Php,Linux,Composer Php,我使用了'composer install'命令,它说 [Composer\Exception\NoSslException] The openssl extension is required for SSL/TLS protection but is not availab le. If you can not enable the openssl extension, you can disab
[Composer\Exception\NoSslException]
The openssl extension is required for SSL/TLS protection but is not availab
le. If you can not enable the openssl extension, you can disable this error
, at your own risk, by setting the 'disable-tls' option to true.
我在Linux操作系统上使用PHP7.2
我怎样才能解决这个问题
我已经在php.ini中查看了,没有看到openssl的扩展。禁用SSL/TLS保护是不安全的。但是如果你对工作环境有足够的信心,试试这个
composer config -g -- disable-tls true
然后
或者直接安装它:/
composer install