CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Perl Program not working in a particular LoginID

 



sumit2212
New User

Dec 1, 2013, 8:46 PM

Post #1 of 2 (1189 views)
Perl Program not working in a particular LoginID Can't Post

Hi
I am very new to Perl. I have been able to get a DB2 Driver installed on RHEL (64 Bit).
When I try to execute a Perl program using the root login id, the program displays the output.
When I try to run the same program using a different userid (in my case db2admin) I get the following error. I have been trying to make it work for last 3 days unsuccessfully.
======================================================
Status: 500
Content-type: text/html

<h1>Software error:</h1>
<pre>DBI object version 1.609 does not match bootstrap parameter 1.630 at /usr/lib64/perl5/DynaLoader.pm line 223.
BEGIN failed--compilation aborted at /usr/local/lib64/perl5/DBI.pm line 278.
Compilation failed in require at ./NewProgram.cgi line 10.
BEGIN failed--compilation aborted at ./NewProgram.cgi line 10.
</pre>
<p>
For help, please send mail to this site's webmaster, giving this error message
and the time and date of the error.

</p>
[Mon Dec 2 05:41:33 2013] NewProgram.cgi: DBI object version 1.609 does not match bootstrap parameter 1.630 at /usr/lib64/perl5/DynaLoader.pm line 223.
[Mon Dec 2 05:41:33 2013] NewProgram.cgi: BEGIN failed--compilation aborted at /usr/local/lib64/perl5/DBI.pm line 278.
[Mon Dec 2 05:41:33 2013] NewProgram.cgi: Compilation failed in require at ./NewProgram.cgi line 10.
[Mon Dec 2 05:41:33 2013] NewProgram.cgi: BEGIN failed--compilation aborted at ./NewProgram.cgi line 10.
====================================

I think its either a Path Problem or its an environment variable which needs to be set. Could someone please let me know the steps I should use for debugging this ?

Any help would be really appreciated.

Thanks & Regards
Sumit


FishMonger
Veteran / Moderator

Dec 2, 2013, 7:55 AM

Post #2 of 2 (1164 views)
Re: [sumit2212] Perl Program not working in a particular LoginID [In reply to] Can't Post

Is line 10 loading the DBI or DBD::DB2 or DB2::Admin module?

Can you post the first 10 or 15 lines of the script?

What method did you use to install the modules?

Do you have 2 separate installations of the modules?

The error message is telling you that you have a version conflict. The DBI module you're loading is v1.609 but the expected version is 1.630.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives