FedoraForum.org - Fedora Support Forums and Community
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2005
    Location
    Columbus, Ohio, USA
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Perl5 failed in FC22

    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!

  2. #2
    Join Date
    Nov 2006
    Location
    Detroit
    Posts
    10,367
    Mentioned
    134 Post(s)
    Tagged
    0 Thread(s)

    Re: Perl5 failed in FC22

    Quote Originally Posted by pitonyak
    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
    Well there's your problem. There was no need to install under /usr/local, you could have just installed the perl-String-CRC32 package from the Fedora repos:
    Code:
    dnf install perl-String-CRC32
    In general it's better to use the perl packages in the Fedora repos before resorting to cpan.
    OS: Fedora 45 x86_64 | DE/WM: Window Maker (X11) | Machine: Lenovo ThinkCentre M91P | CPU: Intel Core i5-2500 (4)@3.30GHz | RAM: 32GB PC3-12800 DDR3 | Disks: Seagate Barracuda ST500DM002 500GB SATA, Seagate Constellation ES.3 ST1000NM0033 1TB SATA | Video: Intel HD Graphics 2000 128MB | Sound: Turtle Beach Santa Cruz CS4630 | Ethernet: Intel 82579LM

  3. #3
    Join Date
    Jul 2015
    Location
    Boston, MA
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile Re: Perl5 failed in FC22

    Quote Originally Posted by pitonyak

    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.
    Thanks, this just helped me!

Similar Threads

  1. fc22 odd dns problem
    By markie in forum Servers & Networking
    Replies: 0
    Last Post: 17th June 2015, 10:57 PM
  2. who is using fc22 as a server
    By Jagcoxa in forum Servers & Networking
    Replies: 14
    Last Post: 10th June 2015, 08:05 AM
  3. 4.0.4-301.fc22.x86_64
    By rbmorse in forum F22 Development Forum
    Replies: 3
    Last Post: 22nd May 2015, 09:29 PM
  4. fc22 -- firefox cpu 100%
    By oystercatcher in forum F22 Development Forum
    Replies: 11
    Last Post: 9th April 2015, 02:43 AM
  5. Replies: 0
    Last Post: 30th August 2005, 08:55 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •