Why does the post upgrade script convert_current_myisam_to_innodb.pl fail on line 16?

Document ID : KB000119925
Last Modified Date : 05/11/2018
Show Technical Document Details
Question:
Why does the post install script convert_current_myisam_to_innodb.pl  fail on line 16 after running it?
If I check line 16 in the script convert_current_myisam_to_innodb.pl, I see only "use threads;"


Failed with the message:
Compilation failed in require at ./convert_current_myisam_to_innodb.pl line 16.
BEGIN failed--compilation aborted at ./convert_current_myisam_to_innodb.pl line 16.
Environment:
Spectrum 10.3
RedHat Linux
Answer:
Perl for Linux is provided by the OS.  The most likely reason for failure is that your PERL modules do not support the use of threads.
You can workaround this by either removing or commenting out the line 16

use threads;

and add another line that says

use forks;

Then rerun the script and all should be successful.