zoukankan      html  css  js  c++  java
  • VMware Fusion8下CentOS7.1 安装vmtools报错kernel header path

    VMware Fusion8+CentOS7.1安装vmtools

                                        ---找不到gcc和kernel header path的解决办法



    环境:

    OSX 10.11.2

    VMware Fusion 8.0.2

    CentOS 7.1



    错误:

    1.gcc错误

    Searching for GCC...
    The path "" is not valid path to the gcc binary.

    2.内核头文件问题

    Searching for a valid kernel header path...
    The path "" is not a valid path to the 3.10.0-229.el7.x86_64 kernel headers.



    解决方法:

    1.安装依赖包

    安装vmtools前,配置好光盘源后安装gcc和kernel header相关包

    yum -y install gcc gcc-c++ kernel-headers kernel-devel

    2.重启CentOS

    3.再次安装vmtools

     


    上面的命令搞定后,再进行vmtools的安装。原本错误的地方变成了这样:

    Searching for GCC...
    Detected GCC binary at "/bin/gcc".
    The path "/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 at 
    "/lib/modules/3.10.0-229.4.2.el7.x86_64/build/include".
    The path "/lib/modules/3.10.0-229.4.2.el7.x86_64/build/include" appears to be a
    valid path to the 3.10.0-229.4.2.el7.x86_64 kernel headers.
    Would you like to change it? [no] 


    安装完成后可以看到提示:

    The configuration of VMware Tools 9.9.2 build-2496486 for Linux for this 
    running kernel completed successfully.

    Enjoy,

    --the VMware team


    然后设置虚拟机共享目录后即可在CentOS 7的/mnt/hgfs下看到共享目录




  • 相关阅读:
    HDU1542矩形面积并
    HDU5869树状数组+gcd预处理
    HDU5845 Best Division
    整体二分
    Lattice 的 Framebuffer IP核使用调试笔记之datasheet笔记
    DDR3详解(以Micron MT41J128M8 1Gb DDR3 SDRAM为例)
    ISD1700系列多段语音录放系列
    Lattice Diamond 学习之编译、检查和设置约束
    欧拉函数的几个性质及证明
    CF776B Sherlock and his girlfriend
  • 原文地址:https://www.cnblogs.com/lixuebin/p/10814277.html
Copyright © 2011-2022 走看看