make: *** [Pg.o] Error 1 while installing DBD-Pg module.

Daniel Ojo <[email protected]>
Newsgroups gmane.comp.db.postgresql.dbdpg
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Can someone please point me to what I am missing here. Here is the
output I am getting while installing the DBD-Pg module.......

# perl Makefile.PL
Configuring DBD::Pg 2.15.1
PostgreSQL version: 70419 (default port: 5432)
POSTGRES_HOME: (not set)
POSTGRES_INCLUDE: /usr/include
POSTGRES_LIB: /usr/lib64
OS: linux
Checking if your kit is complete...
Looks good
Warning: prerequisite DBI 1.52 not found. We have 1.40.
Warning: prerequisite Test::More 0.61 not found. We have 0.47.
Using DBI 1.40 (for perl 5.008005 on x86_64-linux-thread-multi)
installed in
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/DBI
Writing Makefile for DBD::Pg


# make
cp lib/Bundle/DBD/Pg.pm blib/lib/Bundle/DBD/Pg.pm
cp Pg.pm blib/lib/DBD/Pg.pm
/usr/bin/perl -p -e "s/~DRIVER~/Pg/g; s/^do\(/dontdo\(/"
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/DBI/Driver.xst
> Pg.xsi
/usr/bin/perl /usr/lib/perl5/5.8.5/ExtUtils/xsubpp  -typemap
/usr/lib/perl5/5.8.5/ExtUtils/typemap  Pg.xs > Pg.xsc && mv Pg.xsc Pg.c
gcc -c  -I/usr/include
- -I/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/DBI
- -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe
- -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
- -I/usr/include/gdbm -DPGLIBVERSION=70419 -DPGDEFPORT=5432 -O2 -g -pipe
- -m64  -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree
- -Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION=\"2.15.1\"
- -DXS_VERSION=\"2.15.1\" -fPIC
"-I/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE"   Pg.c
In file included from Pg.xs:14:
Pg.h:59:53: dbivport.h: No such file or directory
In file included from Pg.c:66:
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/DBI/Driver_xst.h:
In function `dbixst_bounce_method':
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/DBI/Driver_xst.h:14:
error: `my_perl' undeclared (first use in this function)
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/DBI/Driver_xst.h:14:
error: (Each undeclared identifier is reported only once
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/DBI/Driver_xst.h:14:
error: for each function it appears in.)
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/DBI/Driver_xst.h:
In function `dbdxst_bind_params':
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/DBI/Driver_xst.h:54:
error: `my_perl' undeclared (first use in this function)
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/DBI/Driver_xst.h:
In function `dbdxst_fetchall_arrayref':
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/auto/DBI/Driver_xst.h:75:
error: `my_perl' undeclared (first use in this function)



# uname -a
Linux 2.6.9-89.ELsmp #1 SMP Mon Apr 20 10:33:05 EDT 2009 x86_64 x86_64
x86_64 GNU/Linux

# rpm -qa | grep perl
perl-Filter-1.30-6
perl-XML-Dumper-0.71-2
perl-XML-Twig-3.13-6
perl-5.8.5-49.el4
perl-libwww-perl-5.79-5
perl-Convert-ASN1-0.18-3
perl-XML-LibXML-1.58-3.el4
perl-HTML-Tagset-3.03-30
perl-XML-Parser-2.34-5
perl-libxml-enno-1.02-31
perl-XML-SAX-0.12-7
perl-DBI-1.40-9
perl-Time-modules-2003.1126-1.2
perl-URI-1.30-4
perl-libxml-perl-0.07-30
perl-XML-Grove-0.46alpha-27
perl-HTML-Parser-3.55-1.el4
subversion-perl-1.1.4-2.ent
perl-Parse-Yapp-1.05-32
perl-XML-NamespaceSupport-1.08-6
perl-Net-Telnet-3.03-3
perl-XML-LibXML-Common-0.13-8.el4
perl-DateManip-5.42a-3
perl-XML-Encoding-1.01-26
perl-LDAP-0.31-5
perl-Crypt-SSLeay-0.51-5

DBD-Pg-2.15.1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org

iD8DBQFKsMgZXF8eDCafhpURAsF8AKCqzaZHA6UB0CfKyny48c28Jn/nQwCfZcHp
1Oj2p/ptXQGaDvQ/BUDHN08=
=G4a5
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.