Fedora Linux Support Community & Resources Center
  #1  
Old 31st December 2005, 08:51 AM
Mailanias Offline
Registered User
 
Join Date: Dec 2005
Posts: 35
Trying to install ndiswrapper

Hi I'm obviously new. I downloaded my card driver and ndiswrapper 1.7 to folder in my home directory. I unpacked both files.I get this error when I use make and make install. I'm using fc4 2.6.14-1.
[root@localhost ndiswrapper-1.7]# make
make -C driver
make[1]: Entering directory `/home/shane/ndiswrapper-1.7/driver'
make -C /lib/modules/2.6.14-1.1653_FC4/build SUBDIRS=/home/shane/ndiswrapper-1.7/driver \
DRIVER_VERSION=1.7
/usr/src/kernels/2.6.14-1.1653_FC4-i686/scripts/gcc-version.sh: line 11: gcc: command not found
/usr/src/kernels/2.6.14-1.1653_FC4-i686/scripts/gcc-version.sh: line 12: gcc: command not found
make[2]: gcc: Command not found
make[2]: Entering directory `/usr/src/kernels/2.6.14-1.1653_FC4-i686'
CC [M] /home/shane/ndiswrapper-1.7/driver/hal.o
/bin/sh: gcc: command not found
make[3]: *** [/home/shane/ndiswrapper-1.7/driver/hal.o] Error 127
make[2]: *** [_module_/home/shane/ndiswrapper-1.7/driver] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.14-1.1653_FC4-i686'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/shane/ndiswrapper-1.7/driver'
make: *** [all] Error 2
[root@localhost ndiswrapper-1.7]# make install
make -C driver install
make[1]: Entering directory `/home/shane/ndiswrapper-1.7/driver'
make -C /lib/modules/2.6.14-1.1653_FC4/build SUBDIRS=/home/shane/ndiswrapper-1.7/driver \
DRIVER_VERSION=1.7
/usr/src/kernels/2.6.14-1.1653_FC4-i686/scripts/gcc-version.sh: line 11: gcc: command not found
/usr/src/kernels/2.6.14-1.1653_FC4-i686/scripts/gcc-version.sh: line 12: gcc: command not found
make[2]: gcc: Command not found
make[2]: Entering directory `/usr/src/kernels/2.6.14-1.1653_FC4-i686'
CC [M] /home/shane/ndiswrapper-1.7/driver/hal.o
/bin/sh: gcc: command not found
make[3]: *** [/home/shane/ndiswrapper-1.7/driver/hal.o] Error 127
make[2]: *** [_module_/home/shane/ndiswrapper-1.7/driver] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.14-1.1653_FC4-i686'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/shane/ndiswrapper-1.7/driver'
make: *** [install] Error 2
Reply With Quote
  #2  
Old 31st December 2005, 01:55 PM
ieuuk's Avatar
ieuuk Offline
Registered User
 
Join Date: Oct 2004
Location: uk
Age: 26
Posts: 705
it looks like dag has an rpm for ndiswrapper... so you can cofigure yum to look at the dag repo and then yum will install it and any dependicies it needs
__________________
ieuuk :D

Registered Linux User: #373024
Reply With Quote
  #3  
Old 31st December 2005, 02:24 PM
mndar's Avatar
mndar Offline
Registered User
 
Join Date: Feb 2005
Posts: 1,101
You could use a rpm if available.
Anyway, looking at the output you have posted, its clear that you need the Development Packages installed. run system-config-packages
Reply With Quote
  #4  
Old 31st December 2005, 03:32 PM
pparks1's Avatar
pparks1 Offline
Registered User
 
Join Date: Mar 2004
Location: Westland, Michigan
Age: 38
Posts: 2,317
As an alternate method for what mndar wrote;

you can run
yum grouplist (find the group you want to install, in this case Development Tools)

and then run
yum groupinstall "Development Tools"
__________________
RHCE and MCSE systems administrator
Registered Linux User #375155 For More Info or to register yourself

