LinuxQuestions.org
Review your favorite Linux distribution.
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
 
Search this Thread
Old 04-20-2004, 08:35 AM   #1
gotmonkey
Member
 
Registered: Apr 2004
Location: Dearborn, Mi
Distribution: Slackware 10 & Xandros 3
Posts: 62

Rep: Reputation: 15
no kernel module build environment" Error message during RPM install


Looking for a bit of help. I am trying to update my ATI 9700pro video drivers with the latest from ATI. I followed the instructions on ATI's site for install.

rpm -Uh --force <ati_package_name>.rpm


I received this error


"no kernel module build environment" Error message during RPM install
The information in this article applies to the following configurations:
XFree86
ATI Proprietary Linux Drivers
The following error message may appear while trying to install:

*** Trying to install a precompiled kernel module.
*** WARNING ***
Tailored kernel module for fglrx not present in your system.
You must go to /lib/modules/fglrx/build_mod subdir
and execute './make.sh' to build a fully customed kernel module.
Afterwards go to /lib/modules/fglrx and run './make_install.sh'
in order to install the module into your kernel's module repository.
(see readme.txt for more details.)

As of now you can still run your XServer in 2D, but hardware acclerated
OpenGL will not work and 2D graphics will lack performance.

failed.
*** Error: no kernel module build environment - please consult readme.


That didn't work.


However, if your system does not match any of these configurations, then the installer will try to build a custom module for you from scratch. This process will require the following software to be installed:
Kernel source code
Kernel header (include) files
GCC compiler
Make Utility


How do I know if I have these installed? If not, what do I install?

My Hardware specs are as followed

Shuttle SN45G
AMD XP2500+ w/ 2x512mb Mushkin PC3500 Level 1
Sapphire 9700Pro
Samsung SP1614N 160gig & Samsung SM-308 Combo Drive
 
Old 04-20-2004, 10:29 AM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 47
Re: no kernel module build environment" Error message during RPM install

Quote:
Originally posted by gotmonkey
[B]
Kernel source code
will be located in /usr/src/linux<version>
Quote:
Kernel header (include) files
will be located in /usr/src/linux<version>/include

to find out if these are installed..............

Quote:
GCC compiler
from a term window or command line type...........
gcc -v
Quote:
Make Utility
as above, type in term window or command line.........

make -v

Last edited by 320mb; 04-20-2004 at 10:31 AM.
 
Old 04-20-2004, 11:53 AM   #3
gotmonkey
Member
 
Registered: Apr 2004
Location: Dearborn, Mi
Distribution: Slackware 10 & Xandros 3
Posts: 62

Original Poster
Rep: Reputation: 15
I didn't have a GCC installed on the system, so I searched the rpms for GCC and installed latest verision I could find

I could find it under:
/usr/src/linux<version>/include

When I ran gcc -v it located it under:
file:/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.0
gcc version 3.4.0 (Mandrake Linux 10.0 3.4.0-0.4mdk)

make -v produced
GNU Make 3.80

Will this work or should I have installed something else?
 
Old 04-20-2004, 12:11 PM   #4
gotmonkey
Member
 
Registered: Apr 2004
Location: Dearborn, Mi
Distribution: Slackware 10 & Xandros 3
Posts: 62

Original Poster
Rep: Reputation: 15
I tried to install the driver again and this is what it game me

[root@192 Uploads]# rpm -Uh --force fglrx-4.1.0-3.7.6.i386.rpm
########################################### [100%]
########################################### [100%]
*** Trying to install a precompiled kernel module.
*** WARNING ***
Tailored kernel module for fglrx not present in your system.
You must go to /lib/modules/fglrx/build_mod subdir
and execute './make.sh' to build a fully customed kernel module.
Afterwards go to /lib/modules/fglrx and run './make_install.sh'
in order to install the module into your kernel's module repository.
(see readme.txt for more details.)

As of now you can still run your XServer in 2D, but hardware acclerated
OpenGL will not work and 2D graphics will lack performance.

