Brotzka's avatar

Problems with valet installation

Hey,

i am trying to get valet run on my macbook. I have problems with valet install. Error: command not found. Where do I have to run the command? Installed it globally like i was told in the documentation..

Thanks!

0 likes
15 replies
foodics's avatar

To be able to use valet's binary file globally, you need to make sure ~/.composer/vendor/bin directory is in your system's PATH, go ahead and check that using the command:

echo $PATH
1 like
Brotzka's avatar
Brotzka
OP
Best Answer
Level 1

Thanks!

To add the required directory to my Path, I had to run the following command:

export PATH=$PATH:~/.composer/vendor/bin

Valet installation successfull :)

6 likes
imansyaefulloh's avatar

Hi, i'm trying to install valet on my mac, but I got an error like this

$ valet install                           

                                   
  [DomainException]                
  Unable to determine linked PHP.  
                                   

install

what did i do wrong?

imansyaefulloh's avatar

Yes I did @Brotzka,

this is my path

$ echo $PATH
/usr/local/Cellar/php70/7.0.6/bin:/Users/imansyaefulloh/.node/bin:/usr/local/bin:/Users/imansyaefulloh/.composer/vendor/bin:/Users/imansyaefulloh/.node/bin:/Users/imansyaefulloh/ndk/android-ndk-r10e:/Users/imansyaefulloh/Library/Android/sdk/tools:/Users/imansyaefulloh/Library/Android/sdk/platform-tools:/usr/local/bin:~/.composer/vendor/bin:vendor/bin:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/local/git/bin:/sw/bin/:/usr/local/bin:/usr/local/:/usr/local/sbin:/usr/local/mysql/bin:/Users/imansyaefulloh/.composer/vendor/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin/:/Users/imansyaefulloh/Library/Android/sdk/tools:/Users/imansyaefulloh/Library/Android/sdk/platform-tools:/Users/imansyaefulloh/.composer/vendor/bin

and my php version

$ php -v
PHP 7.0.6 (cli) (built: Apr 29 2016 04:21:39) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies

but, when i'm typing $valet install

$ valet install

                                   
  [DomainException]                
  Unable to determine linked PHP.  
                                   

install
mazedul's avatar

If you have a fresh installation, you may not have the PATH variable contains your home path. So, adding the $HOME variable would require like the following:

export PATH="$PATH:$HOME/.composer/vendor/bin

1 like
johnfarrar's avatar

Well, I am having a different issue. It will not let me create a laravel instance.

Johns-iMac:~ johnfarrar$ valet paths
[
    "/Users/johnfarrar/Sites"
]
Johns-iMac:~ johnfarrar$ laravel -v
-bash: laravel: command not found
Johns-iMac:~ johnfarrar$ echo $PATH
~/.composer/vendor/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
Johns-iMac:~ johnfarrar$ 

And here is trying to run the command.

Johns-iMac:~ johnfarrar$ laravel new blog
-bash: laravel: command not found
Undutchable's avatar

I'm having the same problem as @johnfarrar

I use iTerm with Oh My Zsh and ~/composer/vendor/bin is in my $PATH

Valet is running, but laravel new test gives me the same error as above...

researchers_'s avatar

brothers i use a windows and i can't use valet on my laptop

can you help me brothers

arslanramay's avatar

Make sure that ~/.composer/vendor/bin directory is in your system's PATH, you can check this by running:

echo $PATH

If you can't see it there, then you need to add this to your ~/.bash_profile:

export PATH=$PATH:~/.composer/vendor/bin
rhymesey's avatar

I know this is an old post, but I am having the same issue where is says "Unable to determine linked PHP." when I run valet install. I have added ~/.composer/vendor/bin to my path as described and php71 is installed as well. I am running High Sierra on my Mac. Any ideas?

sousadgaspar's avatar

Hi human beings! I'm having a different issue than your's. When I try to install valet it pops up in the screen the following error:

  • Installation request for symfony/process (locked at v4.0.3) -> satisfiable by symfony/process[v4.0.3].
    • Installation request for laravel/valet ^2.0 -> satisfiable by laravel/valet[v2.0.0, v2.0.1, v2.0.3, v2.0.4, v2.0.5, v2.0.6].

Installation failed, reverting ./composer.json to its original content.

Has anyone a clue of what's going on here?

Please or to participate in this conversation.