Fix for Perl/CGI script error Attempt to free unreferenced scalar: SV 0x8814b40, Perl interpreter: 0
This how to reinstall Perl 5.8.8 on CentOS 64-bit system that had been corrupted or experienced the following errors when trying to run cpan or attempting to launch Perl/CGI scripts:
The error when running cpan is:
The following is the fix for it:
Hope this helps someone stuck with such errors.
[Starting localperl]
Attempt to free unreferenced scalar: SV 0x8814b40, Perl interpreter: 0x8698010 at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/IO/File.pm line 134.
Attempt to free unreferenced scalar: SV 0x1414db40, Perl interpreter: 0x13fd1010 at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/IO/File.pm line 134.
Disabling /bin/wget since LWP is available at /usr/local/cpanel/Cpanel/cPCPAN/Config.pm line 76.
Disabling /bin/ftp since Net::FTP is available at /usr/local/cpanel/Cpanel/cPCPAN/Config.pm line 81.
Attempt to free unreferenced scalar: SV 0x1e4d94f0, Perl interpreter: 0x1e35d010 at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/IO/File.pm line 134.
Fetching CPAN mirrors...Fetching http://httpupdate.cpanel.net/pub/cpanmirror/MIRRORED.BY.bz2 (connected:0).......(request attempt 1/12)...Using dns cache fi$
Done
Fetching CPAN timestamp...Fetching http://httpupdate.cpanel.net/pub/CPAN/MIRRORING.FROM (connected:1).......(request attempt 1/12)...@208.100.0.204......con$
Done
The following is the fix for it:
[10:00:14 server root@5526483 ~]cPs# mv /usr/lib/perl5{,.old}
[10:00:57 server root@5526483 ~]cPs# mv /usr/lib64/perl5{,.old}
[10:01:04 server root@5526483 ~]cPs# mv /usr/bin/perl{,.old2}
[10:01:19 server root@5526483 ~]cPs# yum reinstall perl
Hope this helps someone stuck with such errors.
Please sign in to leave a comment.
Comments
0 comments