zoukankan      html  css  js  c++  java
  • 解决在ubuntu 12.10安装vmware-tools实现文件共享问题

    解决在ubuntu 12.10安装vmware-tools出现的“The path "" is not a valid path to linux-headers-3.5.0-17 ”或者“The path "" is not a valid path to linux-headers-3.5.0-17 -generic”问题:

    在使用终端安装vmware-tools时,不停地回车直到出现下面这几行字时就停止了。
     

    Before you can compile modules, you need tohave the following installed...
    make
    gcc
    kernel header of the running kernel

    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] no (我输入的no)

    Searching for a valid kernel header path
    The path " " is not a valid path to linux-headers-3.5.0-17. 

    Would you like to change it? [yes](我输入的yes)

    Enter the path to the kernel header files for the linux-headers-3.5.0-17? (我的ubuntu /usr/src/下有这个linux-headers-3.5.0-17,但是我输入这个路径也解决不了问题)

     

    后来多方查找发现是没有linux-headers-3.5.0-17 -generic包。参考网址:

    http://www.cnblogs.com/SelaSelah/archive/2013/02/17/2914412.html

    http://www.2cto.com/os/201308/236037.html

    在终端中分别输入执行以下指令,就可以安装linux-headers-3.5.0-17 -generic了。
    1 sudo apt-get update
    2 sudo apt-get install build-essential
    3 sudo apt-get install linux-headers-$(uname -r)
    更新完上面的内容后,我发现我的/usr/src/下有linux-headers-3.5.0-17 -generic包了,在root权限下输入

     sudo ./vmware-install.pl

    回车,这个我的文件可以从win7上共享到ubuntu上了。

  • 相关阅读:
    IDEA2019.1.2破解教程
    Java基础 -- 常见异常
    Java基础 -- Java基本类(部分)
    Java基础 -- IO流
    Java基础 -- Java方法
    Java数组
    IDEA首次配置问题
    Java开发环境搭建
    dos的几种打开方式和基本dos命令
    SpringBoot内外部配置文件加载和优先级
  • 原文地址:https://www.cnblogs.com/keanuyaoo/p/3402427.html
Copyright © 2011-2022 走看看