Installing vmware-tools on RedHat 5.4

January 6, 2010

Saya sudah beberapa kali menginstall vmware-tools diredhat, dan semuanya lancar – lancar saja. Sampai kali ini, ketika saya install redhat dimesin vm lain, saya menjumpai error pada saat menjalankan vmware-config-tools.pl.

Berikut adalah error yang muncul setelah saya menjalankan # vmware-config-tools.pl :

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

Setelah googling sekitar kurang lebih 1 jam, gotcha akhirnya nemu juga solusinya.

Solusinya simple, cukup tambahkan baris #define UTS_RELEASE "2.6.18-164.el5" yang terdapat dalam file /usr/src/kernels/2.6.18-164.el5-i686/include/linux/utsrelease.h kedalam file /usr/src/kernels/2.6.18-164.el5-i686/include/linux/version.h.

Caranya:

# cat /usr/src/kernels/2.6.18-164.el5-i686/include/linux/utsrelease.h >> /usr/src/kernels/2.6.18-164.el5-i686/include/linux/version.h

Setelah itu baru jalankan lagi vmware-config-tools.pl nya.

Thank you google, you save my day.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: