4

I have perl script for TSM reporting which was working fine in AIX version 5. After upgrading AIX to version 6, the script is not working. I'm getting this error:

byteloader version mismatch expected 0.5 , got 0.6 .

I guess after upgrading OS perl also got upgraded from perl 5.8.2 (working) to 5.8.8 (not working).

What do I have to do to make this script work on AIX 6?

Mat
  • 1,536
  • 1
  • 17
  • 21
Amit Singh
  • 81
  • 4

1 Answers1

4

Your perl script apparently uses bytecode. Bytecode is kind of like compiled code. It is pre-parsed code which loads more efficiently than normal script code (really bad explanation, wikipedia probably does a better job).
However in perl, running the bytecode is restricted to the version of the module it was built with. So what this means is that you used ByteLoader 0.5 to build the bytecode, but the box you're running it on has version 0.6.

The solution is either to rebuild the script with the newer version of the ByteLoader module (it's documentation contains instructions for doing this), or to run the normal non-bytecode script. However both require that you still have the normal non-bytecode version around.

phemmer
  • 5,909
  • 2
  • 27
  • 36