LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-02-2008, 10:42 PM   #1
white_mist
LQ Newbie
 
Registered: Dec 2008
Posts: 4

Rep: Reputation: 0
Question /lib/module/2.6.26.6-49.fc8/build: No such file or directory


hi there! i'm very new to linux and i'm trying to install the compat-wireless driver in my pc but when i run the command make i get an error.

make: *** /lib/modules/2.6.26.6-49.fc8/build: No such file or directory. Stop.
make: *** [modules] Error 2


i checked that directory and the build and source are in red. what do you think it means?

thanks for your help.
 
Old 12-03-2008, 02:03 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,894

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Quote:
i checked that directory and the build and source are in red. what do you think it means?
It means that you don't have kernel sources installed. You should install it if you want to compile device drivers.
 
Old 12-03-2008, 02:25 AM   #3
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,458

Rep: Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941
Yes, the build and source are in red because they are links and point to something that does not exist, yet. After you've installed the kernel headers, they will look normal (cyan on my system) and the build link will point to a directory in /usr/src/kernels/. Be sure to install the kernel headers that match exactly the version of your running kernel:
Code:
kernel-2.6.26.6-49.fc8
kernel-devel-2.6.26.6-49.fc8
kernel-headers-2.6.26.6-49.fc8
 
Old 12-03-2008, 02:25 AM   #4
gankoji
Member
 
Registered: Nov 2007
Location: Southern California
Distribution: Slackware-13.0 x86_64, Slackware 12.2, slackware64-current
Posts: 225

Rep: Reputation: 35
a little more help: device drivers need the kernel source (at least headers usually) to be able to compile correctly. There exist a great many packages that contain kernel source. the easiest way for you to install them given that you're running fedora would be to use your favorite package manager and the default repositories to find the kernel source package that matches your current kernel (which is 2.6.26.6-49.fc8).
 
Old 12-04-2008, 07:37 PM   #5
white_mist
LQ Newbie
 
Registered: Dec 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Unhappy

hi there! thanks for your reply.

when i tried to install the requirement for the kernel- devel, headers, the reply was

kernel headers already installed. Nothing to do.

How come the build and source are still in red? Is there a command that i must use to have this properly working?

Thanks for all your help.
 
Old 12-05-2008, 12:25 AM   #6
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,894

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
You can follow the instructions here to install the kernel sources. It's written for fc5 but you can adapt it for fc8.
 
Old 12-05-2008, 06:48 AM   #7
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,458

Rep: Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941
Quote:
Originally Posted by white_mist View Post
How come the build and source are still in red? Is there a command that i must use to have this properly working?
Hmmm... maybe something is still not correctly installed or simply the build link is broken for some reason. Can you post the output of the following four commands, please?
Code:
# uname -a
# rpm -qa | grep ^kernel
# ls /usr/src/kernels/$(uname -r)-$(uname -m)
# ls -l /lib/modules/$(uname -r)
 
Old 12-07-2008, 07:25 PM   #8
white_mist
LQ Newbie
 
Registered: Dec 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Question

Quote:
Originally Posted by colucix View Post
Hmmm... maybe something is still not correctly installed or simply the build link is broken for some reason. Can you post the output of the following four commands, please?
Code:
# uname -a
# rpm -qa | grep ^kernel
# ls /usr/src/kernels/$(uname -r)-$(uname -m)
# ls -l /lib/modules/$(uname -r)
here are the output of the commands you've requested:

# uname -a
Linux )*\377 2.6.26.6-49.fc8 #1 SMP Fri Oct 17 15:59:36 EDT 2008 i686 i686 i386 GNU/Linux


# rpm -qa|grep kernel
kernel-headers-2.6.26.6-49.fc8
kernel-2.6.26.6-49.fc8
kernel-2.6.23.1-42.fc8


# ls /usr/src/kernels/$(uname -r)-$(uname -m)
ls: cannot access /usr/src/kernels/2.6.26.6-49.fc8-i686: No such file or directory

