setting CPAN for proxy


This is easily firewall/proxy issues. You need to set up http_proxy variable in cpan. Enter the cpan shell by typing cpan at the shell command prompt, and hitting enter. Once in the cpan shell, enter the following:
o conf http_proxy http://:/
cpan may then ask you for the username and password so that you can use the proxy for http traffic, at least.
It's possible that your ftp access is blocked by the firewall. cpan will work around this.
  • You can look to your browser if the proxy configuration is simple.
  • If it is more complex, you'll have to
    • paste the URL to the config script in the browser address
    • open that URL with an editor when the browser prompts you (or use an editor like jEdit that takes http URLs).
Once you parse the case for your location and CPAN, then you can take the server name returned, a the port if any, and either set the environment variable or cpan configuration with the value.

or

C:\ set http_proxy=http://:/C:\ set ftp_proxy=http://:/C:\ cpan 

Configure Proxy On Windows


With Windows 2000/XP

  • Right Click "My Computer", and click Properties
  • Choose the Advanced Tab and click the Environment Variables button at the bottom middle of the window
  • Click the "New" button in the Global Variables section
  • Set the Variable Name to http_proxy
  • Set the Variable Value to http://example.com: 8080
  • If a proxy login is required set the Variable Value tohttp://username:password@example.com: 8080
  • Click OK
  • Click OK

With Windows 95/98/ME


Command line

  • set HTTP_PROXY=http://:
top