zoukankan      html  css  js  c++  java
  • 解决CentOS系统mini安装后的虚拟机工具(VMware Tools)安装问题

    准备工作,先安装必要的组件。

    yum -y groupinstall "Perl Support"

    yum -y install gcc gcc-c++ automake make kernel-devel

    然后在vCenter里找到这台服务器,并挂接VMWARE的升级工具(图形操作的略掉)。

    mkdir /mnt/cdrom
    mount -o loop /dev/cdrom /mnt/cdrom
    cd /mnt/cdrom

    cp VMwareTools*.* /home

    ---------------------复制完成以后,就可以断了挂载
    umount /mnt/cdrom
    rm /mnt/cdrom -rf

    cd /home

    tar zxvf VMwareTools........tgz

    cd vm....../

    然后安装即可:

    ./vmware_install.pl

    如果一些正常,一路回车就可以了。

    ==================================================

    Searching for GCC...

    The path "" is not valid path to the gcc binary.
    Would you like to change it? [yes]
    如果出现这个就表明gcc没有安装
    # yum install gcc gcc-c++ automake make
    将编译环境一次装好


    Searching for a valid kernel header path...
    The path "" is not valid.
    Would you like to change it? [yes]
    如果出现这个就表示kernel-devel包没有安装
    # yum install


    成功安装VMware tools时的提示如下,一路回车:
    Searching for GCC...
    Detected GCC binary at "/usr/bin/gcc".
    The path "/usr/bin/gcc" appears to be a valid path to the gcc binary.
    Would you like to change it? [no]

    Searching for a valid kernel header path...
    Detected the kernel headers of the running kernel at
    "/lib/modules/2.6.32-71.el6.i686/build/include".
    The path "/lib/modules/2.6.32-71.el6.i686/build/include" appears to be a valid
    path to the kernel headers of the running kernel.


    Would you like to change it? [no]

    更多CentOS相关信息见CentOS 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=14

  • 相关阅读:
    C 找到该列最大的前两个数字
    C 寻找和最大的子序列
    C 找出最长的回文子串(不区分大小写)
    C 字符串数组
    C 寻找重复字符并输出他们的位置
    C 寻找0~100的守形数
    C 在外部函数中修改指针变量
    C int转为二进制 再进行与操作
    C 计算阶乘之和
    C 奇偶校验
  • 原文地址:https://www.cnblogs.com/dashafa/p/4011184.html
Copyright © 2011-2022 走看看