How do I fix these installation errors?
To install gd library in ubuntu:


  $ sudo apt-get install php5-gd


Above command will install PHP gd library in Ubuntu.

Refer this question from Server Fault to install mysql-pdo driver in ubuntu