bash - Laravel installation: How to place the ~/.composer/vendor/bin directory in your PATH? -


i'm on ubuntu 14.04 , i've been trying possible methods install laravel no avail. error messages try. i'm trying first method in quickstart documentation, is, via laravel installer, says "make sure place ~/.composer/vendor/bin directory in path laravel executable found when run laravel command in terminal." question is, how do that? may simple question i'm frustrated , appreciate help.

to put folder on path environment variable type

export path="$path:$home/.composer/vendor/bin" 

this appends folder existing path, however, active current terminal session.

if want automatically set, depends on shell using. bash can append line $home/.bashrc using favourite editor or type following on shell

echo 'export path="$path:$home/.composer/vendor/bin"' >> ~/.bashrc 

in order check if worked, logout , login again or execute

source ~/.bashrc 

on shell.

ps: other systems there no ~/.bashrc, can put ~/.bash_profile


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -