Not able to install php(7.0) pdo dependencies for postgres


We are using circleCI for deploying an application built on laravel and postgres on php 7.0. It was working fine for application running on circleCI version 1. But when we configured new application using laravel and postgres and php7.0, Its not running unit test. On checking we found, that pgsql pdo drivers are missing. Though the same was working for our prior application, but not for application on version 2.

  • We tried different images too, if those docker images are lacking somewhere.
  • We also tried to find which image was being used for version 1, so we can use the same image.
  • Then we also tried to run sudo apt-get install php7.0-pgsql, which does the same job on our local machine. But all in vain.

If you can help us know, what is the cause of this problem, and how can we get rid of the error
Caused by
Doctrine\DBAL\Driver\PDOException: could not find driver**

And the unit test executes successfully.


1 Like