LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   no kernel module build environment" Error message during RPM install (http://www.linuxquestions.org/questions/linux-hardware-18/no-kernel-module-build-environment-error-message-during-rpm-install-172448/)

gotmonkey 04-20-2004 07:35 AM

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

320mb 04-20-2004 09:29 AM

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

gotmonkey 04-20-2004 10:53 AM

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?

gotmonkey 04-20-2004 11:11 AM

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?

gotmonkey 04-21-2004 07:51 AM

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.

lolonapoli 04-24-2004 04:45 PM

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

rlv 10-28-2007 01:02 AM

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)

Eliaquim 12-07-2007 02:08 AM

yum install gcc
 
log in as root and type this command
yum install gcc


All times are GMT -5. The time now is 10:34 AM.