The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Software/tool to route an IP packet to proxy server and capture the Proxy reply as an Rajesh_BK IP Networking 0 02-19-2009 02:32 AM
absolute value dr46014 UNIX for Dummies Questions & Answers 3 08-26-2008 07:48 AM
Absolute value placroix1 Shell Programming and Scripting 5 12-04-2007 07:26 AM
absolute path filedeliver High Level Programming 4 06-05-2007 05:18 PM
Getting absolute value ksh icyhot UNIX for Dummies Questions & Answers 3 03-30-2006 06:05 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-27-2009
figaro figaro is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 267
Proxy must be specified as absolute URI

I encounter frequently a problem when installing Perl modules as follows:
Code:
perl -MCPAN -e 'install Family::Module'
The error message is:
Code:
Proxy must be specified as absolute URI; ' ' is not at /usr/local/lib/perl5/5.8.8/CPAN.pm line 2357
even though I am not behind a proxy. Forcing to install the module as such:
Code:
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 (permalink)  
Old 09-27-2009
pludi's Avatar
pludi pludi is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2008
Location: .at
Posts: 1,839
You've got either the ftp_proxy or http_proxy setting for CPAN set to a single blank. Start the CPAN shell with
Code:
perl -MCPAN -eshell
and enter this
Code:
o conf ftp_proxy ''
o conf http_proxy ''
(That's two single quotes with nothing between them)
  #3 (permalink)  
Old 09-27-2009
figaro figaro is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 267
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:
Code:
# 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/CPAN.pm line 2357
  #4 (permalink)  
Old 09-27-2009
pludi's Avatar
pludi pludi is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2008
Location: .at
Posts: 1,839
If you've verified that the settings work, you can save it by entering
Code:
o conf commit
in the CPAN shell.

CPAN settings are kept in /usr/local/lib/perl5/5.8.8/CPAN/Config.pm (global) or ~/.cpan/CPAN/MyConfig.pm (user-specific)
  #5 (permalink)  
Old 09-27-2009
figaro figaro is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 267
Thank you for your response. So the following from the Config.pm file is correct and is equivalent to your entries that one can do within CPAN?
Code:
'ftp_proxy' => q[ ],
'http_proxy' => q[],
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:46 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0