Building pdns on RHEL4+pgsql 8.1 fails - can't find headers #90

Closed
Habbie opened this Issue Apr 26, 2013 · 2 comments

Projects

None yet

1 participant

@Habbie
Member
Habbie commented Apr 26, 2013

During the configure phase, I'm seeing the following:

checking for PgSQL include directory... configure: error: Didn't find the PgSQL include dir in '/usr/local/pgsql/include/pgsql /usr/local/include/postgresql/ /usr/local/include /opt/pgsql/include/pgsql /opt/pgsql/include /usr/include/pgsql/ /usr/include/postgresql'

/usr/include/postgresql exists but the header files now seem to live in /usr/include/postgresql/server. The configure.in seems a little opaque in terms of adding to the possible header locations.

I'm using RHEL4 and the pgsql rpms from the webapps channel (8.1.3)

@Habbie Habbie was assigned Apr 26, 2013
@Habbie Habbie closed this Apr 26, 2013
@Habbie
Member
Habbie commented Apr 26, 2013

Author: anon
On Fedora 6, libpq-fe.h is installed in /usr/include, I guess it's the same for RHEL4. Don't forget to install the postgresql-devel package. You can tell configure where to find the postgresql headers with .configure --with-modules="gmysql" --with-pgsql-includes=/usr/include.

Maybe Bert can add /usr/include to the list of locations where autoconf searches for the postgres headers.

@Habbie
Member
Habbie commented Apr 26, 2013

Author: ahu
Fixed by commit 998

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment