mysql_pdo now comes bundled with php5-mysql package in ubuntu. So if you are installing on php5 please ignore all the many posts online that suggest installing it through pear, or pecl, if you try these ways you will be very dissapointed.
Once php5-mysql is installed all that is required is enabling it in your php.ini
restart apache and you should be good to go!!