1
installed the following Composer website instructions, passing the directory /usr/local/bin
and file name composer
. But when I do:
$ composer install
or another Composer command returns the error:
/usr/bin/env: php: Arquivo ou diretório não encontrado
You may not have a link to PHP at
usr/bin/env
, then you can tryphp composer install
.– Woss
I tried with the
php
before but also gave error.– fernandoandrade
You have PHP installed?
– Woss
Yes, I think I found the problem, I tried to install another version of php and now I have to type
php5
command line to recognize php. I found a solution here How to change the version of PHP in which Composer runs on Linux? paid for the attention– fernandoandrade