Results 1 to 2 of 2

Thread: libpq.so not found in pg_config --libdir path

  1. #1

    Default libpq.so not found in pg_config --libdir path

    As the title says, the library
    Code:
    libpq.so
    is not in the path given by
    Code:
    pg_config --libdir
    . I install
    Code:
    postgresql posqtgresql-devel
    which provides the package libpq5 which in turn installs the libpq.so.

    Code:
    $ pg_config --libdir
        /usr/lib/postgresql10/lib64
        $ find /usr/ -name libpq.so
        /usr/lib64/libpq.so

    Our applications rely on the path given by
    Code:
    pg_config --libdir
    to look for libpq.so but it fails. Is this some problem with OpenSUSE package management or is it that we shouldn't be using pg_config for this purpose?

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,153
    Blog Entries
    2

    Default Re: libpq.so not found in pg_config --libdir path

    I guess it depends on your code and whether you're running as root.
    The location of that file should easily be found by anything running in a root context...

    I guess the question is what you might want to run, and particularly if it involves custom code that wouldn't run with elevated permissions?

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •