Qt Everywhere 5.15.8, RHEL, PostGresSQL
Solved
Installation and Deployment
-
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
-