Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 643702 - dev-lang/php-7.1.11: configure error Cannot find libpq-fe.h
Summary: dev-lang/php-7.1.11: configure error Cannot find libpq-fe.h
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-06 13:42 UTC by Alexandr Tiurin
Modified: 2018-03-28 10:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
buildlog (dev-lang:php-7.1.11:20180106-132521.log,27.24 KB, text/plain)
2018-01-06 13:42 UTC, Alexandr Tiurin
Details
emerge --info php:7.1 (emergeInfo-php.txt,6.67 KB, text/plain)
2018-01-06 13:43 UTC, Alexandr Tiurin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Tiurin 2018-01-06 13:42:07 UTC
configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path

Reproducible: Always
Comment 1 Alexandr Tiurin 2018-01-06 13:42:36 UTC
Created attachment 513512 [details]
buildlog
Comment 2 Alexandr Tiurin 2018-01-06 13:43:35 UTC
Created attachment 513514 [details]
emerge --info php:7.1
Comment 3 Alexandr Tiurin 2018-01-06 13:44:49 UTC
The file libpq-fe.h is present. 

# equery f  postgresql | grep libpq-fe.h
/usr/include/postgresql-9.4/libpq-fe.h
Comment 4 Michael Orlitzky gentoo-dev 2018-01-08 15:45:09 UTC
Can you please run "eselect postgresql" and re-select your desired slot? There was a period where the postgres symlinks could get messed up, leading to applications (like PHP) not being able to find the right libraries.

Afterwards, PHP should build successfully (we hope).
Comment 5 Michael Orlitzky gentoo-dev 2018-01-19 14:29:50 UTC
There's a new version app-eselect/eselect-postgresql-2.3 that's supposed to fix these issues once and for all. Please let us know if this is still a problem after re-eselecting your postgres version.
Comment 6 Alexandr Tiurin 2018-03-28 10:26:03 UTC
Work for me. Thanks.