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@ee.ucr.edu hiep@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
thanks everyone, but i still can't install Pod::Usage because of depedency. Is there a way to includ all dependencies into cpan2rpm installation?
This is what I tried:
cpan2rpm -i http://www.cpan.org/authors/id/B/BB/BBC/Pod-Usage-CGI-1.010.tar.gz
thanks, JC
On Thu, 8 Dec 2005, Josh Kelley wrote:
On 12/8/05, hiep@ee.ucr.edu hiep@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 _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Am Do, den 08.12.2005 schrieb hiep@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
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@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
Am Do, den 08.12.2005 schrieb JC um 19:13:
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.
Don't top-post please.
$ perl -MPod::Usage -e ''; => thus it is there (on my CentOS 4.2)
$ locate Usage.pm /usr/lib/perl5/5.8.5/Pod/Usage.pm
$ rpm -qf /usr/lib/perl5/5.8.5/Pod/Usage.pm perl-5.8.5-16.RHEL4.x86_64
Knowing your system can be helpful ;)
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
On 12/8/05, Kai Schaetzl maillists@conactive.com wrote:
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
Just be careful that whatever you're installing with cpan doesn't try to replace/update the existing perl installation. It'll make updating the system VERY unhappy. Also, "Best Practice" for rpm based systems dictates that system-wide programs should be installed via rpm.
-- Jim Perrin System Architect - UIT Ft Gordon & US Army Signal Center
On Thu, 2005-12-08 at 12:36, Jim Perrin wrote:
Don't use CPAN!
I'm happy with using CPAN, but one should avoid mixing rpms and CPAN.
Kai
Just be careful that whatever you're installing with cpan doesn't try to replace/update the existing perl installation. It'll make updating the system VERY unhappy. Also, "Best Practice" for rpm based systems dictates that system-wide programs should be installed via rpm.
I'd love to see someone package Request Tracker: http://www.bestpractical.com/rt/ and keep it updated, but how do you deal with dozens of dependent modules that aren't included in the base system but might someday? That is, how do you keep third party RPM packages from conflicting with the same thing that might be added officially by someone else later?
Les Mikesell wrote:
I'd love to see someone package Request Tracker: http://www.bestpractical.com/rt/ and keep it updated, but how do you deal with dozens of dependent modules that aren't included in the base system but might someday? That is, how do you keep third party RPM packages from conflicting with the same thing that might be added officially by someone else later?
Yeah, packages like RT pose a big problem, when you want to have a clean system where everything is installed via rpm. That's why we let RT live in it's own directory complete with it's own apache and perl and package that with rpm :)
Ralph
On Fri, 2005-12-09 at 03:48, Ralph Angenendt wrote:
Les Mikesell wrote:
I'd love to see someone package Request Tracker: http://www.bestpractical.com/rt/ and keep it updated, but how do you deal with dozens of dependent modules that aren't included in the base system but might someday? That is, how do you keep third party RPM packages from conflicting with the same thing that might be added officially by someone else later?
Yeah, packages like RT pose a big problem, when you want to have a clean system where everything is installed via rpm. That's why we let RT live in it's own directory complete with it's own apache and perl and package that with rpm :)
That just makes it a private problem. The solution is to get official packages for all the needed modules. What is the process for that? If you use fastcgi, the stock apache, perl, and mysql on Centos4 work fine.
On Fri, 2005-09-12 at 07:41 -0600, Les Mikesell wrote:
That just makes it a private problem. The solution is to get official packages for all the needed modules. What is the process for that? If you use fastcgi, the stock apache, perl, and mysql on Centos4 work fine.
I don't find installing Perl modules from cpan to be so bad. Been doing this for RT since FC1 all the way up to FC3, and now CentOS. We've never had an issue. I'm not saying that it wouldn't be a problem for other people, but simply that for us it's been great.
I agree that a nice RPM install is ideal. But, it's going to take a lot of work to package all the Perl dependencies. Most people's time would probably be spent elsewhere.
Regards,
Ranbir
On Fri, 2005-12-09 at 15:54, Kanwar Ranbir Sandhu wrote:
On Fri, 2005-09-12 at 07:41 -0600, Les Mikesell wrote:
That just makes it a private problem. The solution is to get official packages for all the needed modules. What is the process for that? If you use fastcgi, the stock apache, perl, and mysql on Centos4 work fine.
I don't find installing Perl modules from cpan to be so bad. Been doing this for RT since FC1 all the way up to FC3, and now CentOS. We've never had an issue. I'm not saying that it wouldn't be a problem for other people, but simply that for us it's been great.
The problem that people have with complex packages like RT is that CPAN changes all the time and the versions are interdependent so you need frozen snapshots known to work together. One week you might be able run the RT install script that pulls missing things from CPAN and the next week you might have several failures, sometimes from subtle things like a test routine provided by one module and used in another being moved or changed. Or, the modules may install but they may be newer versions that aren't compatible with RT.
I agree that a nice RPM install is ideal. But, it's going to take a lot of work to package all the Perl dependencies. Most people's time would probably be spent elsewhere.
You could install all of a Linux distribution out of today's CVS snapshots too. It's the same idea - but most people wouldn't like it.
Hi
On Thu 08-Dec-2005 at 06:59:15AM -0800, hiep@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::Distributions
I 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