Difference between revisions of "Install Postgresql client driver"
Jump to navigation
Jump to search
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{DISPLAYTITLE:Install a PostgreSQL database client library}} |
On '''Linux Debian''' (Ubuntu, Mint) : | On '''Linux Debian''' (Ubuntu, Mint) : | ||
Line 7: | Line 7: | ||
You do this in a terminal window using the following two commands: | You do this in a terminal window using the following two commands: | ||
− | sudo apt | + | sudo apt install postgresql-client |
sudo ln -s /usr/lib/libpq.so.5.4 /usr/lib/libpq.so # adapt to the actual postgres version | sudo ln -s /usr/lib/libpq.so.5.4 /usr/lib/libpq.so # adapt to the actual postgres version | ||
Line 25: | Line 25: | ||
**Then according the Gestinux version copy the '''libintl.dll''' file for x86-32 or the '''libintl-8.dll''' file for x86-64 | **Then according the Gestinux version copy the '''libintl.dll''' file for x86-32 or the '''libintl-8.dll''' file for x86-64 | ||
+ | Reminder : you have to download the most recent version of the binaries which contains the "libintl.dll" file. As of January 2017, these are binaries of the [https://get.enterprisedb.com/postgresql/postgresql-9.3.15-1-windows-binaries.zip 9.3.15 version]. More recent binaries doesn't work. | ||
[[Installing#Installation_of_Gestinux_1.0_.28release_candidate.2C_nearly_stable.29|Go on installation]] | [[Installing#Installation_of_Gestinux_1.0_.28release_candidate.2C_nearly_stable.29|Go on installation]] |
Latest revision as of 18:33, 29 November 2020
Français
On Linux Debian (Ubuntu, Mint) :
To run a client of a PostgreSQL database you have to install an additional library.
You do this in a terminal window using the following two commands:
sudo apt 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
Reminder : you have to download the most recent version of the binaries which contains the "libintl.dll" file. As of January 2017, these are binaries of the 9.3.15 version. More recent binaries doesn't work.