I have installed Lampp on my linux system, and I am learning symfony2, while trying to create the schema with symfony2 command
php app/console doctrine:sche
I had the same problem and for me, it was having multiple PHP versions. So specifying the full address of the PHP solved the problem.