I had a problem which appeared all of the sudden saying:
Unable to determine linked PHP.
which I could not solve so I uninstalled valet, php and dependencies. Then I installed fresh php7.1
but when I run valet install
I get quiet slightly similar error: Homebrew PHP appears not to be linked.
Homebrew can't find the correct PHP version, have you linked them up properly?
brew link php71
First, find the PHP version installed via.
brew list
In my case it was [email protected], then
brew link [email protected] --force --overwrite
and finally
valet install
:)
Homebrew can't find the correct PHP version, have you linked them up properly?
brew link php71
brew link [email protected] --force --overwrite
That will push this--
If you need to have this software first in your PATH instead consider running: echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.bash_profile echo 'export PATH="/usr/local/opt/[email protected]/sbin:$PATH"' >> ~/.bash_profile
I ran both independently then tried valet install (worked like a charm).
$ brew unlink php && brew link --force [email protected]
If you are coming here following a migration from Intel to M1 and having Valet not use the php cask from the /opt/ folder, this did the trick for me:
echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.zshrc
.
© 2022 - 2024 — McMap. All rights reserved.