I attempted to run a perl script that I wrote some time back and I had the following abbreviated error:
Code:
Can't locate String/CRC32.pm in @INC (you may need to install the String::CRC32 module)
Odd, I installed it before I upgraded to FC22 and I see it in /usr/local/lib64/perl5
So, I tried to run cpan to install it and I had an error that looked something like this:
Code:
Attempt to reload Scalar/Util.pm aborted.
Compilation failed in require at /usr/share/perl5/vendor_perl/File/Temp.pm line 18.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/File/Temp.pm line 18.
Compilation failed in require at /usr/share/perl5/vendor_perl/File/Fetch.pm line 5.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/File/Fetch.pm line 5.
Compilation failed in require at /usr/share/perl5/vendor_perl/CPANPLUS/Internals/Fetch.pm line 8.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/CPANPLUS/Internals/Fetch.pm line 8.
Compilation failed in require at /usr/share/perl5/vendor_perl/CPANPLUS/Internals.pm line 15.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/CPANPLUS/Internals.pm line 15.
Compilation failed in require at /usr/share/perl5/vendor_perl/CPANPLUS/Configure.pm line 22.
Compilation failed in require at /usr/share/perl5/vendor_perl/CPANPLUS/Backend.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/CPANPLUS/Backend.pm line 7.
Compilation failed in require at /usr/share/perl5/vendor_perl/CPANPLUS.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/CPANPLUS.pm line 7.
Compilation failed in require at /bin/cpanp line 11.
BEGIN failed--compilation aborted at /bin/cpanp line 11.
[root@andrew ~]# perl -e 'use Scalar::Util qw(foo)'
Can't load '/usr/local/lib64/perl5/auto/List/Util/Util.so' for module List::Util: libperl.so.5.18: cannot open shared object file: No such file or directory at /usr/share/perl5/XSLoader.pm line 68.
at /usr/local/lib64/perl5/List/Util.pm line 22.
Compilation failed in require at /usr/local/lib64/perl5/Scalar/Util.pm line 11.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
After tracing through some of the "errors", I tried this command:
Code:
[root@andrew ~]# perl -e 'use List::Util qw(all)'
Can't load '/usr/local/lib64/perl5/auto/List/Util/Util.so' for module List::Util: libperl.so.5.18: cannot open shared object file: No such file or directory at /usr/share/perl5/XSLoader.pm line 68.
at /usr/local/lib64/perl5/List/Util.pm line 22.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
[1]+ Done gedit /usr/share/perl5/XSLoader.pm
The solution was to simply rename /usr/local/lib64/perl5 to /usr/local/lib64/perl5_old (or just delete it). Next, I reinstalled String:
RC32 and all was right with the world.
I hope that this helps someone else.
---------- Post added at 11:32 AM ---------- Previous post was at 11:30 AM ----------
Looks like a colon (
followed by a C turns into some kind of smilley!