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. Java+Selenium如何解决空指针

    1.问题描述:浏览器获取当期窗口值获取为空.

  2. MongoDB update修改器: 针对Arrays的$修改器 $push $pull $pop

    针对Arrays的$修改器 $push : { $push: { key: value } } 它是用来对Array (list)数据类型进行 增加 新元素的,相当于我们Python中 list.ap ...

  3. mysql sysbench基准测试

    git项目地址: https://github.com/akopytov/sysbench 利用sysbench很容易对mysql做性能基准测试(当然这个工具很强大,除了测试主流数据库性能,还能测试其 ...

  4. HTTP response 添加body

    在拦截器中进行拦截操作时,想要给response添加body,如何操作? /** * 返回JSON数据 * @param response * @param obj * @throws Excepti ...

  5. vue-element分页

    <template> <card-layout :title="L('Users')" :actions="actions" @click=& ...

  6. vue【指令】

    <div class="m-conbox"> <div v-text="html"></div> <div>{{ ...

  7. 微信公众号支付开发当前URL未注册解决办法

    微信公众号支付,则需要现在微信支付商户后台,预先添加支付网址才可以.否则会出现“当前URL未注册”字样的报错. 方法/步骤 1. 报错实例如下,手机端微信调起微信支付框时弹出 2. 首先需要登录微信支 ...

  8. MySQL大表优化方案 Mysql的row_format(fixed与dynamic)

    转自:https://mp.weixin.qq.com/s/VY69wWlrVLjRtKU7ULrYGw 当MySQL单表记录数过大时,增删改查性能都会急剧下降,可以参考以下步骤来优化: 单表优化 除 ...

  9. 发现Boost官方文档的一处错误(numpy的ndarray)

    文档位置:https://www.boost.org/doc/libs/1_65_1/libs/python/doc/html/numpy/tutorial/ndarray.html shape在这里 ...

  10. 1A

    #include <iostream> using namespace std; int main() { long long n, m, a, r, c; cin>>n> ...