libpq installation (Postgresql)

This is a discussion on libpq installation (Postgresql) within the C++ Programming forums, part of the General Programming Boards category; I have looked all over the 'net trying to find some info on how to install this libpq library in ...

  1. #1
    Registered User
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    80

    libpq installation (Postgresql)

    I have looked all over the 'net trying to find some info on how to install this libpq library in my C++ lib directory (and where to find it). I've found something on the postgresql.com website which includes the lib but it's the whole database software, not the lib alone. The stuff on the Koders website is not helping either. So I neither know where to find the lib itself, nor how to install it.

    Any help is greatly appreciated.

  2. #2
    Registered User
    Join Date
    Jan 2006
    Location
    Europe/Belgrade
    Posts
    78
    Have you tried on http://gborg.postgresql.org/project/libpqxx/? Here you can download both library and the documentation.
    Installation on Linux should be the usual one: configure, make, make install etc.
    Last edited by karas; 12-25-2006 at 07:47 AM.

  3. #3
    Registered User
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    80
    Yes, I have been there and my ultimate goal is using the libpqxx library. But the problem is that libpq is needed for libpqxx to work. So I'm wondering how I can install this library.

  4. #4
    Registered User
    Join Date
    Jan 2006
    Location
    Europe/Belgrade
    Posts
    78
    libpq is installed automatically with PostgreSQL. If you installed the database server in the default directory (/usr/local/pgsql/), libpq is installed automatically in /usr/local/pgsql/include and /usr/local/pgsql/lib. So, no need for some extra installation

  5. #5
    Registered User
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    80
    I don't want to install the entire postgres on my computer, only the libpq itself.

  6. #6
    Registered User
    Join Date
    Jan 2006
    Location
    Europe/Belgrade
    Posts
    78
    From the PostgreSQL documentation:
    Client-only installation: If you want to install only the client applications and interface libraries, then you can use these commands:

    gmake -C src/bin install
    gmake -C src/include install
    gmake -C src/interfaces install
    gmake -C doc install
    I suppose that you could do it with the second and third installation but I've never tried this. Also, this is client-only installation, so I suppose that you can write only client applications.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. MinGW Installation checklist (win32)
    By Mario F. in forum Tech Board
    Replies: 5
    Last Post: 06-24-2006, 06:53 PM
  2. VC++6 installation wizard
    By BrownB in forum Windows Programming
    Replies: 2
    Last Post: 07-20-2005, 01:44 AM
  3. PostgreSQL
    By samudrala_99 in forum Linux Programming
    Replies: 1
    Last Post: 12-12-2002, 07:25 AM
  4. Where can i download C++ installation files and tutorials?
    By shaijujose in forum C++ Programming
    Replies: 1
    Last Post: 05-08-2002, 11:10 PM
  5. Net Framework Installation
    By Sorensen in forum C# Programming
    Replies: 2
    Last Post: 01-15-2002, 11:25 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21