使用cpanm 安装perl模块

摘自:http://bubbyroom.com/tag/cpanm/

curl -LO http://bit.ly/cpanm
chmod +x cpanm
sudo cp cpanm /usr/local/bin

使用方式

常用的使用形式如下:

cpanm 模块名

参数可接模组名称、带版本号的 Tarball 名、Tarball 网址、或是 Tarball 在本机上的路径。可调整的选项有五个:

-v, –verbose : 输出完整的资讯
-f, –force : 强制安装。就算测试过程有错误也照样安装
-n, –notest : 不跑测试
-S, –sudo : 安装时以 sudo 指令时进行
–installdeps : 安装依存的模组

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-25
  • 2021-08-26
  • 2021-12-02
  • 2022-02-20
  • 2021-07-01
猜你喜欢
  • 2021-11-03
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案