Newbie: Perl 5.8.0 not working in Red Hat 8.0

Ask a Question related to PERL Miscellaneous, Design and Development.

  1. #1

    Default Newbie: Perl 5.8.0 not working in Red Hat 8.0

    I installed Red Hat 8.0 on an old system that I had laying around, and the
    Red Hat installer put Perl 5.8.0 on my system. Whenever I try to run Perl,
    it fails. For example:

    [root@teeny root]# perl -V
    Perl v5.6.0 required--this is only v5.8.0, stopped at
    /usr/lib/perl5/5.8.0/Exporter.pm line 3.
    Compilation failed in require at
    /usr/lib/perl5/5.8.0/i386-linux-thread-multi/Config.pm line 2.
    BEGIN failed--compilation aborted at
    /usr/lib/perl5/5.8.0/i386-linux-thread-multi/Config.pm line 2.
    Compilation failed in require.
    BEGIN failed--compilation aborted.

    [root@moose root]# perl -v
    This is perl, v5.8.0 built for i386-linux-thread-multi
    [...]

    [root@moose root]# which perl
    /usr/bin/perl


    I searched all over trying to answer this one, but I couldn't find any
    solutions for this particular problem.

    Random details that probably don't matter: 300MHz AMD K6-2 with 64MB memory
    and a 2GB hard drive. Red Hat Linux release 8.0 (Psyche).

    Thank you for any help!
    Bryan


    Bryan Hilterbrand Guest

  2. Similar Questions and Discussions

    1. newbie perl to php question
      I have a perl script that opens a file (book of the bible), loops through it looking for <b>chapter:verse</b> and then returns only that line in...
    2. newbie to perl
      Hi I'm completely new to perl can anyone tell me where I can get perl at?
    3. Newbie need help with Perl & SNMP
      Hi, We have several large class B subnets of which we wish to poll-4 snmp variables in total (not Sys Uptime). I'm looking for some sort of script...
    4. More newbie questions about Perl
      Ok... that was just confusing. Let's start with something basic that I don't get. In the beginning of the Llama, the authors said something about a...
    5. ASP -> Perl Script HELP ..NEWBIE>.
      kalusalu graced us by uttering: You'll want to learn Perl. Not many of us program in PERL. But if you'd like it converted to Perl,...
  3. #2

    Default Re: Newbie: Perl 5.8.0 not working in Red Hat 8.0

    In article <bkfoo2$kn4$1@terabinaries.xmission.com>,
    "Bryan Hilterbrand" <no.bryanah.trash.email@bullwinkle.net> wrote:
    > I installed Red Hat 8.0 on an old system that I had laying around, and the
    > Red Hat installer put Perl 5.8.0 on my system. Whenever I try to run Perl,
    > it fails. For example:
    >
    > [root@teeny root]# perl -V
    > Perl v5.6.0 required--this is only v5.8.0, stopped at
    > /usr/lib/perl5/5.8.0/Exporter.pm line 3.
    > Compilation failed in require at
    > /usr/lib/perl5/5.8.0/i386-linux-thread-multi/Config.pm line 2.
    > BEGIN failed--compilation aborted at
    > /usr/lib/perl5/5.8.0/i386-linux-thread-multi/Config.pm line 2.
    > Compilation failed in require.
    > BEGIN failed--compilation aborted.
    This looks like the perl binary is probably 5.6.0, whereas it's looking
    in a directory which contains 5.8.0 modules.

    I suggest you check your PATH environment variable (`whereis perl`) to
    see if there are multiple copies of the binary lurking on your machine.

    It would also be a good idea to download the Perl source and re-compile
    it from scratch. I, and others, have had lots of problems with RedHat's
    stock RPMs of Perl.

    --
    Dan Wilga [email]dwilga-MUNGE@mtholyoke.edu[/email]
    ** Remove the -MUNGE in my address to reply **
    Dan Wilga Guest

  4. #3

    Default Re: Newbie: Perl 5.8.0 not working in Red Hat 8.0


    "Dan Wilga" <dwilga-MUNGE@mtholyoke.edu> wrote in message
    news:dwilga-MUNGE-C0271E.17213919092003@nap.mtholyoke.edu...
    >
    > This looks like the perl binary is probably 5.6.0, whereas it's looking
    > in a directory which contains 5.8.0 modules.
    >
    > I suggest you check your PATH environment variable (`whereis perl`) to
    > see if there are multiple copies of the binary lurking on your machine.
    >
    > It would also be a good idea to download the Perl source and re-compile
    > it from scratch. I, and others, have had lots of problems with RedHat's
    > stock RPMs of Perl.
    Thanks for the info, Dan!

    I did the "whereis perl", and it just returned:

    [root@moose root]# whereis perl
    perl: /usr/bin/perl /usr/share/man/man1/perl.1.gz

    So it looks like the installation is messed up. If I build it myself, which
    RPMs should I remove? There is a bunch of them:

    [root@moose root]# rpm -qa | grep perl
    perl-Parse-Yapp-1.05-26
    perl-libxml-perl-0.07-25
    perl-XML-Grove-0.46alpha-21
    perl-5.8.0-55
    perl-DateManip-5.40-27
    perl-HTML-Parser-3.26-14
    perl-URI-1.21-3
    perl-XML-Parser-2.31-12
    perl-XML-Dumper-0.4-22
    perl-libxml-enno-1.02-25
    perl-XML-Twig-3.05-3
    mod_perl-1.99_05-3
    perl-Filter-1.28-9
    perl-CPAN-1.61-55
    perl-HTML-Tagset-3.03-25
    perl-libwww-perl-5.65-2
    perl-XML-Encoding-1.01-20

    Should I just remove perl-5.8.0-55 and compile/install stable.tar.gz that I
    downloaded from cpan.org? Or should I remove them all, and then find all
    the Perl libraries and install them?

    Bryan


    Bryan Hilterbrand Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139