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
版权声明:本文为博主原创文章,转载请附上博文链接!

安装vm tools时出现如下问题 The path "/usr/bin/gcc" is not valid path to the的更多相关文章

  1. 虚拟机——vmtools安装出现Detected GCC binary at usr.bin.gcc.

    在安装VMWare Tools遇到过这样一个问题 Searching for GCC... Detected GCC binary at "/usr/bin/gcc". The p ...

  2. vmware workstation12在安装VMware tools时出现问题:A previous installation of VMware Tools has been detected 解决

    win10安装的vmware workstation12在安装VMware tools时出现问题: root@lc:/root/vmware-tools-distrib# ./vmware-insta ...

  3. 笔记:安装VM Tools、vim编辑器、压缩包、Linux用户管理

    一.VM Tools安装 1.作用:方便我们在虚拟机和宿主机之间复制数据或移动文件等. 2.安装步骤: step1:在菜单栏找到虚拟机---->找到安装vm tools ,点击: step2:进 ...

  4. ubuntu 客户机安装VMware tools时出现编译错误,无法与主机共享文件(转)

    主机:win7旗舰版 vmware workstation 10.0.7 (其他10.x版本也有这个问题) 客户机:Ubuntu14.04.4-16.x 安装vmware tools时出现下列编译错误 ...

  5. 安装Debugging Tools时出现错误Setup could not find the file WinSDK_amd64的处理

    安装Debugging Tools时出现错误Setup could not find the file WinSDK_amd64的处理 1.软件来源:  微软官网下载SDK ISO安装包(含有debu ...

  6. kali安装vm tools正确操作

    参考博文:https://blog.csdn.net/qq_39536876/article/details/79501471 前言:每次在执行完 ./vmware-install.pl 重启后,总是 ...

  7. Windows server 2012安装VM tools异常解决办法

    在VMWare虚拟机上安装Windows Server 2012之 后安装VMWare Tools时报如下错误信息: 问题:缺少KB2919355补丁 (先安装KB2919442,在安装KB29193 ...

  8. 安装vmware-tools遇the path "" is not valid path to the gcc binary和the path "" is not a valid path to the 3.10.0-327.e17.x86_64 kernel headers问题解决

    #./vmware-install.pl踩点: 1.the path "" is not valid path to the gcc binary 2.the path " ...

  9. 安装vm tools(方便虚拟机复制粘贴切换)

    在VMware虚拟机中安装好了VMware Tools,才能实现主机与虚拟机之间的文件共享,同时可支持自由拖拽的功能,鼠标也可在虚拟机与主机之前自由移动(而不再用按ctrl+alT释放),而且还可以令 ...

随机推荐

  1. 编写第一个H5页面

    <!DOCTYPE html><html ><head> <meta charset="UTF-8"> <title>第 ...

  2. js阻止默认事件,如a标签跳转和事件冒泡

    禁止a标签点击跳转 <a href="http://baidu.com" onclick="return false">点我啊</a> ...

  3. python操作rabbitMQ小结

    1.安装rabbitMQ(与python无关) https://www.cnblogs.com/libra0920/p/7920698.html 2.python+rabbitMQ实现生产者和消费者模 ...

  4. DedeCMS后台500错误一种原因是不支持PHP5.3、5.4及以上版本

    我们在迁移网站的时候,可能会出现DedeCMS后台500错误,有可能是因为dedecms不支持PHP5.3.5.4及以上版本,这时我们要改动一些设置才能修复成功.跟着ytkah来修改配置文件吧.首先打 ...

  5. Redis入门到高可用(二)—— Redis启动及使用

    1. 三种启动方式 ♦️  最简启动 ./redis-server 使用Redis默认配置进行启动; ♦️  动态参数启动 * redis-server --port 6380  更改端口为6380并 ...

  6. testrem

    <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http ...

  7. Python中__repr__和__str__区别(转)

    class Test(object): def __init__(self, value='hello, world!'): self.data = value >>> t = Te ...

  8. 96A

    #include <iostream> #include <string> #include <cctype> using namespace std; int m ...

  9. Py中reshape中的-1表示什么【转载】

    转自:https://blog.csdn.net/weixin_39449570/article/details/78619196 1.新数组的shape属性应该要与原来数组的一致,即新数组元素数量与 ...

  10. [LeetCode] 209. Minimum Size Subarray Sum_Medium

    Given an array of n positive integers and a positive integer s, find the minimal length of a contigu ...