LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 10-05-2009, 04:20 PM   #1
dflo404
Member
 
Registered: Jul 2009
Posts: 61

Rep: Reputation: 15
Kernel module build environment not found (trying to install ATI drivers)


I'm following this tutorial in an attempt to install the drivers for my ATI Mobility Radeon HD 3400 on Fedora 11.

I am using the 2.6.29.4 kernal, and so I skipped step 1. I installed this driver from AMD's site: http://support.amd.com/us/gpudownloa...5&lang=English

Then I check the /usr/share/ati/fglrx-install.log file like the tutorial said, and found that there were a few errors. Here is the exact contents of the file, from beginning to end:

Unloading radeon module...
Unloading drm module...
[Message] Kernel Module : Trying to install a precompiled kernel module.
[Message] Kernel Module : Precompiled kernel module version mismatched.
[Error] Kernel Module : Kernel module build environment not found - please consult readme.

Does anyone know what to do from here?

P.S. I tried this before and continued on, ignoring the error, which resulted in Fedora not even being able to start up (in other words, I didn't even see the blue bars go across the bottom of the screen, it was just black).
 
Old 10-05-2009, 06:21 PM   #2
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mandriva, CentOS, Ubuntu
Posts: 456

Rep: Reputation: 69
You need the C compiler and kernel source headers to build the module. You can install this through yum, I believe its the kernel-devel package.
 
Old 10-05-2009, 06:26 PM   #3
dflo404
Member
 
Registered: Jul 2009
Posts: 61

Original Poster
Rep: Reputation: 15
Is that what the second half of the first part is? ([root@fedora ~]$ yum install kernel-devel)

I tried that the first time I did this, and got the same error.
 
Old 10-05-2009, 08:43 PM   #4
dflo404
Member
 
Registered: Jul 2009
Posts: 61

Original Poster
Rep: Reputation: 15
And I just tried it again, and I reinstalled the drivers, but the log file still contains the same error.
 
Old 10-06-2009, 11:06 AM   #5
angelambayley
LQ Newbie
 
Registered: Oct 2009
Posts: 6

Rep: Reputation: 0
Don't know about the tutorial, but FWIW the benefit of my experience...

The best way to install a driver module is to build it from source first. Otherwise you will probably get 'kernel mismatch'. You need to install the kernel source (or at least the kernel headers). Then download the driver source code including the makefile. See http://lwn.net/Kernel/LDD3/ for instructions on the new kernel build system for 2.6.
 
Old 08-27-2010, 02:27 AM   #6
galaxy_fish
LQ Newbie
 
Registered: Aug 2010
Posts: 1

Rep: Reputation: 0
Re

I met with the same problem, the ati driver file I use is ati-driver-installer-10-7-x86.x86_64.run, OS is CentOS 5.5, the problem solved finally:
1.you must ensure the following things are installed:
gcc
2.run "uname -r" to get the accurate version of the kernel, like the OS of mine, the result is "2.6.18-194.el5"
3.install the accurate version of the kernel header files, which commonly be included in "kernel-devel" package, like OS of mine,it would be "kernel-header-2.6.18-194.el5.i686.rpm", the slightly newer or older versions cannot be done!(like mine, the package installed by yum online is newer -"kernel-header-2.6.18-194.11.1.el5.i686.rpm", which I replaced finally with the older one on my system installation DVD)
4.you must ensure that the directory "/lib/modules/`uname -r`/build" directs to the directory that contains the kernel header files, like mine, it's "/usr/src/kernels/2.6.18-194.el5-i686", if not, you should make a link to it. After that, it should be done. Good luck.
 
Old 11-22-2010, 12:59 PM   #7
wwk
LQ Newbie
 
Registered: Nov 2010
Location: Russia
Posts: 2

Rep: Reputation: 0
I get the same problem on my Debian Lenny with Radeon HD 4570 M and finally solved it thanks to galaxy_fish. When I tried to compile kernel module it complained about not having kernel sources despite that they have been installed. I looked in the directory /lib/modules/2.6.26-2-amd64 and found out that I had there link to /usr/src/linux-headers-2.6.26-2-amd64 named "build.save" instead of "build". So I renamed it. After that module was compiled successfully.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Build WARNING: No module cciss found for kernel TonyC Linux - Kernel 2 10-17-2008 09:01 AM
no kernel module build environment" Error message during RPM install gotmonkey Linux - Hardware 7 12-07-2007 02:08 AM
[Error] Kernel Module : No kernel module build environment saman007uk Debian 7 09-09-2006 06:34 PM
Build of kernel module failed/ATI damianlr Suse/Novell 11 01-22-2006 11:11 AM
Can't build kernel module for ATI RADEON 9700 PRO ph0ngwh0ng Linux - Newbie 2 04-16-2004 03:10 PM


All times are GMT -5. The time now is 07:43 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration