简体   繁体   English

Linux composer安装错误“需要openssl扩展”

[英]Linux composer install error 'The openssl extension is required'

I have use 'composer install' command and it say我使用了“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 disable this error  
  , at your own risk, by setting the 'disable-tls' option to true. 

I use on Linux os with php 7.2我在带有 php 7.2 的 Linux 操作系统上使用

How can I fix this?我怎样才能解决这个问题?

I already look in php.ini and can't see an extension for openssl.我已经查看了 php.ini 并且看不到 openssl 的扩展名。

It's not safe to disable SSL/TLS protection.禁用 SSL/TLS 保护是不安全的。 but if you are confident enough with the working environment try this.但如果你对工作环境有足够的信心,试试这个。

composer config -g -- disable-tls true

then然后

composer install

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM