プロが教える店舗&オフィスのセキュリティ対策術

gccはインストールされています。

[root@localhost vmware-tools-distrib]# ./vmware-install.pl
A previous installation of VMware software has been detected.

The previous installation was made by the rpm installer (version 3).

Converting the rpm3 installer database format
to the tar3 installer database format.



Installing the content of the package.

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]

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

The path "/usr/src/linux/include" is not an existing directory.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]
これの繰り返しですすみません。
何が問題なのかわかるかたお教えください

補足ホストOSがvistaでゲストOSがcentosです。

A 回答 (5件)

>The directory of kernel headers (version 2.6.18-164.6.1.el5debug) does not


>match your running kernel (version 2.6.18-164.6.1.el5). Even if the module
>were to compile successfully, it would not load into the running kernel.

「アンタの指定したカーネルは"2.6.18-164.6.1.el5debug"だけど、今動いているーネルは"2.6.18-164.6.1.el5"で違うよ。コンパイルは成功したけど起動時に読み込まれないよ。」
と言ってます。(超意訳)

>[root@localhost ~]# uname -a
>Linux localhost.localdomain 2.6.18-164.6.1.el5 #1 SMP Tue Nov 3 16:18:27 EST 2009 i686 i686 i386 GNU/Linux

実行中のカーネルは"2.6.18-164.6.1.el5"ですよね?
なのに、
>kernel? [/usr/src/linux/include] /usr/src/kernels/2.6.18-164.6.1.el5-debug-i686/include
なぜ"2.6.18-164.6.1.el5-debug"を指定する必要があるんです?

>yum install kernel-develはうまくいきましたが、

rpm -qa | grep ^kernel
の結果はどうなりますか?

# なんでkernel-debugパッケージが入っているのか謎…。

この回答への補足

Detected X.org version 7.1.


Please choose one of the following display sizes (1 - 13):

[1] "640x480"
[2] "800x600"
[3] "1024x768"
[4] "1152x864"
[5] "1280x800"
[6] "1152x900"
[7] "1280x1024"
[8] "1376x1032"
[9] "1400x1050"
[10] "1680x1050"
[11] "1600x1200"
[12] "1920x1200"
[13] "2364x1773"
Please enter a number between 1 and 13:

[3]

Starting VMware Tools services in the virtual machine:
Switching to guest configuration: done
Guest filesystem driver: done
DMA setup: done
Guest operating system daemon: done

The configuration of VMware Tools 1.0.6 build-91891 for Linux for this running
kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

You can now run VMware Tools by invoking the following command:
"/usr/bin/vmwaretools/vmware-toolbox" during an X session.

Enjoy,

--the VMware team
ここまでいきました。ありがとうございます。うまくいっているのでしょうか?

補足日時:2009/12/10 13:49
    • good
    • 0
この回答へのお礼

2.6.18-164.6.1.el5をしていします。

お礼日時:2009/12/07 19:58

>[root@localhost ~]# ls /usr/src/kernels


>2.6.18-164.6.1.el5-debug-i686 2.6.18-164.6.1.el5debug-i686
>となりました。

カーネル(モジュール含む)の開発用パッケージ(kernel-devel)が入っていません。
2.6.18-164.6.1.el5-debug-i686の下にincludeというディレクトリがあるかどうか……。
# というか、なんのパッケージに含まれるモノなんだろうか?

>kernel-develとはなんでしょうか?また入れかたをおしえてください。

多少は自力で調べましょう。
http://www.google.co.jp/search?hl=ja&source=hp&q …
yum info kernel-devel
でパッケージの説明が表示されるでしょう。
# バージョン違いがある場合はすべてのバージョンが。
yum install kernel-devel
で、現在稼働中のカーネルバージョンの開発パッケージがインストールされるでしょう。
    • good
    • 0
この回答へのお礼

yum install kernel-develはうまくいきましたが、
その後が

やっぱりうまくいきません。
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-164.6.1.el5 #1 SMP Tue Nov 3 16:18:27 EST 2009 i686 i686 i386 GNU/Linux


What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] /usr/src/kernels/2.6.18-164.6.1.el5-debug-i686/include

The directory of kernel headers (version 2.6.18-164.6.1.el5debug) does not
match your running kernel (version 2.6.18-164.6.1.el5). Even if the module
were to compile successfully, it would not load into the running kernel.

お礼日時:2009/12/06 16:43

動作中のカーネルのバージョンが"2.6.18-164.6.1.el5"なら、


/usr/src/kernels/2.6.18-164.6.1.el5.centos.plus-i686/include
にはありませんよ。

まずは、
ls /usr/src/kernels
で何があるか確認されては?
# kernel-devel入れていないに1票。
    • good
    • 0
この回答へのお礼

[root@localhost ~]# ls /usr/src/kernels
2.6.18-164.6.1.el5-debug-i686 2.6.18-164.6.1.el5debug-i686
となりました。

kernel-develとはなんでしょうか?また入れかたをおしえてください。

お礼日時:2009/12/06 12:47

失礼かも知れませんが、


>What is the location of the directory of C header files that match your running
>kernel? [/usr/src/linux/include]
「動作している kernel に 合った C header ファイルのディレクトリの
場所 は何処ですか」
の何処が解らないのでしょうか。
あれこれ言うのではなく、事実として知りたいだけです。

英語はだいたい解るが意味が解らない。kernel も解らない。
kernel は、解るが C header が解らない。
C headerは解るが C header の 場所の探し方が解らない。
C header の場所は解ったが、その後どう処理して良いか解らない。
など。
    • good
    • 0
この回答へのお礼

kernel以外はわかりません。
よろしければ教えてください。

お礼日時:2009/12/06 12:44

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


>kernel? [/usr/src/linux/include]
>これの繰り返しですすみません。

「これ」というのは上の2行ですか?

CentOS5.4とVMWare上のCentOS5.3を確認しましたが、
カーネルソース(というかヘッダファイル)は「/usr/src/linux/include」にはありませんでした。
# 自分でシンボリックリンク作れば別ですが。

kernel-devel-2.6~というパッケージをインストールすると、
/usr/src/kernels/の下に諸々インストールされます。
実行中のカーネルが2.6.18-164.6.1.el5.centos.plusでi686の場合は…
kernel? [/usr/src/linux/include]の後で
/usr/src/kernels/2.6.18-164.6.1.el5.centos.plus-i686/include
と入力すればよいかと。
あるいは…
ln -s /usr/src/kernels/2.6.18-164.6.1.el5.centos.plus-i686 /usr/src/linux
としてシンボリックリンクを作成する…でしょうか。
# カーネルのアップデートのたびに ./vmware-install.pl の実行が必要かも知れません。

この回答への補足

やはりうまくいきません。2.6.18-164.6.1.el5はuname ーrで調べたところあっています。しかし、かきのようになります。
The path "/usr/src/kernels/2.6.18-164.6.1.el5.centos.plus-i686/include" is not
an existing directory.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]
どうしてなのでしょうか?

補足日時:2009/12/05 21:50
    • good
    • 0
この回答へのお礼

おへんじありがとうございます。カーネルはどこにあるのですか?ときかれているので/usr/src/kernels/2.6.18-164.6.1.el5.centos.plus-i686/includeにあると伝えれば良いと言う事でしょうか。
ありがとうございます。早速やってみます。

お礼日時:2009/12/04 13:56

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!