Install composer on archlinux {code ...} the following error message appears: {code ...} so I {code ...} test. php: {code ...} obtain the {code...} where the problem is located ...} the problem is how to enable ssl for cli. In php. ini, ssl is enabled. According to official instructions, composer is installed on archlinux.
$:curl -s http://getcomposer.org/installer | php
The following error message is displayed:
Some settings on your machine make Composer unable to work properly.Make sure that you fix the issues listed below and run this script again:The openssl extension is missing, which means that secure HTTPS transfers are impossible.If possible you should enable it or recompile php with --with-openssl
So I
$:php test.php | grep ssl
Test. php:
Locate the problem
OpenSSL support => disabled (install ext/openssl)
The problem is how to enable ssl for cli. In php. ini, ssl is enabled. According to the official statement, you may need to add a file php-cli.ini, final and fruitless.
Reply content:
Install composer on archlinux
$:curl -s http://getcomposer.org/installer | php
The following error message is displayed:
Some settings on your machine make Composer unable to work properly.Make sure that you fix the issues listed below and run this script again:The openssl extension is missing, which means that secure HTTPS transfers are impossible.If possible you should enable it or recompile php with --with-openssl
So I
$:php test.php | grep ssl
Test. php:
Locate the problem
OpenSSL support => disabled (install ext/openssl)
The problem is how to enable ssl for cli. In php. ini, ssl is enabled. According to the official statement, you may need to add a file php-cli.ini, final and fruitless.
Check whether the installation is successful.phpInstalledopensslIf not, go to the source codeetc/openssl. Whether the environment is effectivephpinfo()The result is correct, notphp.iniYou will have it.