安装VirtualBox-guest-additions时出现错误吗?

Windows 7作为主机,Ubuntu 12.04服务器作为客户机(Virtual Box)。 在安装VirtualBox-guest-additions时遇到了这个错误。
The gcc utility was not found.If the following module compilation fails then this could
be the reason & you should try installing it. Building the main guest additions module..fail !!
(Look at /var/log/vboxadd-install.log to find what went wrong)
could not find the X.org or XFree86 Window System, skipping !!
我读了/var/log/vboxadd-install.log文件,发现了这个,但是我还是不明白。
/opt/VBoxGuestAdditions-4.3.20/src/vboxguest-4.3.20/build_in_tmp: 62: /opt/VBox$t/VBox
GuestAdditions-4.3.20/src/vboxguest-4.3.20/build_in_tmp: make: not found

Creating user for the guest additions.`Creating udev rule for the guest additions kernel module.`
这是什么意思?请大家帮帮我。谢谢!

@RPi_Awesomeness 感谢你的编辑,但似乎那不是代码!!算了吧,请现在帮帮我。 - gurupal singh
1为了能够编译和安装虚拟机增强功能,您需要安装适当的编译器(gcc)和 make 工具(sudo apt-get install gcc make)。请参考 https://askubuntu.com/questions/22743/how-do-i-install-guest-additions-in-a-virtualbox-vm - Takkat
2个回答

除非您确实需要仅在4.3.20中可用的功能,否则我建议使用来自Ubuntu存储库的客户附加组件:
sudo apt-get install virtualbox-guest-dkms virtualbox-guest-utils
重新启动您的虚拟机以应用更改。

只有当GA版本与主机中安装的VBox版本匹配时才适用,但这在Windows主机上是非常不可能的情况。 - guntbert

你需要安装gcc。
 sudo apt-get install gcc
会让你开始。