Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Not able to Install DBD module on Redhat 8.0

Status
Not open for further replies.

pranesh11

Technical User
Dec 4, 2003
50
0
0
IN

I want to install DBD-Pg-0.93 on my redhat 8.0. iam able to run perl Makefile.Pl and getting good result but when i give make its giving following errors, can anybody help me in installing DBD-Pg-0.93 its reqd for postgres sql


gcc -c -I/usr/include/pgsql -I/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-
multi/auto/DBI -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-s
trict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
I/usr/include/gdbm -O2 -march=i386 -mcpu=i686 -g -DVERSION=\"0.93\" -DXS_VERSI
ON=\"0.93\" -fPIC "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE" Pg.c
In file included from Pg.xs:13:
Pg.h:13:22: libpq-fe.h: No such file or directory
In file included from Pg.h:37,
from Pg.xs:13:
dbdimp.h:22: parse error before "PGconn"
dbdimp.h:22: warning: no semicolon at end of struct or union
dbdimp.h:25: parse error before '}' token
dbdimp.h:31: parse error before "PGresult"
dbdimp.h:31: warning: no semicolon at end of struct or union
dbdimp.h:44: parse error before '}' token
Pg.xs: In function `XS_DBD__Pg__db_commit':
Pg.xs:90: dereferencing pointer to incomplete type
Pg.xs: In function `XS_DBD__Pg__db_rollback':
Pg.xs:101: dereferencing pointer to incomplete type
Pg.xs: In function `XS_DBD__Pg__db_disconnect':
Pg.xs:112: dereferencing pointer to incomplete type
Pg.xs:116: dereferencing pointer to incomplete type
Pg.xs:117: dereferencing pointer to incomplete type
Pg.xs:118: dereferencing pointer to incomplete type
Pg.xs:122: dereferencing pointer to incomplete type
Pg.xs:122: dereferencing pointer to incomplete type
Pg.xs:123: dereferencing pointer to incomplete type
Pg.xs:125: dereferencing pointer to incomplete type
Pg.xs: In function `XS_DBD__Pg__db_DESTROY':
Pg.xs:165: dereferencing pointer to incomplete type
Pg.xs:166: dereferencing pointer to incomplete type
Pg.xs:172: dereferencing pointer to incomplete type
Pg.xs:173: dereferencing pointer to incomplete type
Pg.xs:174: dereferencing pointer to incomplete type
Pg.xs:176: dereferencing pointer to incomplete type
Pg.xs:34: sizeof applied to an incomplete type
Pg.xs:35: sizeof applied to an incomplete type
make: *** [Pg.o] Error 1
 

Always start with the first error message...

In file included from Pg.xs:13:
Pg.h:13:22: libpq-fe.h: No such file or directory

Luckily I have access to a machine with that file on it:

ns1(~/public_html)$ locate libpq-fe.h
/usr/include/libpq-fe.h

ns1(~/public_html)$ rpm -qf /usr/include/libpq-fe.h
postgresql-devel-7.2.4-5.80

You need to install the postgresql-devel rpm.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top