centos7 中安装perl的JSON模块

 

001、系统信息

(base) [root@pc1 RepeatModeler-2.0.2a]# cat /etc/redhat-release           ## 查看系统
CentOS Linux release 7.6.1810 (Core)                                      ## centos 7.6

 

002、问题 perl 配置时遇到如下提示: 

(base) [root@pc1 RepeatModeler-2.0.2a]# perl configure          ## perl 配置,提示缺失多种模块

 

003、解决方法,安装对应的模块

下载对应模块

a、

进入cpan官网:https://www.cpan.org/

 

b、

 

c、下载对应的模块

 

d、下载后解压、安装等

tar -xzvf JSON-4.10.tar.gz
cd JSON-4.10/
perl Makefile.PL
make
make install

 

e、检测安装的效果

(base) [root@pc1 RepeatModeler-2.0.2a]# perl configure     ## JSON模块的提示消失, 说明JSON模块安装成功

 

注:

01、同理, 其他缺失的perl模块可以通过以上方法安装。

 

参考:

01、https://www.jianshu.com/p/702d469894bd

 

posted @ 2023-11-07 23:09  小鲨鱼2018  阅读(246)  评论(0编辑  收藏  举报