Newbie question: nothing in /usr/src
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Debian support > Linux Debian support > Newbie question: nothing in /usr/src




Pages (2): [1] 2 »   Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Newbie question: nothing in /usr/src  
Teilhard Knight


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-01-05 10:47 PM

Hello:

I have a little experience with Mandrake and none with Debian (I am using
Debian 3.1r0a-i386). I need to compile the drivers for my wireless adapter.
For that I need what in Mandrake would be called the kernel-source which
would place a directory in /usr/src like "linux-"uname -r"". at the moment
/usr/src is empty. I tried to make a "make menuconfig" and it fails because
it does not find the Makefile in /usr/src/linux ....... What is the
corresponding package in debian I should install? I had a look at all the
packages but none ring the bell. Thanks.

Teilhard.







[ Post a follow-up to this message ]



    Re: Newbie question: nothing in /usr/src  
Bill Marcum


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-01-05 10:47 PM

On Mon, 1 Aug 2005 12:39:26 -0500, Teilhard Knight
<teilhk@privacy.net> wrote:
> Hello:
>
> I have a little experience with Mandrake and none with Debian (I am using
> Debian 3.1r0a-i386). I need to compile the drivers for my wireless adapter
.
> For that I need what in Mandrake would be called the kernel-source which
> would place a directory in /usr/src like "linux-"uname -r"". at the moment
> /usr/src is empty. I tried to make a "make menuconfig" and it fails becaus
e
> it does not find the Makefile in /usr/src/linux ....... What is the
> corresponding package in debian I should install? I had a look at all the
> packages but none ring the bell. Thanks.
>
apt-get install kernel-source-[version]
For newer kernel versions, the package name might be
linux-source-[version]


--
Tonight you will pay the wages of sin; Don't forget to leave a tip.





[ Post a follow-up to this message ]



    Re: Newbie question: nothing in /usr/src  
Teilhard Knight


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-01-05 10:47 PM

"Bill Marcum" <bmarcum@iglou.com.urgent> wrote in message
news:2352s2-ac3.ln1@don.localnet...
> On Mon, 1 Aug 2005 12:39:26 -0500, Teilhard Knight
>  <teilhk@privacy.net> wrote: 
> apt-get install kernel-source-[version]
> For newer kernel versions, the package name might be
> linux-source-[version]

"uname -r" is for me: 2.6.8-2-686-smp, and the Synaptic Package Manager says
I have the kernel-image version 2.6.8-16. I have tried with 2.6.8-2, with
2.6.8-16, and many other versions and the system responds it doesn't find a
package "kernel-source-[version] or linux-source-[version].  I have 
had a
look at all packages in the list, which I suppose are the ones contained in
the CDs, and there is not a package named kernel-source... or
linux-source.....Do I have to do this in Internet?

Teilhard.







[ Post a follow-up to this message ]



    Re: Newbie question: nothing in /usr/src  
gregor herrmann


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-01-05 10:47 PM

On Mon, 1 Aug 2005 16:57:50 -0500, Teilhard Knight wrote:

> "uname -r" is for me: 2.6.8-2-686-smp, and the Synaptic Package Manager sa
ys
> I have the kernel-image version 2.6.8-16.

The source package is 'kernel-source-2.6.8'.

> I have had a
> look at all packages in the list, which I suppose are the ones contained i
n
> the CDs, and there is not a package named kernel-source... or
> linux-source...Do I have to do this in Internet?

Take a look at /etc/apt/sources.list
If there are no "deb-src ..." lines you will have to add some.

gregor
--
.''`.   http://info.comodo.priv.at/ | gpg key ID: 0x00F3CFE4
: :' :  infos zur usenet-hierarchie at.*: http://www.usenet.at/
`. `'   member of https://www.vibe.at/ | how to reply: http://got.to/quote/
`-





[ Post a follow-up to this message ]



    Re: Newbie question: nothing in /usr/src  
John Hasler


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-01-05 10:47 PM

Teilhard writes:
> I have tried with 2.6.8-2, with 2.6.8-16, and many other versions and the
> system responds it doesn't find a package "kernel-source-[version] or
> linux-source-[version].

Try 'apt-cache search kernel-source-2.6.8'.  The '-2' is the Debian version
and is not part of the package name.

BTW starting with 2.6.12 the Debian Linux kernel packages are named
'linux-source' rather than 'kernel source'.  This is due to the advent of
the Hurd and BSD ports.

--
John Hasler