My Linux box is:
Ubuntu 8.04, Antec Sonata II case with 450-watt PS, AMD 64 X2 4600+ (65 watt), 4GB DDR2 800 RAM, 18X Lite-On DVD burner, Asus M2NPV-VM, Nvidia GeForce 7600GT (256MB), 320GB Western Digital SATA 3.0Gbps, Logitech MX-310, Dell 18" ultrasharp LCD, Microsoft Natural Ergonomic Keyboard 4000 and 2.1 Boston Acoustics sound system..
Reply With Quote
  #5  
Old 31st December 2005, 08:58 PM
Mailanias Offline
Registered User
 
Join Date: Dec 2005
Posts: 35
I have dag setup as a repository but yum didn't find it there. Maybe I should have choose livina instead of freshrpm as my repository. I did the system-config-packages and it brought up the add remove interface... I did the group list and group install and it's installing the "development tools" now. I read that it is cleaner if I make my own rpms from the ndiswrapper file by typing make and then make rpm. Should I do this or now try the make and then the make install again. thanks for the quick response. I didn't expect to hear back so fast.
Reply With Quote
  #6  
Old 31st December 2005, 10:31 PM
Mailanias Offline
Registered User
 
Join Date: Dec 2005
Posts: 35
I installed the development tools and then cd typed make and make install.
[root@localhost ndiswrapper-1.7]# make
make -C driver
make[1]: Entering directory `/home/shane/ndiswrapper-1.7/driver'
make -C /lib/modules/2.6.14-1.1653_FC4/build SUBDIRS=/home/shane/ndiswrapper-1.7/driver \
DRIVER_VERSION=1.7
make[2]: Entering directory `/usr/src/kernels/2.6.14-1.1653_FC4-i686'
CC [M] /home/shane/ndiswrapper-1.7/driver/hal.o
CC [M] /home/shane/ndiswrapper-1.7/driver/iw_ndis.o
CC [M] /home/shane/ndiswrapper-1.7/driver/loader.o
CC [M] /home/shane/ndiswrapper-1.7/driver/misc_funcs.o
CC [M] /home/shane/ndiswrapper-1.7/driver/ndis.o
CC [M] /home/shane/ndiswrapper-1.7/driver/ntoskernel.o
CC [M] /home/shane/ndiswrapper-1.7/driver/ntoskernel_io.o
CC [M] /home/shane/ndiswrapper-1.7/driver/pe_linker.o
CC [M] /home/shane/ndiswrapper-1.7/driver/pnp.o
CC [M] /home/shane/ndiswrapper-1.7/driver/proc.o
CC [M] /home/shane/ndiswrapper-1.7/driver/wrapndis.o
CC [M] /home/shane/ndiswrapper-1.7/driver/wrapper.o
CC [M] /home/shane/ndiswrapper-1.7/driver/usb.o
CC [M] /home/shane/ndiswrapper-1.7/driver/divdi3.o
LD [M] /home/shane/ndiswrapper-1.7/driver/ndiswrapper.o
Building modules, stage 2.
MODPOST
CC /home/shane/ndiswrapper-1.7/driver/ndiswrapper.mod.o
LD [M] /home/shane/ndiswrapper-1.7/driver/ndiswrapper.ko
make[2]: Leaving directory `/usr/src/kernels/2.6.14-1.1653_FC4-i686'


*** WARNING: Kernel is compiled with 4K stack size option (CONFIG_4KSTACKS); many Windows drivers will not work with this option enabled. Disable CONFIG_4KSTACKS option, recompile and install kernel


make[1]: Leaving directory `/home/shane/ndiswrapper-1.7/driver'
make -C utils
make[1]: Entering directory `/home/shane/ndiswrapper-1.7/utils'
gcc -g -Wall -DUTILS_VERSION=\"1.7\" -o loadndisdriver loadndisdriver.c
make[1]: Leaving directory `/home/shane/ndiswrapper-1.7/utils'
[root@localhost ndiswrapper-1.7]# make install
make -C driver install
make[1]: Entering directory `/home/shane/ndiswrapper-1.7/driver'
make -C /lib/modules/2.6.14-1.1653_FC4/build SUBDIRS=/home/shane/ndiswrapper-1.7/driver \
DRIVER_VERSION=1.7
make[2]: Entering directory `/usr/src/kernels/2.6.14-1.1653_FC4-i686'
Building modules, stage 2.
MODPOST
make[2]: Leaving directory `/usr/src/kernels/2.6.14-1.1653_FC4-i686'


*** WARNING: Kernel is compiled with 4K stack size option (CONFIG_4KSTACKS); many Windows drivers will not work with this option enabled. Disable CONFIG_4KSTACKS option, recompile and install kernel


mkdir -p /lib/modules/2.6.14-1.1653_FC4/misc
install -m 0644 ndiswrapper.ko /lib/modules/2.6.14-1.1653_FC4/misc
/sbin/depmod -a
make[1]: Leaving directory `/home/shane/ndiswrapper-1.7/driver'
make -C utils install
make[1]: Entering directory `/home/shane/ndiswrapper-1.7/utils'
install -D -m 755 loadndisdriver /sbin/loadndisdriver
install -D -m 755 ndiswrapper /usr/sbin/ndiswrapper
install -D -m 755 ndiswrapper-buginfo /usr/sbin/ndiswrapper-buginfo

NOTE: Windows driver configuration file format has changed since 1.5. You must re-install Windows drivers if they were installed before.
make[1]: Leaving directory `/home/shane/ndiswrapper-1.7/utils'
mkdir -p -m 0755 /usr/share/man/man8
install -m 644 ndiswrapper.8 /usr/share/man/man8
So it looks like ndiswrapper is installed now. [root@localhost temp]# whereis ndiswrapper
ndiswrapper: /usr/sbin/ndiswrapper /usr/share/man/man8/ndiswrapper.8
when I go to the directory where the driver is located and type [root@localhost temp]# ndiswrapper -i bcmw15.inf
bash: ndiswrapper: command not found
am I doing this wrong?
Reply With Quote
  #7  
Old 1st January 2006, 01:19 AM
Mailanias Offline
Registered User
 
Join Date: Dec 2005
Posts: 35
Still having trouble with ndiswrapper

here is my output again for trying to install ndiswrapper and my card drivers. any help is greatly appreciated as I am super new and need all the help I can get.
[root@localhost ndiswrapper-1.7]# make distclean
make -C driver clean
make[1]: Entering directory `/home/shane/ndiswrapper-1.7/driver'
rm -rf ndiswrapper.ko ndiswrapper.o hal.o iw_ndis.o loader.o misc_funcs.o ndis.o ntoskernel.o ntoskernel_io.o pe_linker.o pnp.o proc.o wrapndis.o wrapper.o usb.o divdi3.o usb.o x86_64_stubs.o \
divdi3.o .*.ko.cmd .*.o.cmd ndiswrapper.mod.[oc] *~ .tmp_versions
make[1]: Leaving directory `/home/shane/ndiswrapper-1.7/driver'
make -C utils clean
make[1]: Entering directory `/home/shane/ndiswrapper-1.7/utils'
rm -f *~ *.o loadndisdriver
make[1]: Leaving directory `/home/shane/ndiswrapper-1.7/utils'
rm -f *~
rm -fr ndiswrapper-1.7 ndiswrapper-1.7.tar.gz *.deb patch-stamp
make -C driver distclean
make[1]: Entering directory `/home/shane/ndiswrapper-1.7/driver'
rm -rf ndiswrapper.ko ndiswrapper.o hal.o iw_ndis.o loader.o misc_funcs.o ndis.o ntoskernel.o ntoskernel_io.o pe_linker.o pnp.o proc.o wrapndis.o wrapper.o usb.o divdi3.o usb.o x86_64_stubs.o \
divdi3.o .*.ko.cmd .*.o.cmd ndiswrapper.mod.[oc] *~ .tmp_versions
rm -f *_exports.h .\#* x86_64_stubs.h
make[1]: Leaving directory `/home/shane/ndiswrapper-1.7/driver'
make -C utils distclean
make[1]: Entering directory `/home/shane/ndiswrapper-1.7/utils'
rm -f *~ *.o loadndisdriver
rm -f .\#*
make[1]: Leaving directory `/home/shane/ndiswrapper-1.7/utils'
rm -f .\#*
[root@localhost ndiswrapper-1.7]# make
make -C driver
make[1]: Entering directory `/home/shane/ndiswrapper-1.7/driver'
make -C /lib/modules/2.6.14-1.1653_FC4/build SUBDIRS=/home/shane/ndiswrapper-1.7/driver \
DRIVER_VERSION=1.7
make[2]: Entering directory `/usr/src/kernels/2.6.14-1.1653_FC4-i686'
LD /home/shane/ndiswrapper-1.7/driver/built-in.o
CC [M] /home/shane/ndiswrapper-1.7/driver/hal.o
CC [M] /home/shane/ndiswrapper-1.7/driver/iw_ndis.o
CC [M] /home/shane/ndiswrapper-1.7/driver/loader.o
CC [M] /home/shane/ndiswrapper-1.7/driver/misc_funcs.o
CC [M] /home/shane/ndiswrapper-1.7/driver/ndis.o
CC [M] /home/shane/ndiswrapper-1.7/driver/ntoskernel.o
CC [M] /home/shane/ndiswrapper-1.7/driver/ntoskernel_io.o
CC [M] /home/shane/ndiswrapper-1.7/driver/pe_linker.o
CC [M] /home/shane/ndiswrapper-1.7/driver/pnp.o
CC [M] /home/shane/ndiswrapper-1.7/driver/proc.o
CC [M] /home/shane/ndiswrapper-1.7/driver/wrapndis.o
CC [M] /home/shane/ndiswrapper-1.7/driver/wrapper.o
CC [M] /home/shane/ndiswrapper-1.7/driver/usb.o
CC [M] /home/shane/ndiswrapper-1.7/driver/divdi3.o
LD [M] /home/shane/ndiswrapper-1.7/driver/ndiswrapper.o
Building modules, stage 2.
MODPOST
CC /home/shane/ndiswrapper-1.7/driver/ndiswrapper.mod.o
LD [M] /home/shane/ndiswrapper-1.7/driver/ndiswrapper.ko
make[2]: Leaving directory `/usr/src/kernels/2.6.14-1.1653_FC4-i686'


*** WARNING: Kernel is compiled with 4K stack size option (CONFIG_4KSTACKS); many Windows drivers will not work with this option enabled. Disable CONFIG_4KSTACKS option, recompile and install kernel


make[1]: Leaving directory `/home/shane/ndiswrapper-1.7/driver'
make -C utils
make[1]: Entering directory `/home/shane/ndiswrapper-1.7/utils'
gcc -g -Wall -DUTILS_VERSION=\"1.7\" -o loadndisdriver loadndisdriver.c
make[1]: Leaving directory `/home/shane/ndiswrapper-1.7/utils'
[root@localhost ndiswrapper-1.7]# make install
make -C driver install
make[1]: Entering directory `/home/shane/ndiswrapper-1.7/driver'
make -C /lib/modules/2.6.14-1.1653_FC4/build SUBDIRS=/home/shane/ndiswrapper-1.7/driver \
DRIVER_VERSION=1.7
make[2]: Entering directory `/usr/src/kernels/2.6.14-1.1653_FC4-i686'
Building modules, stage 2.
MODPOST
make[2]: Leaving directory `/usr/src/kernels/2.6.14-1.1653_FC4-i686'


*** WARNING: Kernel is compiled with 4K stack size option (CONFIG_4KSTACKS); many Windows drivers will not work with this option enabled. Disable CONFIG_4KSTACKS option, recompile and install kernel


mkdir -p /lib/modules/2.6.14-1.1653_FC4/misc
install -m 0644 ndiswrapper.ko /lib/modules/2.6.14-1.1653_FC4/misc
/sbin/depmod -a
make[1]: Leaving directory `/home/shane/ndiswrapper-1.7/driver'
make -C utils install
make[1]: Entering directory `/home/shane/ndiswrapper-1.7/utils'
install -D -m 755 loadndisdriver /sbin/loadndisdriver
install -D -m 755 ndiswrapper /usr/sbin/ndiswrapper
install -D -m 755 ndiswrapper-buginfo /usr/sbin/ndiswrapper-buginfo

NOTE: Windows driver configuration file format has changed since 1.5. You must re-install Windows drivers if they were installed before.
make[1]: Leaving directory `/home/shane/ndiswrapper-1.7/utils'
mkdir -p -m 0755 /usr/share/man/man8
install -m 644 ndiswrapper.8 /usr/share/man/man8
[root@localhost ndiswrapper-1.7]# cd /home/shane/temp/
[root@localhost temp]# ls
AegisE2.dll bcmwlcpl.cpl data1.cab MFC42.DLL setup.iss
AegisE5.dll bcmwld2k.exe data1.hdr MFC42U.DLL Version.txt
AegisI2.exe bcmwlhlp.chm data2.cab MSVCP60.DLL wltray.exe
AegisI5.exe bcmwlhoa.ini DellInfo.exe MSVCRT.DLL wltrynt.dll
bcm43xx.cat bcmwlhom.exe dellinst.exe R102320.EXE wltrysvc.exe
BCMLogon.dll bcmwlhom.ini ikernel.ex_ README.txt
bcmwl5a.ini bcmwlntp.sys is.exe setup.exe
bcmwl5.inf bcmwltry.exe launcher.ini Setup.ini
bcmwl5.sys bcmwlu00.exe layout.bin setup.inx
[root@localhost temp]# ndiswrapper -i bcmwl5.inf
bash: ndiswrapper: command not found
[root@localhost temp]#
Reply With Quote
  #8  
