i use Linux Redhat 7.2 , i have perl installed
i tried to use the CPAN, the problems is
it reports many errors ("Could not connect")
and reports "url is invalid" , here is the
configuration i use:
commit Commit changes to disk
defaults Reload defaults from disk
init Interactive setting of all options
it refuses to download any package, can anyone help
How do you use CPAN?
perl -MCPAN -e shell will either start the autoconfigure script or give you a shell.
I suggest doing the autoconfigure again. At the cpan> shell prompt, enter o conf init
i use it : perl -MCPAN -e shell
and this opens the CPAN shell, i tried to run the o conf init to reconfigure it but the same problem occurs again....
is there anything wrong with the configuration file i sent? i think it is error-less
i hope u can help
Ok.. sounds more like a dns problem..
Did you upgrade perl?
It needs to be compiled with the same version of gcc as on your RH system.
And is there any special reason you want to keep RH7.2?
There are lots of security updates not available in package format anymore.
I use it on some firewalls, but it isn't RH7.2 anymore. Many changes to it.
thanks for ur reply
perl is automatically installed with my System so it is already complied with gcc
you said that it is a dns problem? what u exactly mean by that?
It needs looking at why perl cannot find the url ftp://cpan-du.viaverio.com/pub/CPAN/
Either it can't resolve the address, dns
or ftp can't connect, passive or active ftp..
The perl module used to download is LWP::UserAgent
Is this where the config fails?
you r right!!! the machine was not properly configured to connect the right DNS
, just i have one more question i need some url to be added to the url sitelist of CPAN. can u give me some?
thanks so much for ur help
Run the config again and it will give you a list of world regions.
You can add as many as you want from there..
|All times are GMT -5. The time now is 05:45 AM.|