LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 05-27-2006, 04:23 AM   #1
sparrott
LQ Newbie
 
Registered: Mar 2006
Location: Devon
Distribution: Suse 10.1
Posts: 11

Rep: Reputation: 0
Question how do I install kernel source files in SuSE 10.1


Hi,

I've just installed suse 10.1 and am trying to get ndiswrapper working to install my wireless card. I get the following error:


Can't find kernel build files in /lib/modules/2.6.16.13-4-default/build

I've looked and the only thing in that directory is 'Module.symvers'.

Presumably there should be more source files than that?

I installed it from a DVD so is there a way to get the source files off there?

I'm still a bit new to linux!


Cheers,
Sparrott
 
Old 05-27-2006, 04:54 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I think the package that you want to install is the kernel-sym package matching your kernel.
 
Old 06-12-2006, 01:11 PM   #3
a2ashraf
LQ Newbie
 
Registered: Jun 2006
Posts: 1

Rep: Reputation: 0
Installation

sparrott:

Can't find kernel build files in /lib/modules/2.6.16.13-4-default/build

What you need to do is this:

First go to linux Yast.
Applications--System--Yast (or from the console type /sbin/yast2)
You will be required to login as super user (root).

Then on the left hand side you will see on the top Software, and in the right pane you should see a list of options. Depending on your version of linux (9,10,10.1 or greater) you need to click on the one that allows you to 'search'.

In my version: 10.1 i click on: "Software Management"

Then search for kernal, or for 'source'.

You will see on the right side checkboxes.
Check the one that says 'kernal source'.

Click next-->finish (inserting the appropriate cd's, or just that dvd).

Now you have the Kernal source installed.
Great.
Now go again and try the make command.

It would do you good to also install:
gcc, make. (in other words, search for them, and install them using the above process).
 
Old 06-12-2006, 01:24 PM   #4
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
you really don't need to compile anything. just install the ndiswrapper rpm from the cd/dvd.
 
Old 06-18-2006, 05:21 PM   #5
mattmattmatt15
LQ Newbie
 
Registered: Apr 2005
Posts: 8

Rep: Reputation: 0
Quote:
Originally Posted by a2ashraf
sparrott:

Can't find kernel build files in /lib/modules/2.6.16.13-4-default/build

What you need to do is this:

First go to linux Yast.
Applications--System--Yast (or from the console type /sbin/yast2)
You will be required to login as super user (root).

Then on the left hand side you will see on the top Software, and in the right pane you should see a list of options. Depending on your version of linux (9,10,10.1 or greater) you need to click on the one that allows you to 'search'.

In my version: 10.1 i click on: "Software Management"

Then search for kernal, or for 'source'.

You will see on the right side checkboxes.
Check the one that says 'kernal source'.

Click next-->finish (inserting the appropriate cd's, or just that dvd).

Now you have the Kernal source installed.
Great.
Now go again and try the make command.

It would do you good to also install:
gcc, make. (in other words, search for them, and install them using the above process).
Thank You, this is exactly what i needed to install klam, I didn't want to start up a useless threaad.
 
Old 10-11-2006, 11:56 PM   #6
earthmeLon
LQ Newbie
 
Registered: Oct 2006
Distribution: SUSE 10.1(x32)
Posts: 10

Rep: Reputation: 0
Hmmm

Hey. I am also trying to install kernel-source for 10.1 (x64) but when I check 'install' after searching, and hit accept. Nothing happens. When I return and search, It hasn't been installed. I have my installation DVD in the drive, and when I press CHECK, it says everything is fine.

When I hit accept, another window appears, but closes to fast for me to read.

Any suggestions?

Thanks guys
 
Old 10-20-2006, 10:58 AM   #7
earthmeLon
LQ Newbie
 
Registered: Oct 2006
Distribution: SUSE 10.1(x32)
Posts: 10

Rep: Reputation: 0
I found the best way to install kernel-source from an RPM fyi
 
  


Reply

Tags
installing, kernel, kernel source, source, suse10



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
Install Suse source kernel taichiman SUSE / openSUSE 25 11-25-2004 02:04 AM
How do I install Kernel source - SuSE 9.0? rgbrock1 Linux - Newbie 1 10-02-2004 09:29 AM
need to install kernel source files (mandrake 10) in console lostlyre Linux - Software 2 04-02-2004 03:45 PM
How to install kernel source on Suse 9 with/without Yast2 mahibedi Linux - Newbie 4 01-14-2004 06:13 PM
How to install kernel-source files? (v 2.4.22) Pisces107 Linux - Newbie 12 12-17-2003 06:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration