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:

  1. download source code archive, example https://ftp.postgresql.org/pub/source/v9.4.1/postgresql-9.4.1.tar.bz2
  2. unpack build directory: tar xjf ~/downloads/postgresql-9.4.1.tar.bz2
  3. apt-get install libssl-dev if it's not installed already
  4. cd , configure: cd postgresql-9.4.1; ./configure --with-openssl --without-readline
  5. assuming configure succeeds, cd src/interfaces/libpq , run make
  6. still in libpq directory, 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

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -