LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   /lib/module/2.6.26.6-49.fc8/build: No such file or directory (https://www.linuxquestions.org/questions/linux-newbie-8/lib-module-2-6-26-6-49-fc8-build-no-such-file-or-directory-687900/)

white_mist 12-02-2008 10:42 PM

/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.

bathory 12-03-2008 02:03 AM

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.

colucix 12-03-2008 02:25 AM

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


gankoji 12-03-2008 02:25 AM

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).

white_mist 12-04-2008 07:37 PM

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.

bathory 12-05-2008 12:25 AM

You can follow the instructions here to install the kernel sources. It's written for fc5 but you can adapt it for fc8.

colucix 12-05-2008 06:48 AM

Quote:

Originally Posted by white_mist (Post 3364932)
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)


white_mist 12-07-2008 07:25 PM

Quote:

Originally Posted by colucix (Post 3365361)
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.

Drakeo 12-07-2008 07:31 PM

load all your development rpms. if you can build Gyachi you got everything installed lol.
stay with 8 it has become pretty stable.

colucix 12-08-2008 03:28 AM

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.

white_mist 12-14-2008 07:52 PM

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!!!


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