Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt Everywhere 5.15.8, RHEL, PostGresSQL
Qt 6.11 is out! See what's new in the release blog

Qt Everywhere 5.15.8, RHEL, PostGresSQL

Scheduled Pinned Locked Moved Solved Installation and Deployment
2 Posts 1 Posters 705 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    itsapm
    wrote on last edited by
    #1

    Trying to build Qt Everywhere 5.15.8 with Postgres support enabled on RHEL 7.7. Can't get past the configure step.

    I've installed the libpq5-devel package and its libraries and header files all seem to be in the typical default locations. What am I missing?

    libpq5-devel package is installed...

    $ sudo yum install libpq5-devel
    Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
    Package libpq5-devel-15.2-42.1PGDG.rhel7.x86_64 already installed and latest version
    Nothing to do
    

    Here's my configure command:

    $ ./configure -prefix /opt/Qt5.15.8/5.15.8 -v -xcb -xcb-xlib -bundled-xcb-xinput -release -fontconfig -feature-freetype -sql-psql -opensource -confirm-license -silent -nomake examples -nomake tests
    

    Configure fails with this:

    ERROR: Feature 'sql-psql' was enabled, but the pre-condition 'libs.psql' failed.
    

    Here's the configure output relating to psql

    Trying source 0 (type pkgConfig) of library psql ...
    + /usr/bin/pkg-config --exists --silence-errors libpq
    pkg-config did not find package.
      => source produced no result.
    Trying source 1 (type psqlConfig) of library psql ...
    pg_config not found.
      => source produced no result.
    Trying source 2 (type psqlEnv) of library psql ...
      => source failed condition 'config.win32'.
    Trying source 3 (type psqlEnv) of library psql ...
    libpq-fe.h not found in [] and global paths.
      => source produced no result.
    

    Yet...

    I have libpq.* living in /usr/lib64

    $ ls /usr/lib64/libpq*
    /usr/lib64/libpq.so  /usr/lib64/libpq.so.5  /usr/lib64/libpq.so.5.15
    

    I also have libpq-fe.h in /usr/include

    $ ls /usr/include/libpq*
    /usr/include/libpq-events.h  /usr/include/libpq-fe.h
    
    /usr/include/libpq:
    libpq-fs.h
    
    1 Reply Last reply
    0
    • I Offline
      I Offline
      itsapm
      wrote on last edited by itsapm
      #2

      Starting over with a fresh extraction of the 5.15.8 tarball and leaving everything else the same fixed the problem.

      1 Reply Last reply
      0
      • I itsapm has marked this topic as solved on

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved