Must include full path to symbolic link command
Hi. I'm trying to set up a vagrant box for laravel framework. I downloaded homestead. The homestead command is a symbolic link and I put it in my path in /etc/environment. But I can only run the command successfully if I provide the full path to it on the command line. Even if I cd into the directory and try to run it there I get "command not found". Any ideas?
|
Is it in your PATH? try:
Code:
echo $PATH When you say you cannot run it from the directory, please show how you are trying to run it? |
Quote:
if I do: $ cd ~/.composer/vendor/bin $ homestead I get 'command not found' if I do: $ ~/.composer/vendor/bin/homestead then it runs. the link with ls -alF looks like: homestead -> ../laravel/homestead/homestead* |
ok, so we have 2 problems:
1. Just like when you run the command using the full path, when you run it from the directory yuo are in you need to tell it where it is: Code:
$ cd ~/.composer/vendor/bin 2. Your PATH variable should have all other variables expanded, so $HOME should not appear when you echo it. I would suggest you have set the PATH variable something like: Code:
PATH=$PATH:'$HOME/.composer/vendor/bin' Code:
PATH="$PATH:$HOME/.composer/vendor/bin" |
Quote:
Quote:
Thanks! |
All times are GMT -5. The time now is 04:46 AM. |