Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Homebrew PHP appears not to be linked. - Valet

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.

like image 399
Epsilon47 Avatar asked Apr 30 '19 08:04

Epsilon47


3 Answers

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

:)

like image 176
zarpio Avatar answered Oct 19 '22 15:10

zarpio


Homebrew can't find the correct PHP version, have you linked them up properly?

brew link php71

like image 40
Wouter Van Damme Avatar answered Oct 19 '22 17:10

Wouter Van Damme


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).

like image 44
PT-83 Avatar answered Oct 19 '22 16:10

PT-83