Old 1st January 2006, 02:33 AM
mndar's Avatar
mndar Offline
Registered User
 
Join Date: Feb 2005
Posts: 1,101
You'll have to use
/usr/sbin/ndiswrapper -i bcmwl5.inf
Reply With Quote
  #9  
Old 1st January 2006, 02:39 AM
Mailanias Offline
Registered User
 
Join Date: Dec 2005
Posts: 35
was not able to find a suitable rpm for fc4 at dag, dries, or freshrpms
Reply With Quote
  #10  
Old 1st January 2006, 02:44 AM
Mailanias Offline
Registered User
 
Join Date: Dec 2005
Posts: 35
This is where I am..
[root@localhost sbin]# ndiswrapper -i bcmwl5.inf
bash: ndiswrapper: command not found
[root@localhost sbin]# /usr/sbin/ndiswrapper -i bcmwl5.inf
Installing bcmwl5
couldn't copy bcmwl5.inf at /usr/sbin/ndiswrapper line 131.
[root@localhost sbin]# cd/home/shane/temp
bash: cd/home/shane/temp: No such file or directory
[root@localhost sbin]# cd
[root@localhost ~]# cd /home/shane/temp
[root@localhost temp]# /usr/sbin/ndiswrapper -i bcmwl5.inf
bcmwl5 is already installed. Use -e to remove it
[root@localhost temp]# ndiswrapper -l
bash: ndiswrapper: command not found
[root@localhost temp]#
Reply With Quote
  #11  
