hidekiwiki

   
にほんブログ村 IT技術ブログ Linuxへ
にほんブログ村

VMwareESXi上の仮想マシン(CentOS6)にVMwareToolsをインストール しようとしたところ下記内容のエラーがでて失敗した。


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?
The path "" is not valid.
Would you like to change it? [yes] ^CExecution aborted.

コンパイラ(GCC)が不足していたのかと思い、gccをインストールした後 「kernel header path」がないと怒られた。

kernel-develパッケージのバージョンが一致していないとエラーになる ケースがあるようでした。

yum install kernel-devel

下記コマンドでkernelのバージョンが揃っているかを確認。

rpm -qa | grep "kernel*"

トップ   編集 凍結解除 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2017-01-11 (水) 01:22:57