• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 325
  • Last Modified:

ndiswrapper make can't find gcc

I get the following error when I run make to install ndiswrapper. I know it can't find the gcc. But how do I correct this problem:

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]#
0
dlennon
Asked:
dlennon
1 Solution
 
leisnerCommented:
you need to get a development environment on your machine...since you found make,
you should be able to find gcc.  Seems like its not there....

One way to solve the problem is just say "install everything" when presented witn the
options of what to install -- then you don't have to figure out what's missing...(most of the time).

Disk space got really cheap in the last 5 years, a full distribution is about 5 gig -- it saves
lots of headaches

You can get the rpm package here:
http://rpmfind.net/linux/rpm2html/search.php?query=gcc

(there's an fc5 package)
0
 
ravenplCommented:
If You connected to the internet, simply issue
yum install gcc-c++
will install everything You need.
0
 
Dushan De SilvaCommented:
Insert youe Linux OS Installation CD. Then select all the items under "development" . Finish it and try to compile it again.

BR Dushan
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
dlennonAuthor Commented:
When I installed the package I had to use a text installation, I guess,  because of my video card, there was no option in text to install everything, unless I missed it.
I can't use yum because the reason I am installing ndiswrappper is to get my wireless card working.

On my Distro package I fould these three gcc rpm's:
gcc-java-4.0.3.i386.rpm
gcc-c++4.1.0.3.i386.rpm
gcc-4.1.0.3.i386

does it matter which one I install????
0
 
leisnerCommented:
install gcc and g++ -- but I've had mixed experiences with old code and gcc 4.x.
0
 
dlennonAuthor Commented:
I solved the problem by reinstalling the whole installation and I installed everything. At that point ndiswrapper fianlly worked and I didn't get the gcc problem
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Tackle projects and never again get stuck behind a technical roadblock.
Join Now