Hi list, I have trouble install the following perl modules to my Centos 4.2 server and I need help Digest::SHA1 Digest::HMAC Net::DNS Time::HiRes HTML::Tagset HTML::Parser Pod::Usage Parse::Syslog Statistics::Distributions I tried "perl -MCPAN -e shell" and then "install Pod::Usage" and I got the following errors: CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Warning: Found only 0 objects in /root/.cpan/Metadata CPAN: LWP::UserAgent loaded ok Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz LWP failed with code[500] message[LWP::Protocol::MyFTP: Bad hostname 'ftp.perl.org'] Fetching with Net::FTP: ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz Trying with "/usr/bin/links -source" to get ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz ERROR at dump.c:188: Host not found System call "/usr/bin/links -source "ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz" > /root/.cpan/sources/authors/01mailrc.txt" returned status 1 (wstat 256) Warning: expected file [/root/.cpan/sources/authors/01mailrc.txt.gz] doesn't exist Trying with "/usr/bin/wget -O -" to get ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz --09:54:41-- ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz => `-' Resolving ftp.perl.org... failed: Name or service not known. System call "/usr/bin/wget -O - "ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz" > /root/.cpan/sources/authors/01mailrc.txt" returned status 1 (wstat 256) Warning: expected file [/root/.cpan/sources/authors/01mailrc.txt.gz] doesn't exist Issuing "/usr/kerberos/bin/ftp -n" ftp: ftp.perl.org: unknown host Not connected. Local directory now /root/.cpan/sources/authors Not connected. Not connected. Not connected. Not connected. Not connected. Not connected. Bad luck... Still failed! Can't access URL ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz. Please check, if the URLs I found in your configuration file () are valid. The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/' Could not fetch authors/01mailrc.txt.gz Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/modules/02packages.details.txt.gz LWP failed with code[500] message[LWP::Protocol::MyFTP: Bad hostname 'ftp.perl.org'] Fetching with Net::FTP: ftp://ftp.perl.org/pub/CPAN/modules/02packages.details.txt.gz Trying with "/usr/bin/links -source" to get ftp://ftp.perl.org/pub/CPAN/modules/02packages.details.txt.gz ERROR at dump.c:188: Host not found System call "/usr/bin/links -source "ftp://ftp.perl.org/pub/CPAN/modules/02packages.details.txt.gz" > /root/.cpan/sources/modules/02packages.details.txt" returned status 1 (wstat 256) Warning: expected file [/root/.cpan/sources/modules/02packages.details.txt.gz] doesn't exist Trying with "/usr/bin/wget -O -" to get ftp://ftp.perl.org/pub/CPAN/modules/02packages.details.txt.gz --09:54:47-- ftp://ftp.perl.org/pub/CPAN/modules/02packages.details.txt.gz => `-' Resolving ftp.perl.org... failed: Name or service not known. System call "/usr/bin/wget -O - "ftp://ftp.perl.org/pub/CPAN/modules/02packages.details.txt.gz" > /root/.cpan/sources/modules/02packages.details.txt" returned status 1 (wstat 256) Warning: expected file [/root/.cpan/sources/modules/02packages.details.txt.gz] doesn't exist Issuing "/usr/kerberos/bin/ftp -n" ftp: ftp.perl.org: unknown host Not connected. Local directory now /root/.cpan/sources/modules Not connected. Not connected. Not connected. Not connected. Not connected. Not connected. Bad luck... Still failed! Can't access URL ftp://ftp.perl.org/pub/CPAN/modules/02packages.details.txt.gz. Please check, if the URLs I found in your configuration file () are valid. The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/' Could not fetch modules/02packages.details.txt.gz Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/modules/03modlist.data.gz LWP failed with code[500] message[LWP::Protocol::MyFTP: Bad hostname 'ftp.perl.org'] Fetching with Net::FTP: ftp://ftp.perl.org/pub/CPAN/modules/03modlist.data.gz Trying with "/usr/bin/links -source" to get ftp://ftp.perl.org/pub/CPAN/modules/03modlist.data.gz ERROR at dump.c:188: Host not found System call "/usr/bin/links -source "ftp://ftp.perl.org/pub/CPAN/modules/03modlist.data.gz" > /root/.cpan/sources/modules/03modlist.data" returned status 1 (wstat 256) Warning: expected file [/root/.cpan/sources/modules/03modlist.data.gz] doesn't exist Trying with "/usr/bin/wget -O -" to get ftp://ftp.perl.org/pub/CPAN/modules/03modlist.data.gz --09:54:53-- ftp://ftp.perl.org/pub/CPAN/modules/03modlist.data.gz => `-' Resolving ftp.perl.org... failed: Name or service not known. System call "/usr/bin/wget -O - "ftp://ftp.perl.org/pub/CPAN/modules/03modlist.data.gz" > /root/.cpan/sources/modules/03modlist.data" returned status 1 (wstat 256) Warning: expected file [/root/.cpan/sources/modules/03modlist.data.gz] doesn't exist Issuing "/usr/kerberos/bin/ftp -n" ftp: ftp.perl.org: unknown host Not connected. Local directory now /root/.cpan/sources/modules Not connected. Not connected. Not connected. Not connected. Not connected. Not connected. Bad luck... Still failed! Can't access URL ftp://ftp.perl.org/pub/CPAN/modules/03modlist.data.gz. Please check, if the URLs I found in your configuration file () are valid. The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/' Could not fetch modules/03modlist.data.gz Going to write /root/.cpan/Metadata Warning: Cannot install Pod::Usage, don't know what it is. Try the command i /Pod::Usage/ to find objects with matching identifiers. Then I tried to download individual module and install it manually, but I got dependency warnings. Please help!!! Thanks. JC
On 12/8/05, hiep at ee.ucr.edu <hiep at ee.ucr.edu> wrote:> I have trouble install the following perl modules to my Centos 4.2 server > and I need help > > CPAN: Storable loaded ok > Going to read /root/.cpan/Metadata > Warning: Found only 0 objects in /root/.cpan/Metadata > CPAN: LWP::UserAgent loaded ok > Fetching with LWP: > ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz > LWP failed with code[500] message[LWP::Protocol::MyFTP: Bad hostname > 'ftp.perl.org']It looks like ftp.perl.org isn't getting resolved - looks like a DNS problem, possibly just a temporary problem. If it's not a DNS problem, you might want to try reconfiguring CPAN by running "o conf init" from the CPAN shell. However, a couple of the Perl modules you listed are part of the base CentOS distribution (run "yum install perl-Time-HiRes perl-HTML-Parser" to download and install them), and most of the rest are available in Dag's repository. If one or two of the modules aren't available as RPMs, you can download cpan2rpm (http://perl.arix.com/cpan2rpm/) and easily package them. I personally prefer to use RPMs for as much as possible, rather than installing software using a non-RPM mechanism such as CPAN. It makes it easier to check version numbers (since version numbers are all in the RPM database) and update software (just run "yum update"), and it makes it easier to duplicate your setup on another computer (since you don't have to configure and run the CPAN module on multiple machines). Josh Kelley
Am Do, den 08.12.2005 schrieb hiep at ee.ucr.edu um 15:59:> I have trouble install the following perl modules to my Centos 4.2 server > and I need help > > Digest::SHA1is base package> Digest::HMACis base package> Net::DNSis base package> Time::HiResis base package> HTML::Tagsetis base package> HTML::Parseris base package> Pod::Usage > Parse::Syslog > Statistics::DistributionsCheck other repositories for them.> I tried "perl -MCPAN -e shell" and then "install Pod::Usage" and I got the > following errors:Don't use CPAN!> JCFirst try to install the needed Perl modules from CentOS base. If not available from there, then check Dag's repository: he has a lot of Perl modules available as EL4 RPMs. As an alternate use Karan's repo centos.karan.org: he rebuilds Fedora Extras 3 (in future FE4) packages and thus provides quite a lot of Perl modules too. Alexander -- Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773 legal statement: http://www.uni-x.org/legal.html Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp Serendipity 16:33:41 up 3 days, 21:10, load average: 0.08, 0.15, 0.11 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Dies ist ein digital signierter Nachrichtenteil URL: <http://lists.centos.org/pipermail/centos/attachments/20051208/44fb23f1/attachment-0002.sig>
Hi On Thu 08-Dec-2005 at 06:59:15AM -0800, hiep at ee.ucr.edu wrote:> > I have trouble install the following perl modules to my Centos 4.2 server > and I need help > > Digest::SHA1 > Digest::HMAC > Net::DNS > Time::HiRes > HTML::Tagset > HTML::Parser > Pod::Usage > Parse::Syslog > Statistics::DistributionsI expect that all of these apart from the last 3 are available for Fedora 4, either from FC Extras or RPMForge -- if I were you I'd grab the SRPMs and rebuild and then install them. Some might also be available for RHEL4 from RPMForge already... For any you can't find SRPMs then I find cpanflute2 from the perl-RPM-Specfile RPM generally does an OK job of building RPMs from cpan tgz files. Chris -- Chris Croome <chris at webarchitects.co.uk> web design http://www.webarchitects.co.uk/ web content management http://mkdoc.com/
I got everything except for Pod::Usage. I looked all over places but can't find it. Can you tell what repositories have this package. Thanks On Thu, 8 Dec 2005, Alexander Dalloz wrote:> Am Do, den 08.12.2005 schrieb hiep at ee.ucr.edu um 15:59: > >> I have trouble install the following perl modules to my Centos 4.2 server >> and I need help >> >> Digest::SHA1 > > is base package > >> Digest::HMAC > > is base package > >> Net::DNS > > is base package > >> Time::HiRes > > is base package > >> HTML::Tagset > > is base package > >> HTML::Parser > > is base package > >> Pod::Usage >> Parse::Syslog >> Statistics::Distributions > > Check other repositories for them. > >> I tried "perl -MCPAN -e shell" and then "install Pod::Usage" and I got the >> following errors: > > Don't use CPAN! > >> JC > > First try to install the needed Perl modules from CentOS base. If not > available from there, then check Dag's repository: he has a lot of Perl > modules available as EL4 RPMs. As an alternate use Karan's repo > centos.karan.org: he rebuilds Fedora Extras 3 (in future FE4) packages > and thus provides quite a lot of Perl modules too. > > Alexander > > >--
Alexander Dalloz wrote on Thu, 08 Dec 2005 16:38:29 +0100:> Don't use CPAN!I'm happy with using CPAN, but one should avoid mixing rpms and CPAN. Kai -- Kai Sch?tzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com