Welcome to the most active Linux Forum on the web.
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 10-26-2007, 01:45 AM   #1
Registered: May 2007
Location: New Zealand
Distribution: Ubuntu
Posts: 88

Rep: Reputation: 16
How do I download linux headers and install on Gentoo

Hey there everyone,

I am trying to set up my PCMCIA modem in Gentoo. When I set it up in Ubuntu I had to run the following command:
sudo apt-get install linux-headers-$(uname -r)
Because I cannot connect to the internet in Gentoo, I need to download the linux headers on another computer, and then install them on my Gentoo machine. Can anyone please explain to me how I would do this?

My Gentoo kernel is 2.6.19-gentoo-r5.

Old 10-26-2007, 02:00 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
if you installed gentoo correctly they will already be there. as gentoo is wholly based around compiling from source, they need to be there already.
Old 10-26-2007, 02:39 AM   #3
Registered: May 2007
Location: New Zealand
Distribution: Ubuntu
Posts: 88

Original Poster
Rep: Reputation: 16
Thanks someone just told me that. This is what I'm up to in trying to install my ipwireless pcmcia modem. Could anyone tell me what the error means?

localhost ipwireless_cs-2.6.19_2.6.18 # emerge -pvv linux-headers

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  R  ] sys-kernel/linux-headers-2.6.17-r2  USE="-gcc64" 40,347 kB

Total: 1 package (1 reinstall), Size of downloads: 40,347 kB
localhost ipwireless_cs-2.6.19_2.6.18 # patch -p 1 -i ../workq.patch
patching file ipwireless_cs_hardware.c
patching file ipwireless_cs_main.c
patching file ipwireless_cs_network.c
localhost ipwireless_cs-2.6.19_2.6.18 # make
make -C /lib/modules/'uname -r'/build M='pwd'
make: *** /lib/modules/2.6.19-gentoo-r5/build: No such file or directory. Stop.
make: *** [all] Error 2


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
can't install linux-headers-2.6.21 baghdadi13 Linux - Newbie 3 09-06-2007 03:34 AM
Do I need to install linux-headers? mikieboy Debian 21 08-17-2007 02:09 PM
Gentoo live cd: need to install kernel headers jay73 Linux - Software 1 04-12-2007 08:35 AM
emerge system fails on gentoo install, seven files won't download enigma Z Linux - Distributions 4 08-29-2004 08:00 PM
Where to download Linux Headers? dbzw Linux - Newbie 2 02-23-2004 07:23 PM > Forums > Linux Forums > Linux - Newbie

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