- perl -MCPAN -e shell
- install 模块名(如:Image::Size)
- q(退出CPAN)
OK! 如果通过代理上网请设置http_proxy环境变量,可以设置临时环境变量,如: set http_proxy=http://xxx.xxx.xxx:8080 SET HTTP_proxy_user=<用户名> (如果该服务器需要用户名 密码) SET HTTP_proxy_pass=<密码> (如果该服务器需要用户名密码) 如果在第二步出现类似下面的错误: dmake.EXE: Error executing 'C:\PROGRA~1\RATIONAL\RATION~1\NUTCROOT\mksnt\sh.exe -c C:\strawberry\perl\bin\perl.exe "-Iinc" -MExtUtils::Command -e "mkpath" -- b lib\lib\Image': No such file or directory dmake.EXE: Error code -1, while making 'blib\lib\Image\.exists'
应该是设置了环境变量SHELL,可以暂时先取消该环境变量,即“set shell=”
下载安装包安装
- 解压
- perl Makefile.PL
- dmake
- dmake install
|
请发表评论