LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 03-10-2006, 07:46 AM   #1
mcmorj
Member
 
Registered: Oct 2004
Location: Buckingham
Distribution: Suse 10 11 and kubuntu
Posts: 73

Rep: Reputation: 15
Unhappy Why won't make and make install work


Hi All,

I have Suse 10 and believe I have installed from YAST all the bits and bobs to complie stuff.
basically I checked everything in YAST starting with kernel except stuff like Xen. Hope this is all I need to do?

Anyway, as usual, messing with wireless (not) lans and get to the point of trying to install the latest ndiswrapper (the only thing I have had any success with at all) and I get the following:

natoma:~/Desktop/ndiswrapper-1.11rc2 # make
make -C driver
make[1]: Entering directory `/root/Desktop/ndiswrapper-1.11rc2/driver'
Can't find kernel sources in /lib/modules/2.6.13-15.8-default/build;
give the path to kernel sources with KSRC=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/root/Desktop/ndiswrapper-1.11rc2/driver'
make: *** [all] Error 2
natoma:~/Desktop/ndiswrapper-1.11rc2 #

What on earth does this mean?! And what am I missing?!

Help!
 
Old 03-10-2006, 08:40 AM   #2
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Rep: Reputation: 53
This means that you also need to install the kernel sources for the particular kernel you are using. They should be easily available. Look for a kernel-source type file in YAST.

Unfortunately I am not very familiar with YAST or Suse, so I do not know the naming conventions used for kernel sources.
 
Old 03-10-2006, 08:55 AM   #3
J3N7iL
Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Gentoo
Posts: 53

Rep: Reputation: 15
You may not even need that.

I would try getting a kernel from kernel.org,
go to /usr/src/
thier should be a folder called linux
add the kernel sources to /usr/src/linux-2.15.xx (what ever version you have)and link the linux folder to the new folder

Code:
ln -s linux-2.15.xx linux
compile your kernel, add it to the boot loader and then try your make make install.

I have had problems with the kernel that comes with some distros. (SUSE, Mandrake, Fedora)Well not reall so much Fedora, but still some issues.

Thats why I switched to Gentoo.
 
Old 03-10-2006, 09:00 AM   #4
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Rep: Reputation: 53
Ack! Now that I am thinking about it a bit more, I have made a slight error. What you really need is not necessarily the source, but the kernel headers for your currently installed kernel.

To play it safe, I would get both the kernel headers and the kernel source from Suse and install them. Yes, you could grab the kernel from kernel.org, but I am pretty sure that Suse does some things a little different with their kernels that are put out for production, and by installing both the headers and sources from Suse you are sure to get the ones that were actually used to build the kernel you are running right now.

If you grab a new kernel source from kernel.org and build your own, then build this software against it, then J3N7iL's advice above is more appropriate.
 
Old 03-10-2006, 10:28 AM   #5
victorh
Member
 
Registered: Jul 2005
Location: La Paz, Bolivia
Distribution: Debian Sarge - Sid, Slackware, Gentoo, openSuse, Fedora, Ubuntu, Mandriva
Posts: 241

Rep: Reputation: 30
Yes, Wells you are right. The SuSE kernel is quite different, it has its own peculiarities, and it's safer to use one of the kernels that SuSE has available, unless you know very well how to buil it in SuSE.

So, mcmorj you need to install the kernel-source package via YaST. You have to make sure that you are installing the kernel-source that matches your current kernel. Type the following command to know the kernel you are running:

Code:
uname -r
With this information go to YaST -> Software Management, in Selections go to Kernel Development, you should see the package kernel-source, check this one and Accept. YaST will install if for you.
 
Old 03-10-2006, 11:21 AM   #6
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
you don't need to do any of that with suse. just install ndiswrapper not km_ndiswrapper. then install the driver for the card. no kernel recompile needed.
 
Old 03-17-2006, 07:54 AM   #7
mcmorj
Member
 
Registered: Oct 2004
Location: Buckingham
Distribution: Suse 10 11 and kubuntu
Posts: 73

Original Poster
Rep: Reputation: 15
Thanks for the responses.
My enquiry was more general I guess.
The most I know about Kernels is Kernel Saunders Kentucky Fried Chicken!
What has been offered here is just waaaaaaaay over my head.
I have gone to the SUSE10 install CDs, installed everything I can find named kernel source.
What seens to be suggested is:
This isn't sufficient - I need to install something else?
I further need to compile it? (Which I cannot do at the moment anyway?
If I type make install and it all goes west - whats annoying the make install command? (any make install command, not just for ndiswrapper).
 
  


Reply



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
BASH problems: "configure, make, make install" commands don't work ditch* Linux - General 3 07-19-2005 04:37 PM
configure, make and make install commands don't work for me Fenster Fedora 8 08-18-2004 10:58 AM
'make' and 'make install' commands dont work on my system? ginda Linux - Newbie 9 04-18-2004 11:17 AM
./configure , make and make install does not work mobassir Linux - Software 7 07-30-2003 09:20 AM
./configure - make - make install can't work ?!? JZL240I-U Linux - General 14 05-05-2003 03:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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