Laravel valet linked php error

后端 未结 6 564
温柔的废话
温柔的废话 2021-01-17 19:07

I got an error.

$ valet install

[DomainException]                
Unable to determine linked PHP.  

install

\'which\' command returns:

6条回答
  •  伪装坚强ぢ
    2021-01-17 19:37

    Homebrew creates (or attempts to create) symlinks in /usr/local/bin.

    Start by running the following to attempt to create a link.

    brew link php70
    

    It'll give you information as to whether or not it was successful. Occasionally permissions are problematic and you can resolve this with

    sudo chown -R `whoami`:admin /usr/local/bin
    

    Then try running the brew link command again.

    Alternately brew link may give you instructions, or you can use brew doctor to get a report on any problems which exist with your Homebrew installation.

    When it's set up properly after running ls -la /usr/local/bin | grep bin/php$ you should see something similar to

    lrwxr-xr-x 1 YOURUSER admin 29 10 May 21:40 php -> /usr/local/Cellar/php70/7.0.6/bin/php
    

提交回复
热议问题