Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl on AIX error

Status
Not open for further replies.

Marksmen

Technical User
Feb 4, 2003
36
US
One of our developers is trying to use perl on our AIX 5.1 system and gets the following error in Config.pm file:

perl adcfgclone.pl appsTier
Perl lib version (5.00503) doesn't match executable version (5.006) at /oracle/1158/apps/db12ora/iAS/Apache/perl/lib/5.00503/aix/Config.pm line 7.
Compilation failed in require at adcfgclone.pl line 27.
BEGIN failed--compilation aborted at adcfgclone.pl line 27.

I checked the perl.rte and OS levels with another system where he claims a similar command works and they are identical.

/ # lslpp -l bos.rte
Fileset Level State Description
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
bos.rte 5.1.0.35 COMMITTED Base Operating System Runtime

Path: /etc/objrepos
bos.rte 5.1.0.25 COMMITTED Base Operating System Runtime

/ # lslpp -l bos.rte
Fileset Level State Description
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
bos.rte 5.1.0.35 COMMITTED Base Operating System Runtime

Path: /etc/objrepos
bos.rte 5.1.0.25 COMMITTED Base Operating System Runtime

/ # oslevel
5.1.0.0
 
It looks like a mismatch of Perl. What do the two systems have for perl.rte?
 
AIX 5.1 ships the perl.rte as 5.6. My guess is that the version of Perl (due to user's PATH) is not what make is picking up. The symbolic link to perl is probably not correct (/usr/opt/perl5 for the actual executable).
 
The level of perl on both systems is:

/ # lslpp -l perl.rte
Fileset Level State Description
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
perl.rte 5.6.0.0 COMMITTED Perl Version 5 Runtime
Environment
 
If this was an AIX upgrade you probably still have the old Perl version 5.005_03 installed as well as the new version.

Your compile is using the prior version which won't work with the new version.
 
I believe both systems were installed originally with AIX 5.1. I am not sure if they are at the same maintenance level though. Could this be the issue?
 
It looks like its a difference between the perl that Oracle installed and that is on the OS. If the library path has the Oracle library first (5.0003) and the path has the executable for 5.0006 first, maybe that could be the problem.

Or, this is an Oracle problem and you need to patch Oracle to get the library up to version 5.0006. which version of Oracle?
 
Looks like you'll have to recompile the Oracle DBD. You'll get that kind of message when the versions of perl didn't match for particular modules. I guess you've already noticed that the migration to AIX5 for AIX4.3.3 completed wipes out all of you perl add-on modules and you'll have to reinstall. (assuming perl was installed in "/usr/opt/"). This can be painful if you don't know what they were or what versions they were.

You can download the DBD::Oracle module from:
If you don't have the source already.

Goo luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top