Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-25-2010, 04:21 PM   #1
LQ Newbie
Registered: Mar 2008
Posts: 11

Rep: Reputation: 0
lib/module/build and set kernel path error while configuring madwifi

hi , I am trying to install atheros AR5007EG on my toshiba laptop -i figured out that best way to install this wireless card is through madwifi -while configuring madwifi i get this error
i am posting the output of different commands so you can understand better -i manually tried to link the build directories to kernel-source which failed - i am not sure exactly what kernel source is and how i can link to kernel source - i am not an expert in linux so please answer in detail
my output

[root@localhost madwifi-hal-]# make
/bin/sh: line 0: cd: /lib/modules/2.6.18-53.el5/build: No such file or directory *** /lib/modules/2.6.18-53.el5/build is missing, please set KERNELPATH. Stop.

[root@localhost madwifi-hal-]# rpm -qa kernel-headers
[root@localhost madwifi-hal-]# rpm -qa kernel-devel
[root@localhost madwifi-hal-]# rpm -qa make
[root@localhost madwifi-hal-]# rpm -qa gcc
[root@localhost madwifi-hal-]# rpm -qa gcc-c++

[root@localhost madwifi-hal-]# ls /usr/src/linux
ls: /usr/src/linux: No such file or directory

[root@localhost madwifi-hal-]# cd /usr/src
[root@localhost src]# ls
[root@localhost src]# cd kernels/
[root@localhost kernels]# ls

[root@localhost kernels]# cd 2.6.18-8.el5-i686/
[root@localhost 2.6.18-8.el5-i686]# ls
arch crypto fs init kabi_whitelist lib mm net security symsets-2.6.18-8.el5.tar.gz
block drivers include ipc kernel Makefile Module.symvers scripts sound usr

[root@localhost 2.6.18-8.el5-i686]# cd /lib/modules
[root@localhost modules]# ls
2.6.18-53.el5 build
[root@localhost modules]# ls -la
total 24
drwxr-xr-x 3 root root 4096 Jul 25 10:19 .
drwxr-xr-x 14 root root 4096 Jul 24 11:08 ..
drwxr-xr-x 6 root root 4096 Jul 24 11:11 2.6.18-53.el5
lrwxrwxrwx 1 root root 31 Jul 25 10:19 build -> /usr/src/linux2.6.18-8.el5-i686

thank you in advance whoever answer this question - i will appreciate
Old 07-26-2010, 07:25 AM   #2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,207

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
Why are you running those user commands as root (su) ?
Root is for administrative tasks only.

Solution : Probably # yum install kernel-devel
'kernel-devel-2.6.18-8.el5' is the oldest version.
And differs from your Žuname -rŽ version.

'kernel-devel' provides /usr/src/kernels/2.6.18-<version>/
.. and the 'build' link in /lib/modules/Žuname -rŽ/
must point to /usr/src/kernels/2.6.18-<version>/
( The install of the proper version will take care of that.)

Latest is : 2.6.18-194.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
set up java_home path in /home/user/.bashrc but use path in /usr/lib/java vitalstrike82 Slackware 4 01-13-2009 11:25 PM
/lib/module/ No such file or directory white_mist Linux - Newbie 10 12-14-2008 07:52 PM
[Error] Kernel Module : No kernel module build environment saman007uk Debian 7 09-09-2006 06:34 PM
Error: Unable to build the NVIDIA kernel module. Dachy Slackware 3 02-17-2006 02:46 AM
Nvidia kernel module build error: Synesthesia Linux - General 1 02-05-2006 06:20 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:08 PM.

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