I have installed perl in windows 7 and configured the proxy (http & ftp) as at How do I install a module? Strawberry Perl issues by Axeman, replacing proxy with my lan proxy IP and port respectively. However, when I run cpanm App::cpanminus, it returns a message for proxy authentication which has faile. Its requesting for a username.
Asked
Active
Viewed 1,996 times
1
-
I think cpanm is App::cpanminus, you need to use cpan first. – squiguy Aug 24 '12 at 13:55
-
@squiguy I have used `cpan App::cpanminus` in cmd prompt – user1498499 Aug 24 '12 at 14:29
-
what username @Quentin , am new to perl – user1498499 Aug 24 '12 at 14:31
-
The username for your proxy server – Quentin Aug 24 '12 at 14:31
1 Answers
1
you need to set the http_proxy environment variable in the form:
http_proxy=http://user:password@host:port/
Otherwise just use the cpan
client.
Edit: 2012-08-29
If you do not have the proxy username and password, you are not getting out through that proxy regardless of the client software.

Len Jaffe
- 3,442
- 1
- 21
- 28
-
2On Windows, that command would be `set http_proxy=http://user:password@host:port/`. AFAIK you can't define Env vars inline with your command on Windows. – wes Aug 24 '12 at 22:57
-
the reason am stuck is that am in a lan with a proxy server which we dont have the usernm and psswrd for. Does it then mean that there is no way to get cpan working? – user1498499 Aug 25 '12 at 10:38
-
Did you try setting the proxy without username/password? Like `set http_proxy=http://host:port/` ? – wes Aug 25 '12 at 16:07
-
@wes just did that and run cpan App::cpanminus which again ask for proxy authentication requesting a username. I don't know the username nor password. – user1498499 Aug 29 '12 at 09:57
-
@user1498499 Sorry, I've never used cpanm with proxy so I'm out of suggestions. You can ask on #toolchain at irc.perl.org for some help. – wes Aug 29 '12 at 15:22