LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   still struggling with ndiswrapper (https://www.linuxquestions.org/questions/linux-wireless-networking-41/still-struggling-with-ndiswrapper-429429/)

dlennon 03-28-2006 05:49 PM

still struggling with ndiswrapper
 
I finally got past make not finding the source kernel, but now I get this error

Plain make with debug
[root@localhost ndiswrapper-1.11]# make debug=3
make -C driver
make[1]: Entering directory `/root/ndiswrapper-1.11/driver'
make -C /lib/modules/2.6.16-1.2080_FC5/build SUBDIRS=/root/ndiswrapper-1.11/driver \
DRIVER_VERSION=1.11
/usr/src/kernels/2.6.16-1.2080_FC5-i686/scripts/gcc-version.sh: line 11: gcc: command not found
/usr/src/kernels/2.6.16-1.2080_FC5-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.16-1.2080_FC5-i686'
LD /root/ndiswrapper-1.11/driver/built-in.o
/bin/sh: ar: command not found
make[3]: *** [/root/ndiswrapper-1.11/driver/built-in.o] Error 127
make[2]: *** [_module_/root/ndiswrapper-1.11/driver] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.16-1.2080_FC5-i686'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/root/ndiswrapper-1.11/driver'
make: *** [all] Error 2

make install with KSRC=/usr/src/kernels/2.6.16-1.2080_FC5-i686

[root@localhost ndiswrapper-1.11]# make install KSRC=/usr/src/kernels/2.6.16-1.2080_FC5-i686
make -C driver install
make[1]: Entering directory `/root/ndiswrapper-1.11/driver'
make -C /lib/modules/2.6.16-1.2080_FC5/build SUBDIRS=/root/ndiswrapper-1.11/driver \
DRIVER_VERSION=1.11
/usr/src/kernels/2.6.16-1.2080_FC5-i686/scripts/gcc-version.sh: line 11: gcc: command not found
/usr/src/kernels/2.6.16-1.2080_FC5-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.16-1.2080_FC5-i686'
LD /root/ndiswrapper-1.11/driver/built-in.o
/bin/sh: ar: command not found
make[3]: *** [/root/ndiswrapper-1.11/driver/built-in.o] Error 127
make[2]: *** [_module_/root/ndiswrapper-1.11/driver] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.16-1.2080_FC5-i686'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/root/ndiswrapper-1.11/driver'
make: *** [install] Error 2
[root@localhost ndiswrapper-1.11]#

seems to be a problem with gcc-version.sh

any thoughts

RHELL 03-28-2006 06:33 PM

PATH to gcc, and also to ar?

dlennon 03-29-2006 11:57 AM

Thanks
how do I find the path to both and How do I fix the problem? Is there a way to specify that path?

RHELL 03-30-2006 12:30 PM

Duplicate post of 429068

dlennon 03-30-2006 03:43 PM

but there was no answer in the 429068 post

johndoe0028 03-30-2006 08:01 PM

(as root, for read permissions) find / -name gcc
should tell you where gcc is located. Replace gcc with ar to find where ar is.

Then, add that directory to $PATH by adding the lines

PATH=$PATH:[dir]
export PATH

to /home/your-name/.bash_profile where 'dir' is the directory where those files are located. If there's more than one directory, then separate them with a colon in the first line.

PATH=$PATH:[dir]:[dir2]:[dir3] and so on...

Logout and log back in to apply changes.


Hope this helps.

dlennon 03-30-2006 10:55 PM

Thanks for replying

[root@localhost ~]# find / -name ar
/usr/lib/openoffice.org2.0/share/wordbook/ar
/usr/share/gok/ar
/usr/share/locale/ar
find: WARNING: Hard link count is wrong for /selinux: this may be a bug in your filesystem driver. Automatically turning on find's -noleaf option. Earlier results may have failed to include directories that should have been searched.
[root@localhost ~]# find / -name gcc
/usr/libexec/gcc
find: WARNING: Hard link count is wrong for /selinux: this may be a bug in your filesystem driver. Automatically turning on find's -noleaf option. Earlier results may have failed to include directories that should have been searched.

Since I am a newbie, I need a little hand holding.
I assume I type
PATH=$PATH:/usr/share/gok/ar:/usr/share/locale/ar:/usr/libexec/gcc

What comes next? If I am running logged in as the root do I type the Following
export PATH

johndoe0028 03-31-2006 12:15 AM

First, make sure the file is executable. type the full path of the file into a terminal, and press enter. If it says something like "Permission denied", then the file is not executable. Keep trying until you get one that has a non-error output. If there is no executable, then you probably do not have that package installed. Sorry I did not state that in the first post.

Use a text editor to add the line to /home/name/.bash_profile. Kedit, KWrite, Gedit etc...will work fine. When you add the directories, make sure you don't incluide the file name.

For example, let's say that gcc is /usr/local/bin/gcc. You would add /usr/local/bin to $PATH. Else the system will treat 'gcc' as another sub-directory, and it will not get added. Use the actual directory that gcc is located in instead of /usr/local/bin

Also, make sure there is a trailing new line at the end of the file. That is, after 'export PATH', press enter again to make a new line. That usually is required for the computer to read the last line of a file.

Let me know if there's anything else that's confusing.

Hope this helps.

dlennon 03-31-2006 02:56 PM

Thanks for your help, johndoes, I really appreciate it.
there doesn't seem to be a gcc executable. any thoughts what it would be called. For instance, in windows .exe is an executable file. If it isn't installed, is there a place to downlaod it, since I cna't use yum since I can't get to the internet on this computer

jschiwal 03-31-2006 03:13 PM

You may have the gcc package on your installation disks. The best place to locate RPMs is using http://rpm.pbone.net

You can filter the search by your distro and check your dependencies. Copying the location of the link to download the file can also help you locate a repository.

dlennon 03-31-2006 03:51 PM

when i do locate gcc I get the following:

[dlennon@localhost ~]$ locate gcc
/lib/libgcc_s-4.1.0-20060304.so.1
/lib/libgcc_s.so.1
/usr/bin/Kernels/2.6.16-1.2080_FC5-i686/include/acpi/platform/acgcc.h
/usr/bin/Kernels/2.6.16-1.2080_FC5-i686/include/linux/compiler-gcc.h
/usr/bin/Kernels/2.6.16-1.2080_FC5-i686/include/linux/compiler-gcc3.h
/usr/bin/Kernels/2.6.16-1.2080_FC5-i686/include/linux/compiler-gcc4.h
/usr/bin/Kernels/2.6.16-1.2080_FC5-i686/scripts/gcc-version.sh
/usr/lib/gcc-lib
/usr/libexec/gcc
/usr/libexec/gcc/i386-redhat-linux
/usr/libexec/gcc/i386-redhat-linux/4.1.0
/usr/libexec/gcc/i386-redhat-linux/4.1.0/cc1
/usr/sbin/libgcc_post_upgrade
/usr/share/doc/libgcc-4.1.0
/usr/share/doc/libgcc-4.1.0/COPYING.LIB
/usr/share/ghostscript/8.15/Resource/CMap/HKgccs-B5-H
/usr/share/ghostscript/8.15/Resource/CMap/HKgccs-B5-V
/usr/share/ghostscript/8.15/Resource/ac14/CMap/HKgccs-B5-H
/usr/share/ghostscript/8.15/Resource/ac14/CMap/HKgccs-B5-V
/usr/src/kernels/2.6.16-1.2080_FC5-i686/include/acpi/platform/acgcc.h
/usr/src/kernels/2.6.16-1.2080_FC5-i686/include/linux/compiler-gcc.h
/usr/src/kernels/2.6.16-1.2080_FC5-i686/include/linux/compiler-gcc3.h
/usr/src/kernels/2.6.16-1.2080_FC5-i686/include/linux/compiler-gcc4.h
/usr/src/kernels/2.6.16-1.2080_FC5-i686/scripts/gcc-version.sh

can you tell from any of these whether the gcc is ther?

Also, on my distro I found the following three rpms:

gcc-java-4.0.3.i386
gcc-c++4.1.0.3.i386
gcc-4.1.0.3.i386

if the gcc is not on the PC which one of these should I use?

johndoe0028 03-31-2006 05:25 PM

I think the last one (gcc-version.rpm) should do it.

Mount the CD, and do(as root) a

rpm -i path-to-the file.rpm

If it says something about dependencies, install those too; using the same command as above.

Darin 03-31-2006 05:30 PM

Not to interrupt this fun track of taking things, but why not:
Code:

root@fc5~# yum install ndiswrapper

johndoe0028 03-31-2006 05:51 PM

Quote:

Originally Posted by dlennon
... I can't get to the internet on this computer

That's why.

Darin 03-31-2006 06:07 PM

Quote:

Originally Posted by johndoe0028
... I can't get to the internet on this computer
That's why.

Alright, pull a pre-made FC5 rpm off The Internet and sneakernet it (USB drive, CDRW) to the FC5 box?
http://rpm.livna.org/fedora/5/i386/n....lvn5.i386.rpm
I'd take potential dependency woes over this source building mess any day but thats just MHFO...

jschiwal 04-01-2006 05:14 AM

gcc-c++4.1.0.3.i386
gcc-4.1.0.3.i386

You will want to install these packages if they aren't already. The first on is for compiling C++ projects, the second is for C projects.

dlennon 04-01-2006 07:53 PM

in the continuing saga, i tried to install the gcc rpm and there were some dependencies. While installing the dependencies, I got the following:
[root@localhost ~]# rpm -ivh glibc-devel-2.4-4.i386.rpm
warning: glibc-devel-2.4-4.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
glibc-headers is needed by glibc-devel-2.4-4.i386
glibc-headers = 2.4-4 is needed by glibc-devel-2.4-4.i386
I then installed the glibc-headers without any problem and then when I went to install glibc-devel I still get the above dependency issue.

Any thoughts?

johndoe0028 04-01-2006 11:25 PM

Was glibc-headers version 2.4-4?

jschiwal 04-02-2006 05:01 AM

I may be safer to use "rpm -Uhv package-<version>". Just in case a package is already installed.

dlennon 04-02-2006 08:58 AM

I decided to reinstall the whole fedora 5 and was able to install everything hoping that it might have what I needed (the last install was text based and I coulcn't install everything). Now It does not recognize my usb ports, both the PCI 2.o usb card and the internal ports). Any reason why that might have happenned? Is there anything I can do to recognize the USB ports. I have the ndiswrapper version on a jump drive that attaches to USB.

dlennon 04-02-2006 10:55 AM

by the way, glib-headers was 2.4-4

jschiwal 04-03-2006 06:05 AM

Try to modprobe "usbcore" and "usbhid".

dlennon 04-05-2006 12:18 PM

I reinstalled Fedora 5 and installed all the development packages and all of a sudden ndiswrapper worked. the wireless card also worked. But the card did not show up in the gui network manager. I created /etc/sysconfig/network-scripts/ifcfg-wlan0 and the wlan0 then showed up in the gui network manager. But when I go to activate it. It won't activate. When I plugged in the ethernet card, that became active and I lost the wireless connection. I rebooted and it took about 45 minutes to reboot becasue it was stuck on searching network. So my question is, how do I fix it so the computer sees the wireless connection on reboot and It won't take forever to find the network? Also, how do I not lose the wirelesss connection and if I do, how do I start it up again

dlennon 04-05-2006 03:21 PM

When I reinstalled Fedora 5 with all the development packages, all of a sudden ndiswrapper worked and the wireless card was recognized. I had to create /etc/sysconfig/network-scripts/ifcfg-wlan0 in order for the card to finally show up in the gui network manager. When i reboot, the link on the wireless card does not automatically come up and I have to reconfigure the card by the text mode. also, when surfing the web, frequently, I can get to the first and sometimes second page, but the third page usually shows server not found. For instance, when itype in the page for google, it comes up. In google when I search for Fedora forum, I can get inot that page from google, but when I want to go to another page from within fedora forum, I get server not found. Any thoughts?

dlennon 04-06-2006 02:48 PM

I solved the problem by reinstalling Fedora 5 and included all the development packages, ndiswrapper finally installed. The wireless card connected with a link light. However, connection to the internet is sporadic. I tried pinging my default gateway and it was unreachable. When I llok into the 2wire DSL gateway, it shows the tcp/ip setting that my Fedora box has, ie 192.168.1.65. So what am I missing? what esle do I need to do? One other question, when i reboot I lose the link. What can I do to make sure the link comes up upon reboot?

Darin 04-07-2006 11:15 AM

Quote:

Originally Posted by dlennon
What can I do to make sure the link comes up upon reboot?

in /etc/sysconfig/network-scripts/ifcfg-wlan0 set:
onboot=yes

Quote:

Originally Posted by dlennon
...connection to the internet is sporadic. I tried pinging my default gateway and it was unreachable. When I look into the 2wire DSL gateway, it shows the tcp/ip setting that my Fedora box has, ie 192.168.1.65. So what am I missing? what else do I need to do?

The default gateway on your Fedora box should be the DSL gateway, if you are having problems reaching that then a good guess is that something is causing problems with the wireless signal.

A few good suggestions to help with wireless (802.11) issues in general:

Use your wireless manager to scan for available networks at different points around where you normally have the laptop connect from and near the access point. Pay particulay attention to how many other APs you can see and what channels they are using. Because 802.11 uses overlapping channels for wireless, the only really useable channels are 1, 6 and 11 (in the US at least, but this is applicable for other countries also.) If you find other APs in range you have to pick a channel furthest away from them, if possible.

Also be wary of other devices in the 2.4g range. The biggest culprit I've seen here are 2.4g cordless phones. I literally had a friend who never figured out until I pointed it out that whenever their daughter was on the phone (teenage girls do this rarely, right?) the wireless network went to bits. Other 2.4g devices can include bluetooth and some (OK, most) cordless keyboards and mice.

dlennon 04-10-2006 02:03 PM

I reinstalled Fedora 5 and included all the development packages and now ndiswrapp installed and the card's link light went on after following the text based iwconfig commands. Now i have a different problem. Upon reboot, the link light won't go on unless i run through the iwconfig commands each time. I already appended the line alias wlan0 ndiswrapper in /etc/modprobe.conf. but I get the same problem. also, I get sporadic internet access. It will go maybe one or two pages deep and then it bombs out - no server found. If I deactivate the card in network manager and reactivate, I can usually get to Google, my home page. But I still can't get very far past the google page


All times are GMT -5. The time now is 10:11 AM.