LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-24-2005, 07:38 AM   #1
mesh2005
Member
 
Registered: Sep 2005
Location: Ägypten
Distribution: Ubuntu 5.10
Posts: 155

Rep: Reputation: 30
CPAN Problem


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

build_cache 10
build_dir /root/.cpan/build
cache_metadata 1
cpan_home /root/.cpan
dontload_hash
ftp /usr/kerberos/bin/ftp
ftp_proxy
getcwd cwd
gpg /usr/bin/gpg
gzip /bin/gzip
histfile /root/.cpan/histfile
histsize 100
http_proxy
inactivity_timeout 0
index_expire 1
inhibit_startup_message 0
keep_source_where /root/.cpan/sources
links /usr/bin/links
make /usr/bin/make
make_arg
make_install_arg
makepl_arg
ncftpget /usr/bin
no_proxy
pager /usr/bin/less
prerequisites_policy ask
scan_cache atstart
shell /bin/bash
tar /bin/tar
term_is_latin 1
unzip /usr/bin/unzip
urllist
ftp://cpan-du.viaverio.com/pub/CPAN/
ftp://ftp.ucr.ac.cr/pub/Unix/CPAN/
ftp://ftp.tuwien.ac.at/pub/CPAN/
wget /usr/bin/wget


it refuses to download any package, can anyone help
thanks
 
Old 10-24-2005, 08:06 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 47
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
 
Old 10-25-2005, 02:05 AM   #3
mesh2005
Member
 
Registered: Sep 2005
Location: Ägypten
Distribution: Ubuntu 5.10
Posts: 155

Original Poster
Rep: Reputation: 30
Unhappy

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
thanks
 
Old 10-25-2005, 04:51 AM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 47
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.
 
Old 10-25-2005, 05:02 AM   #5
mesh2005
Member
 
Registered: Sep 2005
Location: Ägypten
Distribution: Ubuntu 5.10
Posts: 155

Original Poster
Rep: Reputation: 30
Smile

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?
thanks
 
Old 10-25-2005, 06:03 AM   #6
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 47
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?
 
Old 10-25-2005, 07:50 AM   #7
mesh2005
Member
 
Registered: Sep 2005
Location: Ägypten
Distribution: Ubuntu 5.10
Posts: 155

Original Poster
Rep: Reputation: 30
Smile

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
 
Old 10-25-2005, 08:36 AM   #8
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 47
Run the config again and it will give you a list of world regions.
You can add as many as you want from there..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cpan install problem MicroSun Linux - Software 1 01-31-2005 08:39 AM
Perl CPAN Problem murphy23 Slackware 4 01-24-2005 07:03 AM
cpan.pm question hcclnoodles Linux - Software 2 09-28-2004 03:08 PM
perl -MCPAN -e shell # PROBLEM FINDING CPAN site Louis_Carole Linux - Software 1 08-26-2004 05:55 PM
Perl:CPAN problem on startup jester_69 Linux - Software 0 10-04-2003 08:29 PM


All times are GMT -5. The time now is 06:52 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration