Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
ndiswrapper on HP laptop (zd8110us) on FC3 assist, pls
Aloha everyone,
I just purchased an HP Pavilion zd8110us laptop, which has a built-in Broadcom wireless NIC. I installed Fedora Core 3 and attempted to install the latest version of ndiswrapper, but ran into some problems. I then, because I have lots of time and want to do this right, did a reinstall of FC3 and used an older version of ndiswrapper (the 1.2 version), but ran into somewhat the same problem. I can't figure out how to correct it and would like to know if anyone has any ideas. I put the ndiswrapper file in /usr/local/bin and unzipped it. The 'make distclean' command presented no errors, so I went to the next step. This time, it appears that a gcc error occured. This is the output:
[root@localhost ndiswrapper-1.2]# make
make -C driver
make[1]: entering direstory '/usr/local/bin/ndiswrapper-1.2/driver'
make -C /lib/modules/2.6.9-1.667.stk16/build SUBDIRS=/usr/local/bin/ndiswrapper-1.2/driver \
NDISWRAPPER_VERSON =1.2 \
EXTRA VERSION= modules
/lib/modules/2.6.9-1.667.stk16/build/scripts/gcc-version.sh: line 11: gcc: command not found
/lib/modules/2.6.9-1.667.stk16/build/scripts/gcc-version.sh: line 12: gcc: command not found
make[2]: Entering directory '/lib/modules/2.6.9-1.667/build'
CC [M] /usr/local/bin/ndiswrapper-1.2/driver/hal.o
/bin/sh: gcc: command not found
make[3]: *** [/usr/local/bin/ndiswrapper-1.2/driver/hal.0] Error 127
make[2]: *** /_module_/usr/local/bin/ndiswrapper-1.2/driver] Error 2
make[2]: Leaving directory '/lib/modules/2.6.9-1.667.stk16/build'
make[1]: *** [default] Error 2
make[1]: Leaving directory '/usr/local/bin/ndiswrapper-1.2/driver'
make: *** [all] Error 2
I verified that the 'build' directory existed in the path given above, then opened the gcc-version.sh file to look at the contents, which are:
#!/bin/sh
#
# gcc-version gcc-command
#
# Prints the gcc versoin of 'gcc-command' in a cononical 4-
digit form
# such as '0295' for gcc-2.95, '0303' for gcc-3.3, etc.
#
The MAJOR and MINOR lines are lines 11 and 12, respectively. I don't know C, and am also not sure of what is expected, but those lines appear pretty much straight forward. I'm not sure what the 'command not found' portion from the 'make' command above is really talking about. I got ndiswrapper working with a D-Link PCMCIA care on my old laptop (with the 1.2 version of ndiswrapper) and was hoping for somewhat the same result here.
The other question I have is concerning the '/bin/sh gcc: command not found' line in the output from the 'make' command above. GCC is installed on the laptop, so what is that line all about? This is really confusing for me and if anyone has any idea of where I should look, or what I should do, to correct these errors, I would be forever in your debt.
Apparently you're using sh shell. Type "gcc" in the command line to see if the command gcc is recognized. If it is, I don't understand the line /bin/sh: gcc command not found in your output!
If the command line says also command not found, then type "where is gcc", this will give you the place where gcc is in your filesystem. Then add the correct path in your shell environment variable
Thanks for the quick response. The 'gcc' command was NOT found, so I need to add it to the environment. The question is where. I use bash, so I think it should probably be in the .bash_profile file, but I'm not sure. How do I add it to the shell environment variable?
I tried your suggestion, but even though the gcc path was reflected in the PATH statement, I still got 'command not found' when I typed in 'gcc'. I decided to start over again from scrath and actually look at what was being installed, instead of just taking the minimal install option. This time, I installed some packages not installed previously, and everything is working thus far.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.