Sunday, May 19, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 2574  / 3 Years ago, thu, august 5, 2021, 7:28:18

I m using Ubuntu 18.04.2 LTS. After successful installation of php7.2-pgsql, I cant install pdo_pgsql. I have tried following command:



sudo apt-get install pdo_pgsql


and got this error:



E: Unable to locate package pdo_pgsql


I update php.ini file as well removing comment extension for pdo_pgsql but i m still facing "Unable to locate package pdo_pgsql.


More From » command-line

 Answers
4

If you have a look at the files provided by php-7.2-pgsql, you will see that the pdo_pgsql is part of the php7.2-pgsql-package.



pdo_pgsql is a php module. You enable php-modules by adding them to the php.ini, as you seems to have done from what you write.



In general: if you can add a module to php.ini, and not get exceptions when using PHP, then the module is present.



pdo_pgsql is not a stand-alone package you can install with apt.


[#5237] Saturday, August 7, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mouedi

Total Points: 420
Total Questions: 109
Total Answers: 116

Location: Philippines
Member since Wed, Aug 19, 2020
4 Years ago
mouedi questions
Mon, Mar 28, 22, 20:06, 2 Years ago
Sat, Dec 3, 22, 15:04, 1 Year ago
Thu, Mar 10, 22, 05:12, 2 Years ago
Wed, Jul 20, 22, 15:05, 2 Years ago
;