LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-27-2004, 06:23 PM   #1
esher2292
Member
 
Registered: May 2004
Location: Maryland,USA
Distribution: Red Hat 9.0, Knoppix 3.4
Posts: 94

Rep: Reputation: 15
Ndiswrapper with LinkSys WMP11 wireless PCI Card


Hi,
I unzipped the ndiswrapper version .7 package to a directory. I opened a terminal there and typed in "make install" and it gave me this error

[cac@localhost ndiswrapper-0.7]$ make install
make -C driver install
make[1]: Entering directory `/home/cac/wlan/ndiswrapper-0.7/driver'
cc -DDRV_VERSION=\"0.7\" -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.20-6/build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -O2 -c -o wrapper.o wrapper.c
make[1]: cc: Command not found
make[1]: *** [wrapper.o] Error 127
make[1]: Leaving directory `/home/cac/wlan/ndiswrapper-0.7/driver'
make: *** [install] Error 2
[cac@localhost ndiswrapper-0.7]$
[cac@localhost ndiswrapper-0.7]$



gurgle!! Every time I try a new program to set up my Linksys WMP11 wireless PCI card, I get some odd error....What is wrong w/me?!?!!?

Ok I have Red Hat Nine in case that helps......

Last edited by esher2292; 05-29-2004 at 09:20 AM.
 
Old 05-29-2004, 09:20 AM   #2
esher2292
Member
 
Registered: May 2004
Location: Maryland,USA
Distribution: Red Hat 9.0, Knoppix 3.4
Posts: 94

Original Poster
Rep: Reputation: 15
I'm sorry to be rude, but could someone please try to help me?
 
Old 05-29-2004, 09:38 AM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
Quote:
[cac@localhost ndiswrapper-0.7]$

Am I correct in assuming that cac is your normal user? If so, that is the cause of your trouble. Usually you need to be root to properly run make install. Once your done with make, use su -l to switch to root and then it should work.

<edit>
By the way, if you are compiling programs from source, you owe it to yourself to look at checkinstall . This program replaces the make install step and creates an RPM that you can then install/remove as you would any other RPM. I find it one of the most useful tools I've found as you get the benefits of a custom compile plus the ease of your usual package management. And you sill have to run it as root.
</edit>

Last edited by Hangdog42; 05-29-2004 at 09:54 AM.
 
Old 05-29-2004, 09:51 AM   #4
esher2292
Member
 
Registered: May 2004
Location: Maryland,USA
Distribution: Red Hat 9.0, Knoppix 3.4
Posts: 94

Original Poster
Rep: Reputation: 15
ok I'll try that then....i sure hope it works!
 
Old 05-29-2004, 10:02 AM   #5
esher2292
Member
 
Registered: May 2004
Location: Maryland,USA
Distribution: Red Hat 9.0, Knoppix 3.4
Posts: 94

Original Poster
Rep: Reputation: 15
well I tried running su -l and this is what I did after entering the password (w/errors)

[root@localhost root]# cd /home/cac/wlan/ndiswrapper-0.7
[root@localhost ndiswrapper-0.7]# make install
make -C driver install
make[1]: Entering directory `/home/cac/wlan/ndiswrapper-0.7/driver'
cc -DDRV_VERSION=\"0.7\" -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.20-6/ build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasin g -pipe -mpreferred-stack-boundary=2 -O2 -c -o wrapper.o wrapper.c
make[1]: cc: Command not found
make[1]: *** [wrapper.o] Error 127
make[1]: Leaving directory `/home/cac/wlan/ndiswrapper-0.7/driver'
make: *** [install] Error 2
[root@localhost ndiswrapper-0.7]#


i'll try that check install
 
Old 05-29-2004, 10:13 AM   #6
esher2292
Member
 
Registered: May 2004
Location: Maryland,USA
Distribution: Red Hat 9.0, Knoppix 3.4
Posts: 94

Original Poster
Rep: Reputation: 15
I tried CheckInstall and it gave me some error too. Something about gcc...

Should i try installing gcc?
 
Old 05-29-2004, 11:28 AM   #7
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
Um, you don't have gcc installed? If you don't, odds are you need to install more than just gcc. When you installed RH, did you install everything? If I remember correctly (it has been a long time since I used RH), there is a "programming" option that installs gcc and all of the necessary libraries. You're also going to need to install your kernel source code for ndiswrapper to compile. That should be available either on your RH disks or at the RH web site. Be sure to get the source code that matches your kernel version.
 
