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...


All times are GMT -5. The time now is 04:39 AM.