安裝VMwareTools時出錯:What is the location of the directory of C header files that match your running ker

來源:互聯網
上載者:User

 

Fedora13安裝VMwareTools 出現 :

 

 

What is the location of the directory of C header files that match your running
kernel?

The path "" is not valid.
Would you like to change it? [yes]



解決辦法:
1.將VMwareTools- 8.1.4-227600.tar.gz檔案複製到`/software/檔案夾下面
2.安裝VMwareTools:

[root@localhost tian]#cd software
[root@localhost tian]#tar xzxf VMwareTools-8.1.4-227600.tar.gz
[root@localhost tian]# cd vmware-tools-distrib/
[root@localhost tian]#./vmware-install.pl
Creating a new VMware Tools installer database using the tar4 format.

Installing VMware Tools.

In which directory do you want to install the binary files?
[/usr/bin]

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d]

What is the directory that contains the init scripts?
[/etc/rc.d/init.d]

In which directory do you want to install the daemon files?
[/usr/sbin]

In which directory do you want to install the library files?
[/usr/lib/vmware-tools]

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]

The path "/usr/share/doc/vmware-tools" does not exist currently. This program
is going to create it, including needed parent directories. Is this what you
want? [yes]

The installation of VMware Tools 8.1.4 build-227600 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".

Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes]

Initializing...

Stopping VMware Tools services in the virtual machine:
Guest operating system daemon:                [確定]
Virtual Printing daemon:                      [確定]
Unmounting HGFS shares:                       [確定]
Guest filesystem driver:                      [確定]

Before you can compile modules, you need to have the following installed...

make
gcc
kernel headers 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]

Searching for a valid kernel header path...
The path "" is not valid.
Would you like to change it? [yes]

What is the location of the directory of C header files that match your running
kernel?

3.下載相應的kernel-devel.rpm包進行安裝

Fedora13 Alpha版本核心版本為:
2.6.33-0.52.rc8.git6.fc13.i686.PAE
其為:
ftp://rpmfind.net/linux/fedora/releases/test/13-Alpha/Fedora/i386/os/Packages/kernel-devel-2.6.33-0.52.rc8.git6.fc13.i686.rpm
註:不同的版本可在此網站找到相應的檔案。

----- 如果網路暢通,可以 運行 [ yum -y install kernel-devel ],進行安裝就6M,很快

 

[root@localhost tian]#rpm -q kernel-devel
 package kernel-devel is not installed
[root@localhost tian]#rpm -ivh ftp://rpmfind.net/linux/fedora/releases/test/13-Alpha/Fedora/i386/os/Packages/kernel-devel-2.6.33-0.52.rc8.git6.fc13.i686.rpm

[root@localhost tian]#rpm -q kernel-devel
[root@localhost tian]#kernel-devel-2.6.33-0.52

提示:安裝完kernel-devel後重啟一下電腦,因為此時的系統檢測的核心仍為啟動時的核心版本。

4.重新運行VMware的設定檔

[root@localhost bin]# /usr/bin/vmware-config-tools.pl

 

 

說明:

      在VMware上安裝CentOS也遇到這個問題“What is the location of the directory of C header files that match your running kernel?

       按照上述方案,只需運行命令“yum -y install kernel-devel” ,安裝 “kernel-devel ” 即可。。。

 

       另外,CentOS案頭型安裝預設情況下是沒有安裝編譯器gcc,同理,我們可以用運行命令“yum -y install gcc” 線上安裝即可。

 

 

 

 

 

 

 

 

 

 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.