Composer error 'File or directory not found'

Asked

Viewed 1,124 times

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

  • 1

    You may not have a link to PHP at usr/bin/env, then you can try php composer install.

  • I tried with the php before but also gave error.

  • You have PHP installed?

  • 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

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.