Perl Windows CPANM proxy issue -


this question has answer here:

after solving few issues, i've succeeded cpan on work windows 7 machine dwimperl via perl -mcpan -e shell , o conf init /proxy/

ftp: http: http://192.168.1.1:8080 no: username: chris@work password: superdedupersecretpassword 

cpan works. i'm able install/build.

it seems no matter do, cpanm doesn't want past proxy:

c:\>cpanm www::mechanize ! finding www::mechanize on cpanmetadb failed. 501 protocol scheme 'wwwproxy.work.com' not supported c:\> cpan www::mechanize ... ... ... c:\programs\dwimperl\c\bin\dmake.exe install -- ok 

what's different between 2 , cause cpan succeed while cpanm fails 501?

10 minutes after posted this, had brief conversation coworker. mentioned environment variables. verified had indeed added windows environment variables previously. quick update them:

user variables chris: http_proxy:  http://192.168.1.1:8080 http_proxy_pass: superdedupersecretpassword http_proxy_user: chris@work 

i changed wwwproxy.work.org http://192.168.1.1:80 (cpan complained without http, think needed full url well).

and had typo in name :(

cpanm works now.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

node.js - How to abort query on demand using Neo4j drivers -