I came across an issue while installing ATI Radeon Catalyst drivers on my new Fedora 18 installation. It kept failing by saying one of the required tool is missing to proceed further with installation. By looking into log file, I found that it try to access one of my install kernel 3.7.2-201 header file named version.h in /lib/modules/3.7.2-201.fc18.x86_64/build/include/linux/. Its a bug and kernel 3.7.2-201 devel rpm i.e kernel-devel-3.7.2-201.fc18.x86_64 miss installing version.h in /lib/modules/3.7.2-201.fc18.x86_64/build/include/linux/ location.
1) Fix
Additionally kernel-header of same install kernel rpm provides this file in /usr/include/linux directory. To fix the issue you need to copy the same required version.h file to /lib/modules/3.7.2-201.fc18.x86_64/build/include/linux location.
First check the file is of the same kernel version.
1 2 3 4 5 6 7 8 9 10 |
uname -r 3.7.2-201.fc18.x86_64 rpm -qa | grep `uname -r` kernel-3.7.2-201.fc18.x86_64 kernel-devel-3.7.2-201.fc18.x86_64 kernel-headers-3.7.2-201.fc18.x86_64 rpm -qf /usr/include/linux/version.h kernel-headers-3.7.2-201.fc18.x86_64 |
After confirmation, copy the version.h to /lib/modules/3.7.2-201.fc18.x86_64/build/include/linux location.
1 |
cp -v /usr/include/linux/version.h /lib/modules/3.7.2-201.fc18.x86_64/build/include/linux |
After fixing my ATI Radeon driver installer starts working without failing for any dependencies. For a note Fedora 18 still dont have official ATI drivers and I end up installing akmod-catalyst driver available in rpmfusion repository.