Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix laravel command not found #169

Merged
merged 1 commit into from Mar 6, 2017
Merged

fix laravel command not found #169

merged 1 commit into from Mar 6, 2017

Conversation

mahmud2011
Copy link
Contributor

@mahmud2011 mahmud2011 commented Nov 26, 2016

@pvalena
Copy link
Contributor

pvalena commented Nov 28, 2016

My .bash_profile already contains export PATH and .bashrc seems like a strange place for a path.
@mmhyamin, could you please elaborate on why is this an issue?

@@ -58,10 +58,10 @@ $ composer -V
$ composer global require "laravel/installer"
# Place the ~/.config/composer/vendor/bin directory in your PATH so the laravel
# executable can be located by your system.
$ echo 'export PATH="$PATH:$HOME/.config/composer/vendor/bin"' >> ~/.bash_profile
Copy link
Contributor

@pvalena pvalena Nov 28, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You do not need the export here. PATH should be already exported on all UNIX systems.

For immediate change in current terminal you could run the command source !$ instead, which sources ~/.bash_profile. Note this has to be run right after the export.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pvalena could you please take a look at the stackoverflow issue?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mmhyamin I sure already did, but I think the answer you have sent is not the correct one (FTR it's not the accepted one) in this case.
Could you check my proposed solution?
Please clarify the issue you're having if it is not resolved by it (source !$, right after the PATH=". . .).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll resolve the issue later.

@pvalena pvalena mentioned this pull request Dec 12, 2016
@pvalena pvalena merged commit 8f92186 into developer-portal:master Mar 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants