- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: CPAN issues with proxy server
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-05-2013 03:20 AM - edited тАО08-05-2013 06:13 AM
тАО08-05-2013 03:20 AM - edited тАО08-05-2013 06:13 AM
Re: CPAN issues with proxy server
Hi Matti ,
root #/opt/perl-5.18.0 >wget ftp://cpan.mirror.ac.za/authors/01mailrc.txt.gz
--15:39:43-- ftp://cpan.mirror.ac.za/authors/01mailrc.txt.gz
=> `01mailrc.txt.gz'
Connecting to 33.xx.xx.xx:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 211,352 (206K) [application/octet-stream]
100%[============================================================================================================================>] 211,352 460.44K/s
15:39:52 (458.67 KB/s) - `01mailrc.txt.gz' saved [211352/211352]
For me wget is working fine .
Can we ask cpan.pm to use wget and not curl ???????
how do i check whether curl is working or not ??
PFA Config.pm herewith .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2013 03:21 PM
тАО08-07-2013 03:21 PM
Re: CPAN issues with proxy server
Trying with "/usr/bin/curl -L -f -s -S --netrc-optional -U ":" -x "http://33.xx.x.x:8080"" to get
ftp://cpan.mirror.ac.za/authors/01mailrc.txt.gz
CPAN: Compress::Zlib loaded ok (v2.015)
Going to read /.cpan/sources/authors/01mailrc.txt.gz ............................................................................DONE
This looks like your curl might be working.
But if you want to check, take the command line from within the quotes, add the ftp:// URL and see if you can get the file:
/usr/bin/curl -L -f -s -S --netrc-optional -U ":" -x "http://33.xx.x.x:8080" ftp://cpan.mirror.ac.za/authors/01mailrc.txt.gz
(all on a single command line)
If you receive a file named 01mailrc.txt.gz and it is not empty, curl should be working.
If you want to disable curl in CPAN shell, set the path of curl in the configuration to an empty string, i.e.
'curl' => q[],
just like the other possible download commands that don't exist on your system (lynx, ncftp, ncftpget).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2013 10:27 PM
тАО08-07-2013 10:27 PM
Re: CPAN issues with proxy server
Hi Matti ,
For that curl , am getting some garbage on my screen.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2013 10:14 AM
тАО08-08-2013 10:14 AM
Re: CPAN issues with proxy server
Oops, my mistake. By default, curl outputs the file it downloads to standard output. The ".gz" suffix in the filename indicates that "01mailrc.txt.gz" is compressed, so it would look like garbage.
If you still are not convinced that curl works, you can test it this way:
/usr/bin/curl -L -f -s -S --netrc-optional -U ":" -x "http://33.xx.x.x:8080" ftp://cpan.mirror.ac.za/authors/01mailrc.txt.gz >01mailrc.txt.gz
(all in one command line)
Then use "gunzip 01mailrc.txt.gz" to uncompress it.
After that, you should have a readable text file you can view with "more 01mailrc.txt".
The first 2 lines in the file should be:
alias AADLER "Andy Adler <adler@ncf.ca>" alias AAKD "Aaron K Dancygier <aaron@dancygier.com>"
and the last 2 lines should be:
alias ZZCGUMK "Mark Mc Keown <mark.mckeown@manchester.ac.uk>" alias ZZZ "Alexandr Gomoliako <zzz@zzz.org.ua>"
If you can see that, then curl has successfully loaded the complete file through your proxy, and so it can be used with the CPAN shell.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2013 10:36 PM - edited тАО08-11-2013 10:37 PM
тАО08-11-2013 10:36 PM - edited тАО08-11-2013 10:37 PM
Re: CPAN issues with proxy server
Hi Matti ,
am able to download perl modules now.
But everytime its asking for username and password and we dont have any .
How to set the cpn such that it doesnt ask for the same .
please check o conf settings below ;
cpan[1]> o conf
$CPAN::Config options from /opt/perl_32/lib/5.8.8/CPAN/Config.pm:
commit [Commit changes to disk]
defaults [Reload defaults from disk]
help [Short help about 'o conf' usage]
init [Interactive setting of all options]
applypatch []
auto_commit [0]
build_cache [100]
build_dir [/.cpan/build]
build_dir_reuse [0]
build_requires_install_policy [ask/yes]
bzip2 [/usr/local/bin/bzip2]
cache_metadata [1]
check_sigs [0]
colorize_debug undef
colorize_output [0]
colorize_print undef
colorize_warn undef
commandnumber_in_prompt [1]
commands_quote undef
connect_to_internet_ok [0]
cpan_home [/.cpan]
curl []
dontload_hash
[Net::FTP] => []
[LWP] => []
dontload_list undef
ftp [/usr/bin/ftp -p]
ftp_passive [1]
ftp_proxy [http://33.xx.xx.xx:8080]
ftpstats_period undef
ftpstats_size undef
getcwd [cwd]
gpg []
gzip [/usr/contrib/bin/gzip]
halt_on_failure [0]
histfile [/.cpan/histfile]
histsize [500]
http_proxy [http://33.xx.xx.xx:8080]
inactivity_timeout [0]
index_expire [1]
inhibit_startup_message [0]
keep_source_where [/.cpan/sources]
load_module_verbosity [v]
lynx []
make [/usr/bin/make]
make_arg []
make_install_arg []
make_install_make_command [/usr/bin/make]
makepl_arg []
mbuild_arg []
mbuild_install_arg []
mbuild_install_build_command [./Build]
mbuildpl_arg []
ncftp []
ncftpget []
no_proxy []
pager [/usr/bin/more]
password undef
patch [/usr/bin/patch]
patches_dir undef
perl5lib_verbosity [v]
prefer_external_tar undef
prefer_installer [MB]
prefs_dir [/.cpan/prefs]
prerequisites_policy [ask]
proxy_pass undef
proxy_user []
randomize_urllist undef
scan_cache [atstart]
shell [/sbin/sh]
show_unparsable_versions [1]
show_upload_date [0]
show_zero_versions [0]
tar [/usr/bin/tar]
tar_verbosity [v]
term_is_latin [1]
term_ornaments [1]
test_report [0]
trust_test_report_history [0]
unzip [/oracle/app/oracle/product/10.2.0/bin/unzip]
urllist
0 [ftp://cpan.mirror.ac.za/]
1 [http://mirror.is.co.za/]
2 [http://cpan.nctu.edu.tw/]
3 [http://perlmirror.indialinks.com/]
4 [ftp://ftp.nara.wide.ad.jp/pub/CPAN/]
5 [http://ftp.nara.wide.ad.jp/pub/CPAN/]
use_sqlite [0]
username undef
version_timeout undef
wait_list undef
wget [/usr/local/bin/wget]
yaml_load_code [0]
yaml_module [YAML]
Also i have updated cpan version to 2.00 and ran reload CPAN after it .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2013 12:34 AM
тАО08-12-2013 12:34 AM
SolutionLooks like your proxy_user setting is defined as an empty string.
For Perl, there is a difference between "undefined" and "defined as an empty string". In this case, "undefined" apparently means "the proxy won't need authentication", while "defined as an empty string" means "the proxy will need authentication, let the user supply the username & password manually".
I'm not using a proxy, and my CPAN shell configuration says:
proxy_pass undef proxy_user undef
You probably should completely remove the proxy_user line from your CPAN shell configuration file. After that, the proxy_user setting should be undefined.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2013 01:10 AM
тАО08-12-2013 01:10 AM
Re: CPAN issues with proxy server
Thanks Matti you were spot on :)
- « Previous
-
- 1
- 2
- Next »