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
In Ubuntu, write in the console
sudo apt-get install php5-gd php5-mysql
and it will work