Valet-plus: PHP 7.2 error: Unable to determine linked PHP

Created on 2 Mar 2018  Â·  7Comments  Â·  Source: weprovide/valet-plus

Hi!

I'm trying to use Valet with PHP 7.2 but brew says me "Unable to determine linked PHP".

imagen

With PHP 7.0 or 7.1 everything works perfect!

imagen

Thanks!

Bug

Most helpful comment

Check if which php contains the correct php version. If it does, use ln -s $(which php) /usr/local/bin/php to link. (it's still a workaround, but it works)

All 7 comments

https://github.com/Homebrew/homebrew-php/commit/8771c68f3ddfee62d9e97177449010c2968f91d1#diff-4739b7cd74be3128a6b717288e740259

Homebrew migrated the php7.2 to the core php ... now valet is broken for 7.2

Somehow fixed this with some hardcoding (and broke the version switching). Looking forward for a "real" fix.

I'm facing the same issue. Anything new here? Or is there a workaround beside switching back to 7.1? Appreciate your support!
image

I have the same, or maybe similar problem when switching from php70 to php7.1.

When i try to switch from 7.0 to 7.1, i get this message after the [php71] Installing:
Warning: [email protected] is keg-only and must be linked with --force

After [php70] Stopping i get this: PHP Warning: readlink(): No such file or directory in /Users/XXXXX/.composer/vendor/weprovide/valet-plus/cli/Valet/Filesystem.php on line 314

After some stack trace, i get Unable to determine linked PHP.

Check if which php contains the correct php version. If it does, use ln -s $(which php) /usr/local/bin/php to link. (it's still a workaround, but it works)

Please try our new release. After upgrading, please run ‘valet fix’ followed by ‘valet install’. Please open a new ticket or join our chat on gitter if you encounter any issues.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MaxSouza picture MaxSouza  Â·  46Comments

farmaworld picture farmaworld  Â·  18Comments

dwillitzer picture dwillitzer  Â·  18Comments

jahvi picture jahvi  Â·  24Comments

mike-hendriks picture mike-hendriks  Â·  25Comments