参考博文:https://blog.csdn.net/weixin_40192129/article/details/78610974

vmware tools需要perl环境的支持

安装perl支持

yum install perl* (yum安装perl相关支持)

yum install cpan (perl需要的程序库,需要cpan的支持,详细自行百度)

注:如果你对perl模块版本要求比较高,希望是新版的那么请按照一下安装:

yum install perl

yum install cpan

以后有什么需要直接用cpan编译安装。

下载perl并安装

下载源码包:

[root@akinlau /]#wget http://www.cpan.org/src/5.0/perl-5.16.1.tar.gz

解压源码包:

[root@akinlau /]# tar -zxvf perl-5.16.1.tar.gz

编译并安装,目录可以自定义

[root@akinlau /]# cd perl-5.16.1

[root@akinlau perl-5.16.1]# ./Configure -des -Dprefix=/usr/local/perl

[root@akinlau perl-5.16.1]# make

[root@akinlau perl-5.16.1]# make test

[root@akinlau perl-5.16.1]# make install

如果系统以前已安装了旧版本的perl的话,替换系统原有的版本。

[root@akinlau perl-5.16.1]# mv /usr/bin/perl /usr/bin/perl.bak

[root@akinlau perl-5.16.1]# ln -s /usr/local/perl/bin/perl /usr/bin/perl

再看看是不是最新的版本

[root@akinlau perl-5.16.1]# perl -v

This is perl 5, version 16, subversion 1 (v5.16.1) built for x86_64-linux

Copyright 1987-2012, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the

GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on

this system using “man perl” or “perldoc perl”. If you have access to the

Internet, point your browser at http://www.perl.org/, the Perl Home Page.

如果看到以上信息,就证明安装成功了

注意事项

一个干净的centos系统是没有相关支持的,以至于在操作过程中会出现各类异常,像是编译,像是wget command not found等,整个make的过程是时间非常长的,需要耐心等待。

问题1:wget不被识别

yum install wget

问题2:make命令不被识别

yum install gcc

reboot

再次make

perl -v

最新文章

  1. string常用函数
  2. cocoapods真机调试出现问题解决
  3. JDBC代码模板
  4. GitHub 上一份很受欢迎的前端代码优化指南
  5. fiddler抓取Android 真机app数据包
  6. 如何创建 CSS
  7. vim 空格 制表符
  8. 你真的会使用SQL Server的备份还原功能吗?之一:恢复模型
  9. 1025: [SCOI2009]游戏 - BZOJ
  10. Redis的安装(Centos)(转)
  11. git小技巧--提取/合并某分支的部分文件
  12. 《Oracle Applications DBA 基础》- 9 - Concurrent Processing[Z]
  13. socket小解
  14. ECMAScript迭代语句
  15. 【转】Android必备知识点- Android文件(File)操作
  16. 逐帧动画抖动、适配布局、SVG Sprites
  17. 传统asp.net小心 async/await坑
  18. 天坑之路:用js给选中文字添加样式
  19. POJ 3140 Contestants Division 【树形DP】
  20. java初始重点语法

热门文章

  1. Android学习之——优化篇(2)
  2. nvl()与regexp_replace()
  3. win7下搭建nginx+php的开发环境(转)
  4. angularJs 购物车模型
  5. 通过JMX获取weblogic的监控指标
  6. Java for LeetCode 092 Reverse Linked List II
  7. Win8+VS2012 配置OpenGL SuperBible5 环境
  8. Python —— 批量替换指定目录下的所有文件中指定字符串
  9. LightOJ - 1079 Just another Robbery —— 概率、背包
  10. 标准兼容HTML5输入框提示信息的插件iHolder_v0.1.06.21.2014_预览版