[root@localhost VBOXADDITIONS_4.0.4_70112]# cat /var/log/vboxadd-install.log
/usr/share/VBoxGuestAdditions/test/build_in_tmp: line 55: make: command not found
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
the problem is when I was trying to install guest additions, it turned out it failed to compiled the dkms kernel, i did the install of kernel-devel (which is the source code of the kernel) and gcc, the same failure was seen… so I went to see the log and it did not have make!
[root@localhost VBOXADDITIONS_4.0.4_70112]# yum install make
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: ftp.swin.edu.au
* extras: ftp.swin.edu.au
* updates: mirror.issp.co.th
Setting up Install Process
–> Running transaction check
—> Package make.i686 1:3.81-19.el6 set to be updated
–> Finished Dependency Resolution
Seriously….This is the first time I used a Linux that has no make installed…WTF.
Making symbolic link
[root@localhost kernels]# ln -s /usr/src/kernels/2.6.32-220.4.1.el6.i686/ /usr/src/linux
To install guest addition in CentOS this is necessary, because the source code of guest additional seemed to have pointed /usr/src/linux, CentOS stores its kernel source in /usr/src/kernels
To remove the sym link remove it using rm linux without the slash. The slash at the end is a directory, sym link is just a file pointing to the destination, deleting the sym link as directory also deletes everything in the destination directory!