failed.
*** Error: no kernel module build environment - please consult readme.
Installed: qt3 (gcc 3.2) based control panel application
===
ATI display drivers successfully installed
please run 'fglrxconfig' now
===
[root@192 Uploads]# cd /lib/modules/fglrx/build_mod
[root@192 build_mod]# ./make.sh
bash: ./make.sh: Permission denied
[root@192 build_mod]# cd /lib/modules/fglrx
[root@192 fglrx]# ./make_install.sh
bash: ./make_install.sh: Permission denied
[root@192 fglrx]#

what am I doing wrong?
 
Old 04-21-2004, 08:51 AM   #5
gotmonkey
Member
 
Registered: Apr 2004
Location: Dearborn, Mi
Distribution: Slackware 10 & Xandros 3
Posts: 62

Original Poster
Rep: Reputation: 15
This is frustrating. I just want to be able to play Savage and UT2004. So far, I can't do that under linux. I have tried to get video working on 3 distro's and can't. All the forum posts of "Do this" are not working. I am at a loss.
 
Old 04-24-2004, 05:45 PM   #6
lolonapoli
LQ Newbie
 
Registered: Apr 2004
Posts: 1

Rep: Reputation: 0
to launch make and makeinstall , you must change the permission of the files make.sh and make_install.sh
cd /lib/modules/fglrx/build_mod
ls -l make.sh
-r--r--r-- 1 root root 38153 Mar 4 18:25 make.sh
^--- This is the permission flag
chmod u+x make.sh
ls -l make.sh
-r-xr--r-- 1 root root 38153 Mar 4 18:25 make.sh
^---- Now the script is executable
./make.sh

but, in fact (looking at your previous post) the make.sh and make_install.sh seems to been already executed.
just type fglrxconfig
 
Old 10-28-2007, 02:02 AM   #7
rlv
LQ Newbie
 
Registered: Oct 2007
Posts: 1

Rep: Reputation: 0
Sucess: ATI HD2600, FC6

Thanks to the comments from folks in this group. I just downloaded the latest ATI proproetary driver, and used it successfully with FC6.

You comments led me to suspect the improper installation of the kernel sources (kernel-devel) module, so I was getting a mismatch and the ATI automated installation was issuing errors. By using "yum remove"
on the various "kernel-devel" packages I had installed, and then installing them again with "yum install kernel-devel" I finally created a working configuration, that offers accelerated video.
Second life works, and so does googleearth. They both have some troubles with fonts though,,,

uname -a:
Linux t5 2.6.22.9-61.fc6 #1 SMP Thu Sep 27 18:48:03 EDT 2007 i686 i686 i386 GNU/Linux

fglrxinfo:
libGL error: open DRM failed (Operation not permitted)
libGL error: reverting to (slow) indirect rendering
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon HD 2600 Pro
OpenGL version string: 1.2 (2.0.6958 Release)
 
Old 12-07-2007, 03:08 AM   #8
Eliaquim
LQ Newbie
 
Registered: Dec 2007
Location: Cebu, Phillippines
Posts: 6

Rep: Reputation: 0
yum install gcc

log in as root and type this command
yum install gcc
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Error] Kernel Module : No kernel module build environment saman007uk Debian 7 09-09-2006 07:34 PM
module-assistant auto-install ov511 ... make: *** [build-stamp] Error 2 brynjarh Linux - Hardware 1 11-13-2005 03:31 PM
FC4 install errors, "diabling IRQ #10" "nobody cares" error message??? A6Quattro Fedora 6 07-20-2005 01:49 PM
mkinitrd failed with message "no module raid0 found for kernel 2.6.9" ythevenot Red Hat 3 12-07-2004 10:15 PM
SuSE Linux 9.1 Personal: Error message "module usb_uhci not found" johnerskine Linux - Newbie 2 06-24-2004 12:02 PM


All times are GMT -5. The time now is 04:50 PM.

Main Menu
Advertisement
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 Google+: linuxquestions
Open Source Consulting | Domain Registration