问题
I am trying to install laravel homestead in linux mint 18. I have installed vagrant and virtual box from follwing URLs successfully:
https://www.virtualbox.org/wiki/Linux_Downloads
https://www.vagrantup.com/downloads.html
I have installed homestead with following command
composer global require "laravel/homestead=~2.0"
i have installed composer successfully. when i give composer command in terminal it shows me composer options so it is working correctly. i have also set the PATH file with:
export PATH=~/.composer/vendor/bin:$PATH
If i run echo $PATH it gives me following output:
/home/ahnaf/.composer/vendor/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
if i run homestead it gives me.
homestead command not found.
but if i restart the terminal and run echo $PATH then the composer path is not there any more. I have browsed through laravel docs , laracasts and in google.Everywhere i found the solution supposed to be to set the PATH which i did, but my problem is still present. dnt know what to do. is there any linux user who can help me to set the homestead?
来源:https://stackoverflow.com/questions/38015849/homestead-command-not-found-even-after-installing-laravel-homestead-in-linux-m