LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
Search this Thread
Old 03-28-2006, 05:49 PM   #1
dlennon
Member
 
Registered: Mar 2006
Posts: 41

Rep: Reputation: 15
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
 
Old 03-28-2006, 06:33 PM   #2
RHELL
Member
 
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Rep: Reputation: 31
PATH to gcc, and also to ar?
 
Old 03-29-2006, 11:57 AM   #3
dlennon
Member
 
Registered: Mar 2006
Posts: 41

Original Poster
Rep: Reputation: 15
Thanks
how do I find the path to both and How do I fix the problem? Is there a way to specify that path?
 
Old 03-30-2006, 12:30 PM   #4
RHELL
Member
 
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Rep: Reputation: 31
Duplicate post of 429068
 
Old 03-30-2006, 03:43 PM   #5
dlennon
Member
 
Registered: Mar 2006
Posts: 41

Original Poster
Rep: Reputation: 15
but there was no answer in the 429068 post
 
Old 03-30-2006, 08:01 PM   #6
johndoe0028
Member
 
Registered: Jun 2005
Location: CA, USA
Distribution: Gentoo
Posts: 165

Rep: Reputation: 30
(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.

Last edited by johndoe0028; 03-31-2006 at 12:10 AM.
 
Old 03-30-2006, 10:55 PM   #7
dlennon
Member
 
Registered: Mar 2006
Posts: 41

Original Poster
Rep: Reputation: 15
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
 
Old 03-31-2006, 12:15 AM   #8
johndoe0028
Member
 
Registered: Jun 2005
Location: CA, USA
Distribution: Gentoo
Posts: 165

Rep: Reputation: 30
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.

Last edited by johndoe0028; 03-31-2006 at 12:18 AM. Reason: Clarifying stuff
 
Old 03-31-2006, 02:56 PM   #9
dlennon
Member
 
Registered: Mar 2006
Posts: 41

Original Poster
Rep: Reputation: 15
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
 
Old 03-31-2006, 03:13 PM   #10
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
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.
 
Old 03-31-2006, 03:51 PM   #11
dlennon
Member
 
Registered: Mar 2006
Posts: 41

Original Poster
Rep: Reputation: 15
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?
 
Old 03-31-2006, 05:25 PM   #12
johndoe0028
Member
 
Registered: Jun 2005
Location: CA, USA
Distribution: Gentoo
Posts: 165

Rep: Reputation: 30
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.
 
Old 03-31-2006, 05:30 PM   #13
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
Not to interrupt this fun track of taking things, but why not:
Code:
root@fc5~# yum install ndiswrapper
 
Old 03-31-2006, 05:51 PM   #14
johndoe0028
Member
 
Registered: Jun 2005
Location: CA, USA
Distribution: Gentoo
Posts: 165

Rep: Reputation: 30
Quote:
Originally Posted by dlennon
... I can't get to the internet on this computer
That's why.
 
Old 03-31-2006, 06:07 PM   #15
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
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...
 
  


Reply

Tags
ndiswrapper


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
Struggling with Math, need help randyriver10 General 45 08-28-2007 05:27 AM
Really struggling with ATI crimsontide Linux - Hardware 1 02-01-2006 10:33 PM
new to ipsec, struggling eagle683 Linux - Newbie 1 06-08-2005 02:14 PM
Struggling to configure my network :S Detriamus Linux - Newbie 7 08-10-2004 02:20 PM
after struggling with kernel compile doublefailure Linux - General 5 07-12-2002 06:51 AM


All times are GMT -5. The time now is 02:30 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration