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***