LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-19-2007, 12:10 PM   #1
bourne
Member
 
Registered: Feb 2006
Location: Toronto, Ontario
Distribution: Fedora 10, centos
Posts: 181

Rep: Reputation: 30
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
 
Old 02-19-2007, 04:46 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Did you install the kernel-sources package for your kernel? Ndiswrapper requires that the sources be present for it to compile.
 
Old 02-20-2007, 12:08 AM   #3
bourne
Member
 
Registered: Feb 2006
Location: Toronto, Ontario
Distribution: Fedora 10, centos
Posts: 181

Original Poster
Rep: Reputation: 30
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?
 
Old 02-20-2007, 04:59 AM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
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.
 
Old 02-20-2007, 11:12 AM   #5
bourne
Member
 
Registered: Feb 2006
Location: Toronto, Ontario
Distribution: Fedora 10, centos
Posts: 181

Original Poster
Rep: Reputation: 30
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
 
Old 02-20-2007, 11:18 AM   #6
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
That's it - it'd be
Code:
yum install kernel-sources-<your kernel version>
and the install ndiswrapper.
 
Old 02-20-2007, 12:56 PM   #7
bourne
Member
 
Registered: Feb 2006
Location: Toronto, Ontario
Distribution: Fedora 10, centos
Posts: 181

Original Poster
Rep: Reputation: 30
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
 
Old 02-20-2007, 01:14 PM   #8
bourne
Member
 
Registered: Feb 2006
Location: Toronto, Ontario
Distribution: Fedora 10, centos
Posts: 181

Original Poster
Rep: Reputation: 30
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
 
Old 02-20-2007, 07:35 PM   #9
bourne
Member
 
Registered: Feb 2006
Location: Toronto, Ontario
Distribution: Fedora 10, centos
Posts: 181

Original Poster
Rep: Reputation: 30
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
 
  


Reply


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
Is it possible to use a GUI to compile new software (Source code)? narayanaras Linux - Newbie 10 12-18-2006 09:02 PM
Why can't FreeBSD compile anything from source code? mortal *BSD 5 03-21-2005 07:49 PM
how i compile a source code? nazib Linux - General 5 02-27-2005 09:13 AM
how to compile redhat 9.0 source code. wood Linux - General 5 09-16-2003 10:05 AM
How to compile source code... Grim Reaper Linux - Newbie 3 04-26-2002 11:28 AM

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

All times are GMT -5. The time now is 08:49 AM.

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