valet --version): <Valet-Plus-Version>valet fix and valet install after updating and before submitting my issue/feature.What is the problem?
Valet could not download and install pecl. I get the error below when i run valet install. Any ideas on how i could fix this?
[php] Checking for errors within the php installation...
[nginx] Stopping
[[email protected]] Stopping
[[email protected]] Stopping
[[email protected]] Stopping
[[email protected]] Stopping
[redis] Stopping
[devtools] Installing tools
[devtools] wp-cli already installed
[devtools] pv already installed
[devtools] geoip already installed
[devtools] zlib already installed
[binaries] Installing binaries
[BREW TAP] henkrehorst/php already installed
[PECL] Updating PECL channel: pecl.php.net
[PECL] Installing extensions
In Pecl.php line 146:
Could not find installation path for: apcu
Could not download from "https://pecl.php.net/get/apcu-5.1.17.tgz", cannot download "pecl/apcu" (Connection to `ssl://pecl.php.
net:443' failed: )
Error: cannot download "pecl/apcu"
Download failed
install failed
Pecl issues are usually caused by an invalid openssl directory. Homebrew will install openssl into the following directory: /usr/local/etc/[email protected]
But PHP looks for it at the following location in all of its default configuration files in valet: /usr/local/etc/openssl
The solution to this is to create a symbolic link between the two using the following command:
ln -s /usr/local/etc/[email protected] /usr/local/etc/openssl
PLease add this solution to the installation checklist - fresh install mojave failed and this fixed it
@clnt Your solution worked perfectly, thank you!
@clnt Thank you! It worked very well in MacOS Catalina!
Most helpful comment
Pecl issues are usually caused by an invalid openssl directory. Homebrew will install openssl into the following directory:
/usr/local/etc/[email protected]But PHP looks for it at the following location in all of its default configuration files in valet:
/usr/local/etc/opensslThe solution to this is to create a symbolic link between the two using the following command:
ln -s /usr/local/etc/[email protected] /usr/local/etc/openssl