VirtualBox

Opened 14 years ago

Closed 14 years ago

#6263 closed defect (fixed)

gcc not installed by default in Fedora Core 12 Guest Additions Fail

Reported by: ToddAndMargo Owned by:
Component: guest additions Version: VirtualBox 3.1.4
Keywords: gcc Cc:
Guest type: Linux Host type: Linux

Description

Hi All,

"gcc" in not installed by default in Fedora Core 12. Therefore installing the guest additions fails:

# ./VBoxLinuxAdditions-x86.run ... Building the VirtualBox Guest Additions kernel modules [FAILED] (Your system does not seem to be set up to build kernel modules. Look at /var/log/vboxadd-install.log to find out what went wrong)

In VBoxLinuxAdditions, would you please check for "gcc" and alert the user if it is missing?

Workaround: #yum install gcc

Many thanks, -T

Change History (5)

comment:1 by ToddAndMargo, 14 years ago

And neither is kernel-devel. Please check for that too.

workaround modified:

yum install gcc yum install kernel-devel

Many thanks, -T

comment:2 by ToddAndMargo, 14 years ago

That does not entirely fix it either. The error log now shows:

Makefile:23: * Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.. Stop.

I have tried: # KERN_DIR=/usr/src/kernels # KERN_DIR=/usr/src/kernels/2.6.31.12-174.2.22.fc12.i686 # KERN_DIR=/usr/src/kernels/2.6.31.12-174.2.22.fc12.i686/kernel

No Joy. Even after install kernel headers and gcc, the guest additions still can not find the kernel source (and it is there).

Shall I report this error on another report?

on the workaround, add: yum install kernel-headers

comment:3 by Technologov, 14 years ago

Package names and package managers are different for every distro.

The VirtualBox Guest Additions installer uses distro neutral code.

Unless distro neutral way is found, it is unlikely this bug can be fixed.

-Technologov

in reply to:  3 comment:4 by ToddAndMargo, 14 years ago

Replying to Technologov:

Package names and package managers are different for every distro. The VirtualBox Guest Additions installer uses distro neutral code. Unless distro neutral way is found, it is unlikely this bug can be fixed. -Technologov

Actually, I was not asking that you fix a missing "gcc" or "kernel-headers". I was asking that you check for them and "warn" (inform) the user. Some thing to the effect of:

Gcc="which gcc" if [ -z "$Gcc" ]; then

echo "Please install the gcc compiler. Then, try again. Exiting. Bummer" exit 2

fi

-T

comment:5 by Frank Mehnert, 14 years ago

Resolution: fixed
Status: newclosed

This information was added to the documentation and the vboxadd-install.log file already contains the information that gcc is missing. Closing.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use