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

Executing dusk command shows sh: 1: php: not found #61

Closed
adityapurwa opened this issue Jan 27, 2017 · 6 comments
Closed

Executing dusk command shows sh: 1: php: not found #61

adityapurwa opened this issue Jan 27, 2017 · 6 comments

Comments

@adityapurwa
Copy link

Running php artisan dusk command returns sh: 1: php: not found.
Other command such as php artisan dusk:make is working.

@spyric
Copy link
Contributor

spyric commented Jan 27, 2017

What OS do you use? Windows?

@adityapurwa
Copy link
Author

I use Linux Ubuntu 16.04 using LAMPP for the server stack.

Dusk seems to be not detecting php even though /opt/lampp/bin is in the $PATH variable.

Note: Creating symlinks of /opt/lampp/bin/php as /usr/bin/php solved the issue.

@splatEric
Copy link
Contributor

out of curiosity, are you using the latest version? I put in a recent change (#51) to force the php call from the DuskCommand to use the same php binary as had been used to execute itself. But it only got into master recently ..

@adityapurwa
Copy link
Author

From the composer.lock, I am using this https://api.github.com/repos/laravel/dusk/zipball/d78bfd1088d8411226267936629e399aebc8f45e, from composer show -i it is version 1.0.0.

@splatEric
Copy link
Contributor

1.0.2 is out now ... do composer update and you should be sorted

@adityapurwa
Copy link
Author

Ran composer update laravel/dusk and tried running php artisan dusk again.

Confirmed its working now, thanks!

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

No branches or pull requests

3 participants