Old 1st January 2006, 05:03 AM
Mailanias Offline
Registered User
 
Join Date: Dec 2005
Posts: 35
This is where I am.. I did the usr/sbin/ndiswrapper -i bcmwl5.inf and this is what I get
[root@localhost sbin]# ndiswrapper -i bcmwl5.inf
bash: ndiswrapper: command not found
[root@localhost sbin]# /usr/sbin/ndiswrapper -i bcmwl5.inf
Installing bcmwl5
couldn't copy bcmwl5.inf at /usr/sbin/ndiswrapper line 131.
[root@localhost sbin]# cd/home/shane/temp
bash: cd/home/shane/temp: No such file or directory
[root@localhost sbin]# cd
[root@localhost ~]# cd /home/shane/temp
[root@localhost temp]# /usr/sbin/ndiswrapper -i bcmwl5.inf
bcmwl5 is already installed. Use -e to remove it
[root@localhost temp]# ndiswrapper -l
bash: ndiswrapper: command not found
[root@localhost temp]#
Reply With Quote
  #12  
Old 1st January 2006, 06:29 AM
bytesniper's Avatar
bytesniper Offline
Registered User
 
Join Date: May 2005
Location: Abq, NM
Age: 35
Posts: 1,158
Quote:
This is where I am.. I did the usr/sbin/ndiswrapper -i bcmwl5.inf and this is what I get
[root@localhost sbin]# ndiswrapper -i bcmwl5.inf
bash: ndiswrapper: command not found
1) when you su to root use su - (yes with the dash) so that it makes it a login shell so that it executes root's bashrc setting its environment variables (paths, etc, so that you wont have to type /sbin or /usr/sbin before everything)
2) in the directory where you exracted out the windows drivers look for these 2 files: bcmwl5.inf and bcmwl5.sys. cp or mv them into their own directory so that they are the only files present in that dir and then run ndiswrapper -i bcmwl5.inf. it will work.

