We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now


ndiswrapper make can't find gcc

dlennon asked
Medium Priority
Last Modified: 2011-04-14
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 \
/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]#
Watch Question

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:

(there's an fc5 package)

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Top Expert 2005

If You connected to the internet, simply issue
yum install gcc-c++
will install everything You need.
Dushan De SilvaTechnology Architect

Insert youe Linux OS Installation CD. Then select all the items under "development" . Finish it and try to compile it again.

BR Dushan


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:

does it matter which one I install????

install gcc and g++ -- but I've had mixed experiences with old code and gcc 4.x.


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
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.