Perl-Install DateTime Module Package

CPAN (Comprehensive  Perl  Archive  Network) is  the largest distribution center for the Perl module on the internet, it contails almost all of the perl modules, you can browse website from here :http://www.cpan.org/.
 Today, I want to install one module on Linux machine, so that I will list a series  of installing Steps:
 
 Step 01:Download the installed package , you can search it and input package name  in this page : http://search.cpan.org/.For example,  I will search the DateTime module pakage,  I just write "DateTime" and Enter.
                 

                 

Step 02: You just click the "DateTime" and you will view following page:
                 

Step 03: Download this module package and save it on local server.

Step 04: Upload the package to Linux machine. E.g Ubuntu platform.
                
Step 05: We need to unconpress this module package by run following command on Linux.  

    tar xvzf  DateTime-1.43.tar.gz

Step 06: Switch to DateTime module directory.

   cd DateTime-1.43/

Step 07: Generate makefile

   perl Makefile.PL 

Step 08: Generate block and test it, you also do not test it, it does matter.

   make

   make test ( do or not)
   make install 

Step 09: Install DateTime Module package, you'd better to read README or INSTALL under the directory.

   cat   README

               or 


                cat  INSTALL   Note:  I just like to read it.

                
Step 10: Now, you just run command: cpan DateTime  and wait for a moment, it will be installed successfully.

                       

Step 11: That's all.

转载于:https://my.oschina.net/u/2447575/blog/1237823

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值