in reply to Need help with CPAN gone awry

Since you are on Fedora and thus have yum, it is a good idea to install perl packages via RPM. Add the following file to your /etc/yum.repos.d/ directory:
# file dries.repo [dries] name=Extra Fedora rpms dries - $releasever - $basearch baseurl=http://ftp.belnet.be/packages/dries.ulyssis.org/fedora/fc$rele +asever/$basearch/RPMS.dries/

For packages that aren't in this repo, I'd suggest RPM::Specfile and subsequent packaging with cpanflute2 included there.

Note that you have to disable the somewhat braindead /usr/lib/rpm/perl.req like so

foreach $module (sort keys %require) { if (length($require{$module}) == 0) { - print "perl($module)\n"; + warn "perl($module)\n"; } else { # I am not using rpm3.0 so I do not want spaces arround my # operators. Also I will need to change the processing of the # $RPM_* vairable when I upgrage. - print "perl($module) >= $require{$module}\n"; + warn "perl($module) >= $require{$module}\n"; } }

since otherwise you would end up with packages that require perl-Foo-Bar, Foo::Bar being a core package.

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Replies are listed 'Best First'.
Re^2: Need help with CPAN gone awry
by jlk (Hermit) on Sep 15, 2007 at 15:20 UTC

    Thank you very much shmem, I really appreciate your replying. I will definitely look into setting up to install modules the way you mentioned as it is always good to have another way to install them.

    Unfortunately, the module "CGI" is not part of the RPM's. They seem to have the other CGI modules and whatnot, but not that one. Do you have any idea what the issue could be with the way my machine is presently configured to install modules? I would love to get that method working again, as well. Thanks! Jeff

    "Every time Linux boots, a penguin gets its wings"

      it is always good to have another way to install them.

      More than being "another way", it is always good to install packages in a OS compliant way. And that's RPM and yum on Fedora.

      Unfortunately, the module "CGI" is not part of the RPM's.

      It isn't, because it's in perl core:

      qwurx [shmem] ~ > cat /etc/redhat-release Fedora release 7 (Moonshine) qwurx [shmem] ~ > perl -MCGI -le 'print $INC{"CGI.pm"}' /usr/lib/perl5/5.8.8/CGI.pm qwurx [shmem] ~ > rpm -qf /usr/lib/perl5/5.8.8/CGI.pm perl-5.8.8-23.fc7

      No need to install CGI.

      update: while you're at it, do a

      rpm -q perl-Compress-Zlib

      If it isn't there, do a yum install perl-Compress-Zlib :-)

      --shmem

      _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                    /\_¯/(q    /
      ----------------------------  \__(m.====·.(_("always off the crowd"))."·
      ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

        Sorry it took so long to get back on your suggestions. I did the "rpm" you suggested and it came back with:

        perl-Compress-Zlib-1.42-1.fc6

        and went back to the command prompt. Also, I tried the yum command also and it kicked back with the message, "Nothing to do", which tells me it is installed.

        I am really bewildered as to why this does not want to work. Any suggestions that anyone has as to why this isn't working and how to get it to work is greatly appreciated as I am stumped.

        Regards, Jeff

        "Every time Linux boots, a penguin gets its wings"