How to download, compile & install ONLY the libpq source on a server that DOES NOT have PostgreSQL installed -
how can download, compile, make & install libpq source on server (ubuntu) not have postgresql installed?
i have found libpq source here. not seem separable entire postgresql. in advance.
i not want install entire postgresql. want use libpq c interface postgresql on different server (also ubuntu) have installed.
i found this old link indicates above possible not how it.
i have found libpq source here. not seem separable entire postgresql.
it has configured entire source tree because that's generates necessary makefile parts. once configured, make && make install can run inside src/interfaces/libpq directory alone, , rest being left out completely.
in steps:
- download source code archive, example https://ftp.postgresql.org/pub/source/v9.4.1/postgresql-9.4.1.tar.bz2
- unpack build directory:
tar xjf ~/downloads/postgresql-9.4.1.tar.bz2 apt-get install libssl-devif it's not installed already- cd , configure:
cd postgresql-9.4.1; ./configure --with-openssl --without-readline - assuming configure succeeds, cd
src/interfaces/libpq, runmake - still in
libpqdirectory, run make install root:sudo make install.
that install /usr/local/pgsql , subdirectories library independent , insulated 1 packaged in ubuntu if happens installed. install elsewhere, specify location --prefix option configure.
Comments
Post a Comment