Help please - about Perl driver DBD::DB2: (fwd) 
Author Message
 Help please - about Perl driver DBD::DB2: (fwd)

Hi folks:

I am having some questions about DBD::DB2 driver for DBI.  

1.  Can it be used to connect to a remote database? I.e. DB2 on another
box?  The reason I ask is that the DBD::DB2 installation requires the var
DB2_HOME to be set to a file.  I thought that all DBI drivers could
connect to remote dbs.

2.  I am having problems installing - via the CPAN module I get this
error:
AutoSplitting ../blib/lib/DBD/DB2/Constants.pm
(../blib/lib/auto/DBD/DB2/Consta)
/usr/bin/perl -I/usr/local/lib/perl5/5.00503/sun4-solaris
-I/usr/local/lib/perlc
gcc -c -I"/home/include" -I/usr/local/include -O    -DVERSION=\"0.20\"
-DXS_VERc
Constants.xs:16: sqlcli.h: No such file or directory
Constants.xs:17: sqlcli1.h: No such file or directory
Constants.xs:18: sqlext.h: No such file or directory
make[1]: *** [Constants.o] Error 1
make[1]: Leaving directory
`/export/home/karasick/.cpan/build/DBD-DB2-0.74/Cons'
make: *** [subdirs] Error 2
  /usr/bin/make  -- NOT OK
Running make test
  Oops, make had returned bad status
Running make install
  Oops, make had returned bad status

3.  I then tried copying the
files (i.e. DB2.pm and Constants.pm) to proper places on my system but get
the error:

contai
ns: /usr/local/lib/perl5/5.00503/sun4-solaris /usr/local/lib/perl5/5.00503
/usr/
local/lib/perl5/site_perl/5.005/sun4-solaris
/usr/local/lib/perl5/site_perl/5.00
5 .) at /usr/local/lib/perl5/5.00503/DBD/DB2.pm line 25
BEGIN failed--compilation aborted at
/usr/local/lib/perl5/5.00503/DBD/DB2.pm lin
e 25.

I am running sun sun4-solaris , perl 5.005_03

Thanks so much for your help.



Fri, 07 Mar 2003 03:00:00 GMT
 
 [ 1 post ] 

 Relevant Pages 

1. purely Perl CGI/DBI-DBD interface to DB2?

2. Perl DBD::DB2 and security?

3. IBMs Perl DBD::DB2 commitment?

4. Looking for Perl DBD::DB2 for NT bianry

5. Indexes via DBI driver in Perl (DBD::Informix)

6. perl DBD, perl DBI programming

7. Need help with installing perl module DBD:Informix

8. DB2 version 2.1.2 perl Driver

9. Problem with perl db2 driver

10. Fwd: [Fwd: FW: Improtant Virus Information - Please Read]

11. DB2 Connect and DBD::DB2

12. DBD::DB2-Linux-client connect to AS/400-DB2-database


 
Powered by phpBB® Forum Software