[ Post a follow-up to this message ]



    Re: Newbie question: nothing in /usr/src  
John Hasler


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-01-05 10:47 PM

gregor writes:
> Take a look at /etc/apt/sources.list If there are no "deb-src ..." lines
> you will have to add some.

The kernel-source packages are regular packages containing the kernel
source.

--
John Hasler





[ Post a follow-up to this message ]



    Re: Newbie question: nothing in /usr/src  
Teilhard Knight


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-02-05 07:51 AM

"gregor herrmann" <gregor+usenet-0402@comodo.priv.at> wrote in message
news:q8j2s2-n9p.ln1@news.comodo.priv.at...
> On Mon, 1 Aug 2005 16:57:50 -0500, Teilhard Knight wrote:
> 
>
> The source package is 'kernel-source-2.6.8'.
> 
>
> Take a look at /etc/apt/sources.list
> If there are no "deb-src ..." lines you will have to add some.

Thanks a lot. I have first of all to see how do I get Internet in my box. I
connected a direct cable from my ADSL modem to the computer, but the PPPoE
configurator says there is no connection. I was trying to do a little
research in Internet about ADSL LAN in Debian, and I read someone had to
load the drivers for his Ethernet card, and for that I suppose I need the
kernel source. I do not know where I stand because Debian doesn't even
recognize a flash disk which is what one way of loading drivers and packages
so that everything starts working. I suppose I'll have to burn a CD to load
the kernel-source, I do not see other way. Any advise?

Teilhard.







[ Post a follow-up to this message ]



    Re: Newbie question: nothing in /usr/src  
Teilhard Knight


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-02-05 07:51 AM

"John Hasler" <jhasler@debian.org> wrote in message
news:871x5dp9wa.fsf@toncho.dhh.gt.org...
> gregor writes: 
>
> The kernel-source packages are regular packages containing the kernel
> source.

I know that much. But they are needed to compile things.

Teilhard.







[ Post a follow-up to this message ]



    Re: Newbie question: nothing in /usr/src  
Teilhard Knight


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-02-05 07:51 AM

"John Hasler" <jhasler@debian.org> wrote in message
news:8764uppa62.fsf@toncho.dhh.gt.org...
> Teilhard writes: 
>
> Try 'apt-cache search kernel-source-2.6.8'.  The '-2' is the Debian
> version
> and is not part of the package name.
>
> BTW starting with 2.6.12 the Debian Linux kernel packages are named
> 'linux-source' rather than 'kernel source'.  This is due to the advent of
> the Hurd and BSD ports.

Thanks for the info. Please read the response to Gregor to see my dilemma.
Nothing works in my installation. Well, I will not start whining.

Teilhard.







[ Post a follow-up to this message ]



    Re: Newbie question: nothing in /usr/src  
Jon


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-02-05 07:51 AM

Teilhard Knight wrote:

> "Bill Marcum" <bmarcum@iglou.com.urgent> wrote in message
> news:2352s2-ac3.ln1@don.localnet... 
>
> "uname -r" is for me: 2.6.8-2-686-smp, and the Synaptic Package Manager sa
ys
> I have the kernel-image version 2.6.8-16. I have tried with 2.6.8-2, with
> 2.6.8-16, and many other versions and the system responds it doesn't find 
a
> package "kernel-source-[version] or linux-source-[version].  I hav
e had a
> look at all packages in the list, which I suppose are the ones contained i
n
> the CDs, and there is not a package named kernel-source... or
> linux-source.....Do I have to do this in Internet?
>
> Teilhard.

penguin@insomniac:~$ apt-cache search kernel-source | grep 2.6.8
kernel-patch-debian-2.6.8 - Debian patches to Linux 2.6.8
kernel-source-2.6.8 - Linux kernel source for version 2.6.8 with Debian patc
hes
kernel-tree-2.6.8 - Linux kernel source tree for building Debian kernel imag
es
penguin@insomniac:~$

Install kernel-source-2.6.8 (apt-get install kernel-source-2.6.8). This will
download it to /usr/src. From there just untar it.

I had a similar issue when starting to use Debian with Woody. My kernel was
2.4.28-bf24 but I couldn't find it anywhere. I ended up installing the 2.4.2
8
kernel-source package and that did the trick ;)

Hope that helps,
--
Jon
jon@watcher.net.nz





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:04 PM.      Post New Thread    Post A Reply      
Pages (2): [1] 2 »   Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum 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
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register