Proxy must be specified as absolute URI

Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Proxy must be specified as absolute URI
# 1  
Old 09-27-2009
Proxy must be specified as absolute URI

I encounter frequently a problem when installing Perl modules as follows:
perl -MCPAN -e 'install Family::Module'

The error message is:
Proxy must be specified as absolute URI; ' ' is not at /usr/local/lib/perl5/5.8.8/ line 2357

even though I am not behind a proxy. Forcing to install the module as such:
perl -MCPAN -e force 'install Family::Module'

does not lead to any message, but still leads to error messages when running the Perl program that depends on the module.
What can be done to resolve this?
# 2  
Old 09-27-2009
You've got either the ftp_proxy or http_proxy setting for CPAN set to a single blank. Start the CPAN shell with
perl -MCPAN -eshell

and enter this
o conf ftp_proxy ''
o conf http_proxy ''

(That's two single quotes with nothing between them)
# 3  
Old 09-27-2009
Thank you for your swift response. What can I do upon installation of CPAN and Perl to have these settings from the start? Which configuration file needs these settings?

---------- Post updated at 19:07 ---------- Previous update was at 19:06 ----------

Also, I still get the same error message:
# perl -MCPAN -e 'install XML::Simple'
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
  Database was generated on Sat, 26 Sep 2009 00:27:06 GMT
Running install for module XML::Simple
Running make for G/GR/GRANTM/XML-Simple-2.18.tar.gz
CPAN: LWP::UserAgent loaded ok
Proxy must be specified as absolute URI; ' ' is not at /usr/local/lib/perl5/5.8.8/ line 2357

# 4  
Old 09-27-2009
If you've verified that the settings work, you can save it by entering
o conf commit

in the CPAN shell.

CPAN settings are kept in /usr/local/lib/perl5/5.8.8/CPAN/ (global) or ~/.cpan/CPAN/ (user-specific)
# 5  
Old 09-27-2009
Thank you for your response. So the following from the file is correct and is equivalent to your entries that one can do within CPAN?
'ftp_proxy' => q[ ],
'http_proxy' => q[],

Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Web Development

Apache website uri access

Hi i would like to grant access specific to one uri and rest of them should be denied. as follows: http://websitename/example user should be able to access htttp://websitename/other user should be denied (1 Reply)
Discussion started by: raghur77
1 Replies

2. Web Development

Iplanet webserver retaining the URI query string data.

Current Situation: 1. Visit: 2. The URL is missing the trailing / after the “september” directory 3. The URL is redirected and rewritten to: , dropping the query string data. Note:... (0 Replies)
Discussion started by: raghur77
0 Replies

3. IP Networking

Connecting via proxy chain to Upstream proxy

I need to configure a proxy on my local machine to use an upstream proxy (installed on another machine). The upstream proxy requires Digest/NTLM authorization. I want the local proxy to deal with the upstream proxy's authorization details and provides authorization free access to users that connect... (0 Replies)
Discussion started by: Russel
0 Replies

4. Shell Programming and Scripting

In PHP replacing text between TAGS & URI information in Title Tag

Hi, what I am trying to do in PHP, is to replace the Title. I need some of the URL information inside aswell depending on the domain. The title is always different so I need to store it in a variable, put the url info like described below in front of it. Here is an example how it should... (0 Replies)
Discussion started by: lowmaster
0 Replies

5. Shell Programming and Scripting

Shell Uri Encoding

It really to make for Russian? from "тест" to "%D1%82%D0%B5%D1%81%D1%82" (1 Reply)
Discussion started by: Trump
1 Replies

6. IP Networking

Software/tool to route an IP packet to proxy server and capture the Proxy reply as an

Hi, I am involved in a project on Debian. One of my requirement is to route an IP packet in my application to a proxy server and receive the reply from the proxy server as an IP packet. My application handles data at the IP frame level. My application creates an IP packet(with all the necessary... (0 Replies)
Discussion started by: Rajesh_BK
0 Replies

7. UNIX for Dummies Questions & Answers

absolute value

is there any function in unix which will convert a integer to absolute value with a single decimal point. suppose x=15232 y=x/1024=14.875 i want y to be 14.8 Similarly if y=6.29452 it should come as 6.3 (3 Replies)
Discussion started by: dr46014
3 Replies

8. Debian

URI Devices issue

Hi gurus, I would like to migrate our windows print server to a debian linux but im newbie and i dont understand. when i try to add printer into Cups im going to localhost:631 and adding printers but i see this URI devices and i dont know how to deal with them? my test scenario is like this: A... (0 Replies)
Discussion started by: saveka
0 Replies
Login or Register to Ask a Question