How do I fix these installation errors? I'm installing D7 on Ubuntu 12.04. I've been following the procedure explained in this page. And this is the error I'm getting:

I've already made MySQL database called 'drupaldb'.
I've also checked PHP and it's installed and it's running. I'm configuring NGINX to run D7 on it.
Please help!
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