Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
szczym CreditAttribution: szczym commentedi did not read requirements, apt-get install php5-cli worked !
Comment #2
Macronomicus CreditAttribution: Macronomicus commentedThanks for that ... just setup my dedicated and "apt-get install php5-cli " was just what the doctor ordered!
Comment #3
pitolek CreditAttribution: pitolek commentedJust had the same problem, thanks for the info ... Works fine now!
Comment #4
webpotato CreditAttribution: webpotato commentedI'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?
Comment #5
iLLin CreditAttribution: iLLin commentedThis 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. :)
Comment #6
kgale CreditAttribution: kgale commentedJust ran into this problem myself and this solved it. Thanks.
Comment #7
ilw CreditAttribution: ilw commentedThank you!
Finlay it works!