LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-28-2005, 04:31 PM   #1
weezerisrock
LQ Newbie
 
Registered: Sep 2005
Distribution: suse 9.1
Posts: 7

Rep: Reputation: 0
compiling source to get ndiswrapper to work?


Ok first, I am brand spankin new to Linux having only read a couple of articles on it in the past. I am using SuSE personal 9.1 although I have already added some of the GNU commands from the ftp site from SuSE.

I am trying to get my linksys pcmcia card to work and it seems like ndiswrapper will do the trick.

The catch is I am having a heck of a time trying to install ndiswrapper. I read their online install file which told me how to install. However I am getting an error about my kernel when I try to install it. Here is the error:

"Can't find kernel sources in /lib/modules/2.6.5-7.201-default/build;
give the path to kernel sources with KSRC=<path> argument to make
make[1]: *** [prereq_check] Error 1"

so I am not sure what to do. I looked up kernel in yast 2 and found one that says kernel source, but I don't know if I am supposed to install it or if there is anything I am supposed to do after I install it. Compile it maybe? Not sure how to do that either.

I have been trying to do this completely on my own up until this point, but the frustration is starting to give me a headace. So I am asking for help. Thank you in advance.

=w=
 
Old 09-28-2005, 06:27 PM   #2
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 48
I don't know about Suse very much, but I think you need to compile your kernel. IIRC ndiswrapper won't work from source w/ a name for your kernel, you just need the number. Try looking in YaSt for an ndiswrapper kernel module, there's one in debian. Try that and see if it works.
 
Old 09-28-2005, 11:53 PM   #3
johndoe0028
Member
 
Registered: Jun 2005
Location: CA, USA
Distribution: Gentoo
Posts: 165

Rep: Reputation: 30
I have used Mandrake 10.1 and am using Fedora Core 4. I have touched on SUsE. I am using ndiswrapper right now.


All I had to do was install the kernel sources. That can usually be done with a kernel-source-version RPM. After that, I just made sure there was a link to the kernel sources in /lib/modules/[kernel-version]/build . If not, I made one with:

ln -s [directory of kernel sources] /lib/modules/[kernel-version]/build

usually, the kernel sources are in /usr/src/linux-[kernel-version]

After that, copile and install of ndiswrapper went just fine.
 
Old 09-29-2005, 09:16 AM   #4
weezerisrock
LQ Newbie
 
Registered: Sep 2005
Distribution: suse 9.1
Posts: 7

Original Poster
Rep: Reputation: 0
Thank you I will try these suggestions out tonite!

=w=
 
Old 09-29-2005, 12:10 PM   #5
johndoe0028
Member
 
Registered: Jun 2005
Location: CA, USA
Distribution: Gentoo
Posts: 165

Rep: Reputation: 30
Ok! Hope it works for ya!
 
Old 09-29-2005, 03:21 PM   #6
weezerisrock
LQ Newbie
 
Registered: Sep 2005
Distribution: suse 9.1
Posts: 7

Original Poster
Rep: Reputation: 0
ok. I know I am a newb.

I went looking for kernel rpms today and had problems finding them. According to ndiswrapper's instructions I need at least kernel version 2.6.6 or higher. I tried running some from rpmfind but I got major consistency errors when I tried to run the rpm. Do I have to have a suse specific kernel or can I use any kernel? I also tried one closer to my specific kernel and got the error : kernel-um.

I currently have 2.6.4-52 smp. Any help would be greatly appriciated!

thanks,
=w=
 
Old 09-29-2005, 07:24 PM   #7
johndoe0028
Member
 
Registered: Jun 2005
Location: CA, USA
Distribution: Gentoo
Posts: 165

Rep: Reputation: 30
Just use the ones that came in YaST.

For me, all the RPMs were in the sofware management tool.
 
Old 09-30-2005, 01:34 AM   #8
weezerisrock
LQ Newbie
 
Registered: Sep 2005
Distribution: suse 9.1
Posts: 7

Original Poster
Rep: Reputation: 0
ok i installed the source files from yast. ndiswrapper said i had to have kernel version 2.6.6 or 2.6.4 w/source. Now when I type make and hit enter I get this error:

make -C driver
make[1]: Entering directory `/home/ryan/programs/extracted/ndiswrapper/ndiswrapper-1.4rc1/driver'
make -C /lib/modules/2.6.4-52-smp/build SUBDIRS=/home/ryan/programs/extracted/ndiswrapper/ndiswrapper-1.4rc1/driver \
DRIVER_VERSION=1.4rc1 \
UTILS_VERSION=1.2 modules
/usr/src/linux-2.6.4-52/scripts/gcc-version.sh: line 1: gcc: command not found
/usr/src/linux-2.6.4-52/scripts/gcc-version.sh: line 1: gcc: command not found
make[2]: Entering directory `/usr/src/linux-2.6.4-52'
CHK include/linux/version.h
*** Warning: Overriding SUBDIRS on the command line can cause
*** inconsistencies
HOSTCC scripts/basic/fixdep
/bin/sh: line 1: gcc: command not found
make[3]: *** [scripts/basic/fixdep] Error 127
make[2]: *** [scripts_basic] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.4-52'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/ryan/programs/extracted/ndiswrapper/ndiswrapper-1.4rc1/driver'
make: *** [all] Error 2


Not sure what to make of this. Apparently come command cannot be found?

Any help would be greatly appriciated. I would like to get this wireless off the ground.

Thanks,
=w=
 
Old 09-30-2005, 01:09 PM   #9
johndoe0028
Member
 
Registered: Jun 2005
Location: CA, USA
Distribution: Gentoo
Posts: 165

Rep: Reputation: 30
Looks like you need GCC, the GNU C and C++ copiler-thingy.

URL: http://gcc.gnu.org/

The instructions for downloading and installing are on the page.
 
Old 09-30-2005, 01:12 PM   #10
weezerisrock
LQ Newbie
 
Registered: Sep 2005
Distribution: suse 9.1
Posts: 7

Original Poster
Rep: Reputation: 0
wonderful. Thank you I will give it another shot tonite!
 
Old 09-30-2005, 05:51 PM   #11
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 48
Quote:
Originally posted by johndoe0028
Looks like you need GCC, the GNU C and C++ copiler-thingy.

URL: http://gcc.gnu.org/

The instructions for downloading and installing are on the page.
you know what? you're absolutely right. I feel stupid...I probably should have read the error message. Sorry to have lead the original poster astray
 
  


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
compiling apt from source - where's the source? stynhx9000 Ubuntu 2 12-01-2005 07:32 AM
anyone still have ndiswrapper 1.0 source? antistatic Linux - Wireless Networking 4 10-21-2005 07:44 AM
kernel-source and ndiswrapper simeandrews Fedora 1 07-31-2005 01:06 AM
compiling a module (ndiswrapper) r.stiltskin Debian 4 10-23-2004 02:14 PM
compiling software from source...how do i delete the folder w/ source? webazoid Linux - Software 2 07-01-2004 09:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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