3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

valet install で 「Unable to determine linked PHP.」と言われたら

Posted at

環境

  • Mac OS
  • Laravel Valet 2.0.12

遭遇したエラー

$ valet install時に下記のエラーが発生

$ valet install
Stopping nginx...
Installing nginx configuration...
Installing nginx directory...
Updating PHP configuration...

In Brew.php line 182:

  Unable to determine linked PHP.


install

つまり、Unable to determine linked PHP.と言われている。

解決法

homebrewでPHPへのリンクをきちんと貼る。

僕の場合、
$ brew install php71で7系をインストールしていたので、
$ brew link php71 --forceによって、PHPへのリンクを貼りました。

すると…

$ valet install
Stopping nginx...
Installing nginx configuration...
Installing nginx directory...
Updating PHP configuration...
Restarting php@7.1...
Installing dnsmasq...
[dnsmasq] is not installed, installing it now via Brew... 🍻
Restarting dnsmasq...
Restarting nginx...

Valet installed successfully!

インストール完了しました!

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?