Wednesday, September 2, 2015

Composer - /usr/bin/env: php: No such file or directory

Today, I setup LAMPP (XAMPP) and laravel PHP framework with Ubuntu 15.04 but when I want use composer, this problem occur :
$ sudo composer install
/usr/bin/env: php: No such file or directory
The solution is to symlink the PHP cli with the bin path:
$ sudo ln -s /opt/lampp/bin/php /usr/local/bin/php
Nice and well played :)

No comments:

Post a Comment