Helo

When i run drush on < ahref="http://www.turnkeylinux.org/appliances/drupal6">turnkey i get error:
/usr/bin/env: php: No such file or directory

what i need to install, or is it a bug with drush ?

Comments

szczym’s picture

Status: Active » Closed (fixed)

i did not read requirements, apt-get install php5-cli worked !

Macronomicus’s picture

Thanks for that ... just setup my dedicated and "apt-get install php5-cli " was just what the doctor ordered!

pitolek’s picture

Just had the same problem, thanks for the info ... Works fine now!

webpotato’s picture

Version: 6.x-2.0-alpha1 » All-Versions-2.0

I'm trying to install Drush on an Ubuntu box running Ubuntu 8.04. I have my development site up and running on this machine with PHP Version 5.2.10-0.dotdeb.1 installed. According to my synaptic package manager, this is the most recent version available.

I installed Drush as per
http://groups.drupal.org/node/23487
Installing Drush on Ubuntu
in my home/username folder

I also get the error:
/usr/bin/env: php: No such file or directory
when trying to run Drush. But, in trying to apply the fix described here, I get the following when I try to install php5-cli:

php5-cli:
Depends: php5-common (=5.2.9-0.dotdeb.2) but 5.2.10-0.dotdeb.1 is to be installed

Seems to be some kind of road block. I'm something of a newbie to Ubuntu. Does anyone have any ideas how I can get Drush to work?

iLLin’s picture

This is probably way late but I figured I would offer up a reason for others. The problem webpotato is experiencing is due to him adding a repository or adding some "extra" type of features for php5-common that are not the "main" ones. I had this problem with curl as I was experimenting with ffmpeg and apc... etc so I ended up adding third party repos and doing some updates and additions. Well by doing that, it sorta confused php5 into what is required what you have...etc. Only way I fixed it was to uninstall php5-common which trashes your php setup and then rebuild it from there. Hopefully that makes some type of sense. :)

kgale’s picture

Just ran into this problem myself and this solved it. Thanks.

ilw’s picture

Thank you!

Finlay it works!