Valet-plus: Could not find installation path for: apcu

Created on 6 Jun 2020  路  4Comments  路  Source: weprovide/valet-plus

  • [x] I've checked the issue queue and could not find anything similar to my bug.
  • [x] I'm on the latest version of valet-plus (valet --version): <Valet-Plus-Version>
  • [x] I've run 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

Bug Needs review

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/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

All 4 comments

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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SanderAtom picture SanderAtom  路  23Comments

stanleyyylau picture stanleyyylau  路  17Comments

guarinogabriel picture guarinogabriel  路  15Comments

rav-redchamps picture rav-redchamps  路  13Comments

farmaworld picture farmaworld  路  18Comments