Results 1 to 7 of 7
I'm trying to install madwifi on ubuntu edgy, but I need the kernel source to compile it. I've tried apt-get and it looked promising at first. It showed the package ...
- 05-27-2007 #1Linux Newbie
- Join Date
- Jun 2006
- Posts
- 150
Where is the kernel source?
I'm trying to install madwifi on ubuntu edgy, but I need the kernel source to compile it. I've tried apt-get and it looked promising at first. It showed the package I figure that I need (linux-headers-2.6.17-10-server or something similar) but I can't, for the life of me, find out WHERE THE HECK it put the source? This wasn't a problem before I upgraded to edgy, Dapper just put the source in the directory that I ran apt-get inside of. Where does it put this source code?
- 05-27-2007 #2
check /usr/src folder. its a default location of Kernel Source.
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 05-27-2007 #3Linux Newbie
- Join Date
- Jun 2006
- Posts
- 150
I already check /usr/src, it had nothing. By the way, I'm running the server version of ubuntu if it makes a difference.
- 05-27-2007 #4
If you haven't installed the kernel source, there shouldn't be anything there. Have you attempted to install the kernel source yet, and if so, how did you install it?
EDIT: you only need the kernel headers and devel packages most likely, I don't think either of these will show up in /usr/src/I do not respond to private messages asking for Linux help, Please keep it on the forums only.
All new users please read this.** Forum FAQS. ** Adopt an unanswered post.
- 05-27-2007 #5Linux Newbie
- Join Date
- Jun 2006
- Posts
- 150
alaric@ftpserver:/usr/src$ sudo apt-get install linux-headers-$(uname -r)
Password:
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-2.6.17-11-server is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
alaric@ftpserver:/usr/src$ ls
alaric@ftpserver:/usr/src$
As you can see, it claims that I have already installed the source, but there is *nothing* in /usr/src. This worked fine in Dapper Drake (with now GUI). What is going on?
P.S.
alaric@ftpserver:/$ sudo find -name $(uname -r)
./var/lib/initramfs-tools/2.6.17-11-server
./lib/modules/2.6.17-11-server
./lib/firmware/2.6.17-11-server
None of these look like the source to me.
- 05-27-2007 #6
First of all, there is a big difference between installing the kernel-headers and installing the kernel source. And as I previously posted, I don't think the headers are installed to /usr/src/, I really don't know where they install too. Have you tried installing the kernel-devel package for your kernel version and then try installing the driver again?
I do not respond to private messages asking for Linux help, Please keep it on the forums only.
All new users please read this.** Forum FAQS. ** Adopt an unanswered post.
- 05-27-2007 #7Linux Newbie
- Join Date
- Jun 2006
- Posts
- 150
oh, you edited it in and I didn't notice. But whatever, I finally found out that the deb packages from apt were being cached in /var/cache/apt/archive, so I copied the debs to /usr/src and extracted them there. And yeah, I found out that the headers are only additions to the kernel source because they were supposed to contain symlinks to the actual kernel source. I've got it working now, thanks for the help


Reply With Quote
