Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-05-2006, 10:15 AM   #1
LQ Newbie
Registered: Nov 2006
Location: UK
Distribution: Kubuntu 7.10
Posts: 14

Rep: Reputation: 0
/usr/src/linux-<kernelno> doesnt exist

Hi all.

Im just getting to grips with linux, but Ive had to move from my nice friendly college ethernet connection to my home wireless one.

I am trying to get my wireless driver to work using ndiswrapper, and I have realised that ndiswrapper wont 'make' because I dont have the kernel source files. I have read the previous posts on this topic, but they dont seem to solve my problem.

I dont have web access on the pc with linux on, so I have to transfer rpms over by usb rather than use yum, etc. The build I am running according to uname -r is 2.6.18-1.2239.fc5

The folder to which /lib/modules/2.6.18-1.2239.fc5/build and /lib/modules/2.6.18-1.2239.fc5/source expect to link to is /usr/src/kernels/2.6.18-1.2239.fc5-i686 but this does not exist. The only folder which exists in .../src is redhat/

From reading other posts, I gathered that I needed to download the relevant rpm. I downloaded kernel-2.6.18-1.2239.fc5.src.rpm and ran
'rpm -Uvh kernel-2.6.18-1.2239.fc5.src.rpm'

This just put the files in ...redhat/SOURCES. This problem is similar to the one described here:

however, unlike the problem described there, I cannot fix the issue by
'ln -s /usr/src/redhat/SOURCES/linux-2.6.18-1.2239.fc5 /usr/src/kernels'

or similar because linux-2.6.18-1.2239.fc5 does not exist.
linux-2.6.18.tar.bz2 does however, but extracting this to /src/kernel with the directory renamed appropriately does not fix the problem, so I have removed that little experiment.

Hopefully someone has experienced a similar problem, because I really am completely stumped.

Old 12-05-2006, 10:20 AM   #2
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
You need to install the kernel-devel and kernel-headers packages whos versions match the kernel you are running.
Old 12-07-2006, 10:29 AM   #3
LQ Newbie
Registered: Nov 2006
Location: UK
Distribution: Kubuntu 7.10
Posts: 14

Original Poster
Rep: Reputation: 0
great thanks got it working now



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
cant make ndiswrapper because user/src/kernels doesnt exist seamus1089 Linux - Wireless Networking 3 01-14-2007 07:21 PM
/usr/src/linux does not exist Sigkill(9) Linux - Newbie 2 01-02-2005 12:54 PM
/usr/src/linux doesn't exist! How do I install it? Sinope Linux - Newbie 5 08-09-2004 02:53 PM
/usr/src/linux doesnt exist? santasballz Linux - Newbie 7 02-08-2004 10:32 AM
Help!!... /usr/src/linux/Makefile does not exist. PhoenixZorn Slackware 4 11-16-2003 08:14 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:10 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