Vineet, As Jonathan pointed out, Linux has various platforms. It occurs to me too that there is something radically going wrong in your installations for either Perl or DBI since the errors are bit unusual. Can you please try out the following from the command line with your perl path set.
ppm install http://theoryx5.uwinnipeg.ca/ppms/DBD-DB2.ppd (For Perl Version 5.8) ppm install http://cpan.uwinnipeg.ca/PPMPackages/10xx/DBD-DB2.ppd (For Perl Version 5.10) Also few observations from my side. The error message thrown says DBIXS.h not found. This rings bells to me that the DBI is not installed in a proper location. Did you do a local perl install ??? If you have done a local perl install in your home directory, then you need to set your PATH as export PATH=/home/vineet/PerlInstall/bin;$PATH Only after doing this I would suggest you to install your DBI as well as DBD::DB2 Also, please do not forget to set DB2_HOME env variable before trying to install DBD::DB2. If you have not done a local perl install then your username must have permission to read and write in the root directory to install the perl modules. You can also check for the correct install of your DBI by running the following script use DBD::DB2; print "#####################################################\n\n"; print "Using...\n"; print "DBI: $DBI::VERSION\n"; print "\n#####################################################\n"; Thanks and Regards, Tarun Pasrija System Software Engineer Open Source - Common AD India Software Labs - IBM India Pvt Ltd. Tel(Off) +91 80 402 55265 Tel(Mob) +91 9972200221 My Profile My Blog My Wiki My Cattail From: "Jonathan Leffler" <[EMAIL PROTECTED]> To: "Vineet Kaimal" <[EMAIL PROTECTED]> Cc: "DBI Users Mailing List" <[email protected]> Date: 06/11/2008 04:00 Subject: Re: Problems while installing PERL (DBD::DB2 module) On Wed, Nov 5, 2008 at 9:58 AM, Vineet Kaimal <[EMAIL PROTECTED]>wrote: > Jonathan , > > Thanks for your reply > Please keep the list in the loop -- you might have gotten the answer by now if you had. > We installed DBI-1.607 > i ran the following commands > perl Makefile.pl > make > make test > make install > i think this installs the DBI module It certainly should do. You're going to have to do some tracking down. Is there a DBIXS.h in an appropriate place? Could there be several DBI directory locations under your Perl's library -- and the DBIXS.h file is missing from one? Could the permissions be set wrong? What is the exact location of DBI? What are the command line options when you build the failing code? > After this i tried DBD-DB2-1.1 module > i ran > perl Makefile.pl > after this i tried running make > for which it gaves the errors > > Hope this information helps you in providing some tips inorder to > provide a solution to help me? > > Regards, > Vineet. > > On 11/5/08, Jonathan Leffler <[EMAIL PROTECTED]> wrote: > > On Tue, Nov 4, 2008 at 9:34 PM, Vineet Kaimal > > <[EMAIL PROTECTED]>wrote: > > > >> I was trying to install PERL in Linux OS. > >> I was successful in installing the DBI module. > > > > Are you sure? > > > >> But on installing the DBD module, i am facing the following errors > > > > There are lots of DBD modules - you are talking about DBD::DB2. Please > be > > precise in your thinking, and in your email subject lines. > > > >> on the issuance of make command. > >> > >> In file included from DB2.xs:7: > >> DB2.h:18:67: DBIXS.h: No such file or directory > > > > This says that the header file installed with DBI wasn't found when you > > tried to compile DBD::DB2. So, either you installed DBI somewhere off > the > > beaten track and didn't tell DBD::DB2 where it was, or you didn't > > successfully install DBI (or something went radically wrong, but that's > > pretty unlikely). > > > > I also note that Linux covers a rather wide range of platforms; some more > > precision in the platform (x86 vs x86_64 vs PPC vs SPARC vs zSeries vs > ...) > > version/distribution would not go amiss. Also, in general, the version > of > > Perl is relevant. This time, the answer does not depend on this > information > > (probably). But get in the habit of identifying what you are using > > succinctly but accurately. > > > >> In file included from DB2.h:22, > >> from DB2.xs:7: > >> dbdimp.h:15: error: syntax error before "dbih_drc_t" > >> dbdimp.h:15: warning: no semicolon at end of struct or union > >> dbdimp.h:18: error: syntax error before '*' token > >> dbdimp.h:18: warning: data definition has no type or storage class > >> dbdimp.h:19: error: syntax error before '}' token > >> dbdimp.h:23: error: syntax error before "dbih_dbc_t" > >> dbdimp.h:23: warning: no semicolon at end of struct or union > >> dbdimp.h:27: error: syntax error before '}' token > >> dbdimp.h:32: error: syntax error before "dbih_stc_t" > >> dbdimp.h:32: warning: no semicolon at end of struct or union > >> dbdimp.h:39: error: syntax error before '*' token > >> dbdimp.h:39: warning: data definition has no type or storage class > >> dbdimp.h:55: error: syntax error before '}' token > >> dbdimp.h:60: error: syntax error before "imp_sth_t" > >> dbdimp.h:60: warning: no semicolon at end of struct or union > >> dbdimp.h:77: error: syntax error before '}' token > >> dbdimp.h:83: error: syntax error before "SV" > >> > >> These are just some of the errors the errors in DB2.c,DB2.xs and DB2.h > >> files. > >> > >> I have installed the DB2 client in this machine and have run the > >> export DB2_HOME command. > >> > >> Can anyone help me in this? > -- Jonathan Leffler <[EMAIL PROTECTED]> #include <disclaimer.h> Guardian of DBD::Informix - v2008.0513 - http://dbi.perl.org "Blessed are we who can laugh at ourselves, for we shall never cease to be amused."
<<image/jpeg>>
<<image/gif>>
<<image/jpeg>>
<<image/jpeg>>
<<image/jpeg>>
