ndiswrapper make can't find gcc

Posted on 2006-03-30
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/ line 11: gcc: command not found
/usr/src/kernels/2.6.16-1.2080_FC5-i686/scripts/ 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]#
Question by:dlennon
    LVL 3

    Accepted Solution

    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)
    LVL 43

    Expert Comment

    If You connected to the internet, simply issue
    yum install gcc-c++
    will install everything You need.
    LVL 17

    Expert Comment

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

    BR Dushan

    Author Comment

    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????
    LVL 3

    Expert Comment

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

    Author Comment

    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
    Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now