LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing GCC (https://www.linuxquestions.org/questions/linux-newbie-8/installing-gcc-222018/)

characterzero 08-24-2004 09:36 PM

Installing GCC
 
Hey. I'm running WinXP, but I installed Cygwin because I want to run Kismet. But after downloading Kismet, I was told I needed to compile it in order to run it. So I downloaded GCC. Now this is where my understanding ends. How do I install GCC, so that I can compile Kismet, so I can run that? Things are getting complicated on me fast! :-p

Thanks for the help!

Kevin

Demonbane 08-24-2004 09:44 PM

Which package did you download? you need to Cygwin binary release, the source code on the GCC website won't do any good.
If that's what you've got, simply cd into the root directory of your Cygwin and extract these tarballs ( tar xvjf <file.tar.bz2> )

aznluvsmc 08-25-2004 01:57 AM

I also would like to know how to install gcc 3.4.1. I installed gaim through a RPM and then was told I need to install a particular library. After downloading the library I found out I needed the gcc to compile it. Well, I downloaded the gcc 3.4.1 but can't figure out what to do with it after untarring it. :study:

Demonbane 08-25-2004 02:47 AM

If what you downloaded is the source code release then you need a C compiler to compile and install it (yea, like you need GCC to compile GCC).
What you should do is get the binary release from your distro vendor, for Suse you can get RPMs for GCC here:
http://distro.ibiblio.org/pub/linux/...9.1/suse/i586/
Install all of gcc-* packages if you're not sure.

Also see if you can find the RPM for that particular library, because RPMs check the RPM databse for dependencies, not your actual filesystem, so what's gonna happen is your Gaim RPM will still complain about the missing library, even if its there and you installed it from the source.
Though you can get away with it by doing --nodeps, this is genereally not a good idea.
Here's a good site to look for RPMs:
http://www.rpmseek.com

If you can't find the particular RPM for your distro, before you download the one available on some other distro try to find the source RPM then compile it(as easy as "rpmbuild --rebuild <package.src.rpm>". This way you have a better chance of avoiding broken dependencies and such. Or alternatively you can create your own RPMs from the source using something like "checkinstall" or even "rpmbuild" if a .spec file exist.


All times are GMT -5. The time now is 09:26 AM.