from there you should be able to:
ndiswrapper -l to see that its been installed correctly. if card inserted you should see driver present, hardware present.
depmod -a and as long as you get no errors do a modprobe ndiswrapper to insert the module.

make sure you have wireless-tools installed. (rpm -qa | grep wireless-tools) and if not then run yum install wireless-tools.

after wireless-tools is installed then you can run iwconfig to make sure it was all successful. consult man iwconfig ot the ndiswrapper wiki for configuration info from there.

if you are connecting to you own wireless network i would strongly recommend this: How to use WPA with ndiswrapper

hth,
joseph
__________________
I am root. If you see me laughing you better have a backup.

Last edited by bytesniper; 1st January 2006 at 06:33 AM.
Reply With Quote
  #13  
Old 1st January 2006, 05:20 PM
blue13130 Offline
Registered User
 
Join Date: May 2005
Location: London, ON, Canada
Age: 32
Posts: 312
You can get the ndiswrapper RPM from the livna repo. You can setup yum to install it for you or just download the RPMs if you don't have the livna repo setup

Browse the Livna repo
http://rpm.livna.org/fedora/4/i386/RPMS.lvn/

You will need two RPMs to properly install it, the program and the kernel module
PROGRAM - http://rpm.livna.org/fedora/4/i386/R...n.1.4.i386.rpm
MODULE (assuming you are using the latest kernel and i686 arch) - http://rpm.livna.org/fedora/4/i386/R...n.1.4.i686.rpm

Hope this helps,
Sanjay

Happy New Year from Canada!
Reply With Quote
  #14  
Old 1st January 2006, 06:50 PM
Mailanias Offline
Registered User
 
Join Date: Dec 2005
Posts: 35
Thanks but I am using the freshrpm repo and there are a warnings not to mix livna and freshrpms
Reply With Quote
  #15  
Old 1st January 2006, 07:08 PM
Mailanias Offline
Registered User
 
Join Date: Dec 2005
Posts: 35
Thanks.. I think that would have worked but it says invaid driver... I got it from the dell support page for my system. It's a broadcom truemobile 1450.
.[shane@localhost ~]$ su -
Password:
[root@localhost ~]# cd/home/shane
-bash: cd/home/shane: No such file or directory
[root@localhost ~]# cd /home/shane/windows-drivers
[root@localhost windows-drivers]# ndiswrapper -i bcmwl5.inf
bcmwl5 is already installed. Use -e to remove it
[root@localhost windows-drivers]# ndiswrapper -l
Installed drivers:
bcmwl5 invalid driver!
[root@localhost windows-drivers]#
Reply With Quote
Reply

Tags
install, ndiswrapper

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
im trying to install ndiswrapper plz help mike123 Using Fedora 12 24th October 2007 10:32 PM
can't install ndiswrapper twilight.lair Using Fedora 25 5th September 2007 11:02 PM
How do I install ndiswrapper? Fogga Using Fedora 4 30th July 2006 09:18 PM
I am having trouble getting a new kernel to install so that I can install ndiswrapper Toad Leg Using Fedora 3 6th May 2006 11:23 PM
ndiswrapper install dparenti Using Fedora 12 4th May 2006 07:16 PM


Current GMT-time: 21:31 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat