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

x

ndiswrapper make can't find gcc

dlennon
dlennon asked
on
Medium Priority
343 Views
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 \
        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]#
Comment
Watch Question

Commented:
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)

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

Ask the Experts
Top Expert 2005

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

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

BR Dushan

Author

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

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

Author

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

OR

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.