 |
05-27-2007
|
#1 (permalink)
| | Linux 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 (permalink)
| | Super Moderator
Join Date: Jun 2006 Location: Chandigarh, INDIA
Posts: 18,411
| check /usr/src folder. its a default location of Kernel Source. |
| |
05-27-2007
|
#3 (permalink)
| | Linux 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 (permalink)
| | Trusted Penguin
Join Date: Apr 2006 Location: Cowtown, Texas
Posts: 2,354
| Quote:
Originally Posted by Alaric I already check /usr/src, it had nothing. By the way, I'm running the server version of ubuntu if it makes a difference. | 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/
__________________
All new Users please read: FAQ |
| |
05-27-2007
|
#5 (permalink)
| | Linux 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 (permalink)
| | Trusted Penguin
Join Date: Apr 2006 Location: Cowtown, Texas
Posts: 2,354
| Quote:
Originally Posted by Alaric 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. | 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?
__________________
All new Users please read: FAQ |
| |
05-27-2007
|
#7 (permalink)
| | Linux 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  |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | Free Magazines | Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe | Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe | The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe | Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe | Total Telecom Total Telecom is "The Economist of the communications industry". subscribe | | More free magazines » | All times are GMT. The time now is 01:05 AM. |
| |