IBM Support

Error running Perl scripts in ClearCase when multiple Perl versions are installed

Troubleshooting


Problem

This technote explains why the errors []Perl lib version (vX.X.X) doesn't match executable version (vX.X.X[] and []Compilation failed[] might occur when running IBM® Rational® ClearCase® perl scripts.

Symptom

Errors reported when running the ClearCase MultiSite® sync_receive.bat script:


d:\Program Files\Rational\ClearCase\config\scheduler\tasks\sync_receive.bat
Perl lib version (v5.8.7) doesn't match executable version (v5.8.6) at
C:\Program Files\Veritas\VRTSPerl\lib/Config.pm line 46.
Compilation failed in require at C:\Program Files\Veritas\VRTSPerl\lib/DynaLoader.pm line 25.
BEGIN failed--compilation aborted at C:\Program
Files\Veritas\VRTSPerl\lib/DynaLoader.pm line 25.
Compilation failed in require at D:/Program
Files/Rational/Common/lib/perl5/site_perl/5.8.6/MSWin32-x86-multi-
thread/Win32API/Registry.pm line 10.
Compilation failed in require at D:/Program
Files/Rational/Common/lib/perl5/site_perl/5.8.6/MSWin32-x86-multi-
thread/Win32/TieRegistry.pm line 26.
BEGIN failed--compilation aborted at D:/Program
Files/Rational/Common/lib/perl5/site_perl/5.8.6/MSWin32-x86-multi-
thread/Win32/TieRegistry.pm line 26.
Compilation failed in require at D:/Program
Files/Rational/Common/lib/perl5/site_perl/5.8.6/ClearCase/CurrentVersion.pm line 12.
Compilation failed in require at D:\Program
Files\Rational\ClearCase\bin/ccperlpp.pl line 24.
BEGIN failed--compilation aborted at D:\Program Files\Rational\ClearCase\bin/ccperlpp.pl line 24.

Cause


The problem may be caused when there are multiple versions of Perl installed on the same system where the search path environment variable is setup so that the "incorrect" Perl version is chosen first.

Resolving The Problem





Remove any incorrect paths in your system path statement.

Then move the ...\clearcase\bin path closer to the beginning of the system path environment variable and restart the machine.

[{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Perl: ccperl","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.0.1;7.0.0.1;7.0;2003.06.16;2003.06.15;2003.06.14;2003.06.13;2003.06.12;2003.06.10;2003.06.01;2003.06.00;2002.05.00","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Perl: ccperl","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21289331