# ls -l /lib/modules/$(uname -r)
total 1908
lrwxrwxrwx 1 root root 45 2008-12-04 15:46 build -> ../../../usr/src/kernels/2.6.26.6-49.fc8-i686
drwxr-xr-x 2 root root 4096 2008-10-18 04:10 extra
drwxr-xr-x 9 root root 4096 2008-12-04 15:46 kernel
-rw-r--r-- 1 root root 391521 2008-12-04 15:48 modules.alias
-rw-r--r-- 1 root root 1542 2008-10-18 04:10 modules.block
-rw-r--r-- 1 root root 69 2008-12-04 15:48 modules.ccwmap
-rw-r--r-- 1 root root 322050 2008-12-04 15:48 modules.dep
-rw-r--r-- 1 root root 147 2008-12-04 15:48 modules.ieee1394map
-rw-r--r-- 1 root root 375 2008-12-04 15:48 modules.inputmap
-rw-r--r-- 1 root root 13083 2008-12-04 15:48 modules.isapnpmap
-rw-r--r-- 1 root root 1716 2008-10-18 04:10 modules.networking
-rw-r--r-- 1 root root 74 2008-12-04 15:48 modules.ofmap
-rw-r--r-- 1 root root 64025 2008-10-18 04:10 modules.order
-rw-r--r-- 1 root root 274100 2008-12-04 15:48 modules.pcimap
-rw-r--r-- 1 root root 1051 2008-12-04 15:48 modules.seriomap
-rw-r--r-- 1 root root 156195 2008-12-04 15:48 modules.symbols
-rw-r--r-- 1 root root 560203 2008-12-04 15:48 modules.usbmap
lrwxrwxrwx 1 root root 5 2008-12-04 15:46 source -> build
drwxr-xr-x 2 root root 4096 2008-10-18 04:10 updates
drwxr-xr-x 2 root root 4096 2008-12-04 15:46 vdso
drwxr-xr-x 2 root root 4096 2008-10-18 04:10 weak-updates

We currently changed our OS in the office from Windows to Linux. I read the forums to get more information about Fedora 8 and it has helped me a lot but this problem needs an expert.

I really appreciate all your help.
 
Old 12-07-2008, 07:31 PM   #9
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,447
Blog Entries: 3

Rep: Reputation: 182Reputation: 182
load all your development rpms. if you can build Gyachi you got everything installed lol.
stay with 8 it has become pretty stable.
 
Old 12-08-2008, 03:28 AM   #10
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,458

Rep: Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941
You missed the package kernel-devel. It will provide all the required stuff under /usr/src/kernels:
Code:
yum install kernel-devel
check the version and the trick is done.
 
Old 12-14-2008, 07:52 PM   #11
white_mist
LQ Newbie
 
Registered: Dec 2008
Posts: 4

Original Poster
Rep: Reputation: 0
hey guys! sorry this delayed reply but thanks for all your help.

i ran the kernel-devel command and it worked. thanks a lot.

i'm now trying to network the office computers all with fc8. i'll ask your help again soon if i don't get it up and running by myself.

thanks again.

Happy Holidays!!!
 
  


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
lib/modules/2.6.22.5-31-default/source ; no such file or directory krishhX Linux - Software 5 08-20-2008 08:32 AM
make: File not found: /lib/modules/2.6.18-elive/build/ clhona Linux - Software 3 08-08-2007 12:09 PM
[root@oprations Module]# make make -C /lib/modules/2.6.18-1.2798.fc6/build SUBDIRS=/r korotania Fedora 7 06-22-2007 03:12 PM
No build file in lib/modules/* Mlehliw Linux - Newbie 1 08-06-2004 09:40 AM
grep: /usr/lib/libglib-2.0.la: No such file or directory FirstTimeUser Linux - Software 9 10-15-2003 09:53 PM


All times are GMT -5. The time now is 02:57 AM.

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