- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Linker cannot find -lpq while configuring PostGIS ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2023 09:24 PM - last edited on 09-10-2023 12:55 AM by support_s
09-04-2023 09:24 PM - last edited on 09-10-2023 12:55 AM by support_s
Hi, I'm trying to install PostGIS 3.2↑ version in my HP-UX ia64 11.31
I have PostgreSQL15.3 installed. And created a symbolic link of the libraries in pgsql/lib inside the $LD_LIBRARY_PATH(/usr/local/lib)
# echo $LD_LIBRARY_PATH
/lgems/lib:/lib:/usr/lib:/usr/local/lib
# ls -al /usr/local/lib/hpux64/pgsql | grep libpq
lrwxr-xr-x 1 root sys 36 Sep 5 13:09 libpq.so -> /usr/local/pgsql/lib/hpux64/libpq.so
lrwxr-xr-x 1 root sys 47 Sep 5 13:09 libpqwalreceiver.so -> /usr/local/pgsql/lib/hpux64/libpqwalreceiver.so
# ls -al /usr/local/pgsql/lib/hpux64 | grep libpq
-rw-r--r-- 1 root sys 928574 May 15 20:29 libpq.a
-r-xr-xr-x 1 root sys 834992 May 15 20:29 libpq.so
lrwxr-xr-x 1 root sys 8 Aug 10 11:20 libpq.so.5 -> libpq.so
-r-xr-xr-x 1 root sys 70568 May 15 20:29 libpqwalreceiver.so
But when I run configure, it fails with the error below.
checking for pg_config... /usr/local/pgsql/bin/pg_config
checking PostgreSQL version... PostgreSQL 15.3
checking libpq-fe.h usability... yes
checking libpq-fe.h presence... yes
checking for libpq-fe.h... yes
checking for PQserverVersion in -lpq... no
configure: error: could not find libpq
and it says in config.log
configure:15068: checking for PQserverVersion in -lpq
configure:15093: cc -o conftest +Olibmerrno -O +DD64 -N -I/usr/local/include -lm conftest.c -lpq -L/usr/local/pgsql/lib/hpux64 -lpq >&5
"conftest.c", line 43: warning #2111-D: statement is unreachable
return 0;
^
ld: Can't find library for -lpq
Fatal error.
I'm curious of how I can make the linker find the libpq.
I have tried to change the compiler to gcc, but the same erorr occurred.
Please help.
Thanks in advance.
Solved! Go to Solution.
- Tags:
- Operating System
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 10:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 11:09 PM
09-06-2023 11:09 PM
Re: Linker cannot find -lpq while configuring PostGIS installation.
Hello @sjjung,
That's excellent!
We are extremely glad to know the problem has been resolved and we appreciate you for keeping us updated.