LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problem compile Ndiswrapper source code (https://www.linuxquestions.org/questions/linux-software-2/problem-compile-ndiswrapper-source-code-530457/)

bourne 02-19-2007 12:10 PM

Problem compile Ndiswrapper source code
 
Hey.
New to linux, but trying my hand at trying to get my wireless working on my Toshiba A100-8. Currently I am having problems getting ndiswrapper to install. yum does not have an rpm for ndiswrapper so I downloaded the it from sourceforge, when I use the "make" command from within the folder I have the source code installed in I get this error message

ERROR AFTER 'make' command:

make -C driver
make[1]: Entering directory `/tmp/ndis/ndiswrapper-1.37/driver'
Can't find kernel build files in /lib/modules/2.6.18-1.2798.fc6/build;
give the path to kernel build directory with
KBUILD=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/tmp/ndis/ndiswrapper-1.37/driver'
make: *** [all] Error 2


--------------------------

I updated the kernel as I was told to do but that hasn't seemed to help anything. Anyone know I how I can get ndiswrapper installed?

thanks in advance.

todd

XavierP 02-19-2007 04:46 PM

Did you install the kernel-sources package for your kernel? Ndiswrapper requires that the sources be present for it to compile.

bourne 02-20-2007 12:08 AM

Quote:

Originally Posted by XavierP
Did you install the kernel-sources package for your kernel? Ndiswrapper requires that the sources be present for it to compile.

Oh that I may not have done. How do I go about installing the kernel-sources? Can I do that using yum? Or will I need to download that sepertly?

XavierP 02-20-2007 04:59 AM

Yum will work fine. I don't have Fedora/Yum, so until someone comes along with the exact string, have a read of http://fedora.redhat.com/docs/yum/en/ to see how to search for the packages and choose the right one. Your first step is to do
Code:

uname -r
in a terminal to see exactly which kernel you have installed - your kernel-sources package must match your installed kernel.

bourne 02-20-2007 11:12 AM

Quote:

Originally Posted by XavierP
Yum will work fine. I don't have Fedora/Yum, so until someone comes along with the exact string, have a read of http://fedora.redhat.com/docs/yum/en/ to see how to search for the packages and choose the right one. Your first step is to do
Code:

uname -r
in a terminal to see exactly which kernel you have installed - your kernel-sources package must match your installed kernel.

Ok cool thanks for the link I will look through that to see if I can find what I need. Are you saying though that I can use yum to install ndiswrapper? I tried searching the list of repositories that yum provides but nothing matched yum. I figure you mean that I can just use yum to put the kernel-source in eh?


thanks todd

XavierP 02-20-2007 11:18 AM

That's it - it'd be
Code:

yum install kernel-sources-<your kernel version>
and the install ndiswrapper.

bourne 02-20-2007 12:56 PM

Quote:

Originally Posted by XavierP
That's it - it'd be
Code:

yum install kernel-sources-<your kernel version>
and the install ndiswrapper.

How come when I do a
Code:

yum list | grep ndiswrapper
Nothing under yum shows up?
I have seen some tutorials that tell you to edit the yum.conf file adding websites to search for the ndiswrapper program. However when I tried to run the yum command I got a timeout error.
So do I have to actually add anything to the yum.conf file to tell yum where to look for the ndiswrapper program?

Thanks again for the speedy replies

todd

bourne 02-20-2007 01:14 PM

Wait sorry upon reading that link I was given I found that you can use yum to install repositories locally. So if I downloaded the ndiswrapper packge from sourceforge, would I simply unpackage it and then rename it so that it has an .rpm extention? Or would I leave it in the .tar.gz format it comes in?

Code:

yum localinstall ndiswrapper-1.37.tar.gz
Would that be the code I would use to install ndiswrapper?

Also I just tried
Code:

yum install kernel-sources-2.6.19-1.2911.fc6
However I get a message back saying:
Code:

Nothing to do
So how would I install the kernel source is yum doesn't have it?

thanks again for everything

todd

bourne 02-20-2007 07:35 PM

Ok I did a little more searching for installing the kernel-source. Has anyone used the kernel-devel? I have been reading conflicting things about whether or not that is the kernel-source or not? If anyone could point me int he right direction I would greatly appreciate it!


thanks
todd


All times are GMT -5. The time now is 09:51 PM.