This is the first time I try drush and I can't get it to work. I followed the instructions in readme.txt but when I navigate to my drupal folder, I always get the error

$ drush help
exec: 51: php: not found

I guess that's a newbie question, but I can't find anything related. I'm trying to run drush on a local Kubuntu 9.10 machine with PHP 5.2 (5.2.10-2ubuntu6.4).

Can anybody tell me what's wrong?

Comments

bloyo’s picture

same here .. ubuntu

soulston’s picture

me too. Ubuntu 9.0.4

Don't think it's a path thing as ~/drush/drush help fails too

ok fixed

maybe when you downloaded php you didn't include the command line stuff so:-

whereis php

probably throws up:-

php:

if so do this:-

sudo apt-get install php5-cli

not sure if you need to reload/restart apache:-

sudo /etc/init.d/apache2 restart

greg.1.anderson’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

yan’s picture

I can confirm that installing the package php5-cli solved the problem.

Marc Cepeda’s picture

Just another confirmation that it was the installation of the PHP command line interface that fixed it. =]