Fedora15にVMWare Toolsをインストール

Fedora 15 i386 の話。


yum install kernel-devel でインストールされるバージョンと
Fedora15 のカーネルバージョンが違ったので苦労した。

$ uname -r
2.6.38.6-26.rc1.fc15.i686.PAE

でバージョンを確認。
必要なツール一式とカーネルのヘッダーファイルをインストール

$ sudo yum groupinstall "Development Tools"
$ sudo yum -y install kernel-PAE-devel-2.6.38.6-26.rc1.fc15

あとは、ヘッダーへのパスを聞かれるので、ヘッダーファイルのパスを入力。
/usr/src/kernels/2.6.38.6-26.rc1.fc15.i686.PAE/include/


これでいけると思ったら、コンパイルエラー。

  CC [M]  /tmp/vmware-root/modules/vmhgfs-only/super.o
/tmp/vmware-root/modules/vmhgfs-only/super.c:73:4: error: unknown field 窶歪lear_inode窶〓 specified in initializer
make[2]: *** [/tmp/vmware-root/modules/vmhgfs-only/super.o] Error 1
make[1]: *** [_module_/tmp/vmware-root/modules/vmhgfs-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.38.6-26.rc1.fc15.i686.PAE'
make: *** [vmhgfs.ko] Error 2
make: Leaving directory `/tmp/vmware-root/modules/vmhgfs-only'

The filesystem driver (vmhgfs module) is used only for the shared folder 
feature. The rest of the software provided by VMware Tools is designed to work 
independently of this feature.

If you wish to have the shared folders feature, you can install the driver by 
running vmware-config-tools.pl again after making sure that gcc, binutils, make
and the kernel sources for your running kernel are installed on your machine. 
These packages are available on your distribution's installation CD.

http://gordonazmo.wordpress.com/2011/02/09/fixing-vmware-tools-vmhgfs-on-newer-kernels-probably-anything-2-6-36/

ここの情報をもとに、ソースコードの一部をいじる。

やっぱりダメ、起動しない(´・ω・`)


64bit版で試してみる。
上と同じエラーが出たけど、起動した。
なんだったんだ。