Install Postgresql client driver
Jump to navigation
Jump to search
Français
{{#CustomTitle:Client for a PostgreSql database}}
Under Ubuntu, to run a client of a Postgresql database you have to install an additional driver.
You do this in a terminal window using the following two commands:
- sudo apt-get install postgresql-client
- sudo ln -s /usr/lib/libpq.so.5.4 /usr/lib/libpq.so (adapt to the actual postgres version)
On Windows :
- In the standalone configuration, if your PostgreSQL server's version is the same as the Gestinux version (x86-32 or x86-64) then you can use the client's libraries from the PostgreSQL server’s installation directory, otherwise follow the client-server configuration method.
- Go to <PostgreSQL server's installation directory>\bin
- You should copy the libpq.dll, libeay32.dll and ssleay32.dll files to the WINDOWS directory (%windir%)
- Then according the Gestinux version copy the libintl.dll file for x86-32 or the libintl-8.dll file for x86-64
- In the client-server configuration you need to download client’s libraries from the PostgreSQL Binaries page
- Download an archive of PostgreSQL binaries x86-32 or x86-64 (according Gestinux version)
- Extract all files
- Go to <Extracted directory>\pgsql\bin
- You should copy the libpq.dll, libeay32.dll and ssleay32.dll files to the WINDOWS directory (%windir%)
- Then according the Gestinux version copy the libintl.dll file for x86-32 or the libintl-8.dll file for x86-64