zoukankan      html  css  js  c++  java
  • 安装vm tools时出现如下问题 The path "/usr/bin/gcc" is not valid path to the

    sudo su
    apt-get update
    apt-get dist-upgrade
    apt-get install open-vm-tools-desktop fuse
    reboot

    https://blog.csdn.net/fly66611/article/details/77994339
    ================================

    安装vm tools时出现如下问题
    The path "/usr/bin/gcc" is not valid path to the gcc binary
     
    解决方案:
    #cat /proc/version
     
    Linux version 3.2.0-29-generic (buildd@allspice) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012
     
    可以看出12.04对应的是gcc 4.6.3
     
    当前使用的gcc版本与系统不匹配
    #gcc --version
    gcc version 4.7.3
     
     
    sudo apt-get install gcc-4.6
    出现如下错误(我的当前机器安装了gcc-4.7):
    The following packages have unmet dependencies:
    gcc-4.6 : Depends: gcc-4.6-base (= 4.6.3-1ubuntu5) but 4.6.3-10ubuntu1 is to be installed
               Depends: cpp-4.6 (= 4.6.3-1ubuntu5) but 4.6.3-10ubuntu1 is to be installed
    直接sudo apt-get remove gcc gcc-4.6-base  cpp-4.6可能网上有更好的方法
    再重新sudo apt-get install gcc
    ps:只要源的版本配置对了(12.04对应源precise),自动会安装对应的版本,12.04 <-对应-> gcc-4.6
     
    gcc安装完成后,再重新安装vm tools,可以按原来的方法重新安装一遍,
    亦可以运行
    #sudo /usr/bin/vmware-config-tools.pl

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

    这个问题的解决方法是安装Kernel headers,然后再重新装一遍vmware-tools。
    在终端中分别输入执行以下指令,就可以安装Kernel headers了。
    1 sudo apt-get update
    2 sudo apt-get install build-essential
    3 sudo apt-get install linux-headers-$(uname -r)
    ---------------------
    作者:abcd51685168
    来源:CSDN
    原文:https://blog.csdn.net/abcd51685168/article/details/42032887
    版权声明:本文为博主原创文章,转载请附上博文链接!

  • 相关阅读:
    生信入门-爱课程上的华中农业大学
    PAT 1115 Counting Nodes in a BST[构建BST]
    PAT 1133 Splitting A Linked List[链表][简单]
    PAT 1037 Magic Coupon[dp]
    PAT 1033 To Fill or Not to Fill[dp]
    畅通工程续 HDU1874
    Free DIY Tour HDU1224
    六度分离 HDU1869
    Arbitrage HDU1217
    floyed算法
  • 原文地址:https://www.cnblogs.com/chenxi188/p/10725973.html
Copyright © 2011-2022 走看看