Old 05-29-2004, 12:06 PM   #8
esher2292
Member
 
Registered: May 2004
Location: Maryland,USA
Distribution: Red Hat 9.0, Knoppix 3.4
Posts: 94

Original Poster
Rep: Reputation: 15
Ok..I'm really not sure what to do. I don't know whether gcc is installed but I don't know anything about the kernel source code. Can you please direct me step by step?
 
Old 05-29-2004, 12:19 PM   #9
esher2292
Member
 
Registered: May 2004
Location: Maryland,USA
Distribution: Red Hat 9.0, Knoppix 3.4
Posts: 94

Original Poster
Rep: Reputation: 15
I tried installing checkinstall but I couldn't get it to install right. I tried make install and it wouldn't work. I had downloaded the .rpm version of ndiswrapper but for some reason after it checked dependances, the window closed.

I just got an idea. I'll go to install/remove programs and I'll try installing the programming option then try it again..

I saw devolpment tool and I checked it...I'm installing them now..I'll let you know the results

Last edited by esher2292; 05-29-2004 at 12:26 PM.
 
Old 05-29-2004, 12:46 PM   #10
esher2292
Member
 
Registered: May 2004
Location: Maryland,USA
Distribution: Red Hat 9.0, Knoppix 3.4
Posts: 94

Original Poster
Rep: Reputation: 15
Ok,
I installed the gcc packages. I then ran make install and ndiswrapper -i <pathtoinf>

Everything went fine,but when I ran modprobe ndiswrapper I got some errors.

[root@localhost root]# modprobe ndiswrapper
modprobe: Can't locate module ndiswrapper
[root@localhost root]#


I don't know the problem. I'm going to post a new post because I think that someone may be able to help without having to dig down into this post

Last edited by esher2292; 05-29-2004 at 12:51 PM.
 
Old 05-30-2004, 08:18 AM   #11
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
Quote:
modprobe: Can't locate module ndiswrapper
Odd, but I think that just means that the ndiswrapper module is not installed in the right place. On my system the ndiswrapper.ko file is in the /lib/modules/kernelversion/misc directory.
 
Old 05-30-2004, 08:56 AM   #12
esher2292
Member
 
Registered: May 2004
Location: Maryland,USA
Distribution: Red Hat 9.0, Knoppix 3.4
Posts: 94

Original Poster
Rep: Reputation: 15
How do I find it? I'll try searching for it. If I find it should I move it then try it again?
 
Old 05-30-2004, 09:24 AM   #13
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
Actually, if you get into the directory you compiled ndiswrapper there should be a drivers sub-directory. If you open Makefile in a text editor, you should be able to find what directory it was installed to. Otherwise you can use the find command to locate the file. If I'm reading things correctly, make install should have put it in the correct place, but maybe something else happened.
 
Old 05-30-2004, 09:33 AM   #14
esher2292
Member
 
Registered: May 2004
Location: Maryland,USA
Distribution: Red Hat 9.0, Knoppix 3.4
Posts: 94

Original Poster
Rep: Reputation: 15
It said that it was installed to the same place as yours. But when I look in that directory, there is no subdirectory called misc...

what to do?

Last edited by esher2292; 05-30-2004 at 09:41 AM.
 
Old 05-30-2004, 09:46 AM   #15
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
Well, it needs to be some place that modprobe knows to look. On a Slackware system that is in the /lib/modules/kernelversion directory. However, Redhat may differ so you may want to go look on your system where the modules reside. Once you find that, copy the compiled ndiswrapper module into a folder in that directory (mine is in a misc directory). You also need to edit the modules.dep file and enter a line pointing to the exact location of the file. In my system there is a line like this:

/lib/modules/2.6.4/misc/ndiswrapper.ko
 
  


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
ndiswrapper errors... djcowan Linux - Wireless Networking 1 10-17-2005 07:49 AM
NDisWrapper and Red Hat 9.0 Errors JamesProctor Linux - Wireless Networking 3 03-11-2005 07:46 AM
Ndiswrapper 1.0 make install errors on FC3 kernel 2.6.10-1.760_FC3 with BCM 4304 mikevicious Linux - Wireless Networking 5 02-15-2005 08:41 PM
Ndiswrapper Compile Errors ne2007ber Linux - Software 1 01-09-2005 02:33 PM
Install of ndiswrapper errors Biscram Linux - Wireless Networking 3 10-21-2004 03:03 PM


All times are GMT -5. The time now is 05:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration