Perl Module : How to Install Perl Module on Windows

本文介绍了在Windows机器上安装Perl模块的三种常见方式:使用ppm实用工具、下载cpan zip文件并手动安装,以及如何在没有ppm的情况下通过命令行安装。详细步骤包括启动、运行cmd、输入ppm命令等。
The most simple task to make your tasks simpler is installing a perl module on your machine.
There are three common ways by which one can install a perl module on your machine. Lets see the installation on windows machine in this post.

There is a  ppm utility  provided with every active state perl installation, atleast I got it with perl Vesion 5.8.X All you have to do is follow the below steps

1) Click Start
2) Click Run
3) Type cmd and press enter
4) Type ppm and press enter
5) Once you get the ppm utility prompt like ppm> type install modulename
eg. install Net::SSH::Perl
The ppm utility will carry the installation of the perl module for you.

There is workaround for this if you don't have ppm utility or want to install the module manually. Download the zip file from cpan and unzip it with unzip utitliy. Go to the respective directory on command prompt and enter the following commands in sequence.

1) c:\>Net-SSH-Perl> perl Makefil.PL
2) c:\>Net-SSH-Perl> nmake
3) c:\>Net-SSH-Perl> nmake test
4) c:\>Net-SSH-Perl> nmake install

And the module will be installed for you.


Reference: http://startperl.blogspot.com/2007/11/perl-module-how-to-install-perl-module.html

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值