Sanjay, I suggest the following:
1. Upgrade your version of Perl to 5.8.8 (someone else suggested this already) and put it in a different location (not /usr/bin or /usr/local/bin). You most definitely will need a C compiler to do this. 2. Change your path in /etc/profile to have this new Perl found before the Perl that is a standard part of your O/S. 3. Install DBI/DBD::Oracle and other modules you need to get things rolling. -- Ron Reidy Lead DBA Array BioPharma, Inc. -----Original Message----- From: Sanjay Tripathi [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 8:17 AM To: Matthew Ramadanovic; Satya Shiv Mohanty Cc: dbi-users@perl.org Subject: RE: Perl DBI Urgent Matt, As your suggestion, I did like that [EMAIL PROTECTED] # vi sanjay_test.pl "sanjay_test.pl" [New file] #!/usr/bin/perl eval { use DBI; }; if ($@) { print "Couldn't use DBI : [EMAIL PROTECTED]"; } else { print "Loaded DBI successfully\n"; } eval { use DBD::Oracle; }; if ($@) { print "Couldn't use DBD::ORACLE : [EMAIL PROTECTED]"; } else { print "Loaded DBD::Oracle successfully\n"; } print "Done\n"; [EMAIL PROTECTED] # perl sanjay_test.pl Can't locate DBI.pm in @INC (@INC contains: /usr/perl5/5.6.1/lib/sun4-solaris-64int /usr/perl5/5.6.1/lib /usr/perl5/site_perl/5.6.1/sun4-solaris-64int /usr/perl5/site_perl/5.6.1 /usr/perl5/site_perl /usr/perl5/vendor_perl/5.6.1/sun4-solaris-64int /usr/perl5/vendor_perl/5.6.1 /usr/perl5/vendor_perl .) at sanjay_test.pl line 3. BEGIN failed--compilation aborted at sanjay_test.pl line 3. [EMAIL PROTECTED] # Still I'm facing same problem any Idea :) Thanks Sanjay Tripathi -----Original Message----- From: Matthew Ramadanovic [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 7:26 PM To: Sanjay Tripathi; Satya Shiv Mohanty Cc: dbi-users@perl.org Subject: RE: Perl DBI Urgent Why not just do something like this: #!/usr/bin/perl eval { use DBI; }; if ($@) { print "Couldn't use DBI : [EMAIL PROTECTED]"; } else { print "Loaded DBI successfully\n"; } eval { use DBD::Oracle; }; if ($@) { print "Couldn't use DBD::ORACLE : [EMAIL PROTECTED]"; } else { print "Loaded DBD::Oracle successfully\n"; } print "Done\n"; -Matt -----Original Message----- From: Sanjay Tripathi [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 9:13 AM To: Satya Shiv Mohanty Cc: dbi-users@perl.org Subject: RE: Perl DBI Urgent How do I will check that Perl is having DBI and DBD(Oracle) Module or not! ~~Sanjay~~~ -----Original Message----- From: Satya Shiv Mohanty [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 27, 2007 8:00 PM To: Sanjay Tripathi Subject: RE: Perl DBI Urgent Probably u did not add the exact location of the DBI.pm in ur script. Assuming that ur DBI.pm is at /usr/perl5/lib/sun4-solaris/DBI.pm, then u need to include it using following:- use lib "/usr/perl5/lib/sun4-solaris"; in ur script. Also for " Premature end of script headers" I think u r not mentioning the output type of the document u r trying to display. Like u use print "Content-type: text/html\n\n"; for html output. Hope this helps u. Regards Satya Shiv -----Original Message----- From: Sanjay Tripathi [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 27, 2007 5:41 PM To: dbi-users@perl.org Subject: Perl DBI Urgent Hi, I getting problem with Perl/Cgi/DBI. Can you guys help me out. Please see the log below. Aapche Logs: Can't locate DBI.pm in @INC (@INC contains: /app/custom/steve/perl /usr/perl5/5.6.1/lib/sun4-solaris-64int /usr/perl5/5.6.1/lib /usr/perl5/site_perl/5.6.1/sun4-solaris-64int /usr/perl5/site_perl/5.6.1 /usr/perl5/site_perl /usr/perl5/vendor_perl/5.6.1/sun4-solaris-64int /usr/perl5/vendor_perl/5.6.1 /usr/perl5/vendor_perl . /app/custom/steve/perl /app/custom/perl /heb/appl/ewa/perl/bin/perl) at /app/w3/steve/cgi/ewa_new_user.cgi line 3. BEGIN failed--compilation aborted at /app/w3/steve/cgi/ewa_new_user.cgi line 3. [Tue Mar 27 06:47:06 2007] [error] [client x.x.x.x] Premature end of script headers: /app/w3/steve/cgi/ewa_new_user.cgi Then I tried [EMAIL PROTECTED] # perl -e 'use DBI; print $DBI::VERSION,"\n";' Can't locate loadable object for module DBI in @INC (@INC contains: /usr/perl5/5.6.1/lib/sun4-solaris-64int /usr/perl5/5.6.1/lib /usr/perl5/site_perl/5.6.1/sun4-solaris-64int /usr/perl5/site_perl/5.6.1 /usr/perl5/site_perl /usr/perl5/vendor_perl/5.6.1/sun4-solaris-64int /usr/perl5/vendor_perl/5.6.1 /usr/perl5/vendor_perl .) at DBI.pm line 254 BEGIN failed--compilation aborted at DBI.pm line 254. Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1. Thanks ST **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer ********INFOSYS*** This electronic message transmission is a PRIVATE communication which contains information which may be confidential or privileged. The information is intended to be for the use of the individual or entity named above. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. Please notify the sender of the delivery error by replying to this message, or notify us by telephone (877-633-2436, ext. 0), and then delete it from your system.