VirtualBox

Ticket #6263 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

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

Reported by: ToddAndMargo Owned by:
Priority: major 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

comment:1 Changed 4 years ago by ToddAndMargo

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

workaround modified:

yum install gcc yum install kernel-devel

Many thanks, -T

comment:2 Changed 4 years ago by ToddAndMargo

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 follow-up: ↓ 4 Changed 4 years ago by 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

comment:4 in reply to: ↑ 3 Changed 4 years ago by ToddAndMargo

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 Changed 4 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

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.

www.oracle.com
ContactPrivacy policyTerms of Use