Fedora – Missing “version.h” when installing fglrx

driversfedorafglrxgraphicshardware

I have downloaded the fglrx driver installer from the ATI drivers page.

when I start the installation, everything goes smoothly until I hit an error message, telling me to check /usr/share/ati/fglrx-install.log.

The contents of that file are as follows:

Check if system has the tools required
for installation. fglrx installation
requires that the system have kernel
headers.
/lib/modules/3.8.11-200.fc18.x86_64/build/include/linux/version.h cannot be found on this system. One or
more tools required for installation
cannot be found on the system. Install
the required tools before installing
the fglrx driver. Optionally, run the
installer with –force option to
install without the tools. Forcing
install will disable AMD hardware
acceleration and may make your system
unstable. Not recommended.

Now, after a bit of searching around, I found that the symbolic link called build in /lib/modules/3.8.11-200.fc18.x86_64 points to a nonexistent location.

I installed the kernel-devel package, and now it had pointed to an existing directory.

However, in the /lib/modules/3.8.11-200.fc18.x86_64/build/include/linux/ directory, that is populated with various header files – I cannot find the one I need – version.h.

How can I solve this problem? Should I install the driver in a different manner? Which other package can I install to get the version.h file?

I'm running a clean install (default) of Fedora 18, which I had updated today.

Best Answer

Install the kernel-headers package and try again. If it doesn't work, try

cp -v /usr/include/linux/version.h /lib/modules/$(uname -r)/build/include/linux

Related Question