LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   gcc trouble (https://www.linuxquestions.org/questions/linux-newbie-8/gcc-trouble-339731/)

assyrian1 07-03-2005 09:30 PM

gcc trouble
 
when trying to compile software which I had just downloaded for may freshly installed linux mandrake 10.1, I found that the CC varable is not set. I did a search and cound not find gcc.

I tried installing gcc from the cd but I kept getting error messages, hence I think that some of the rpm's on the cd are corrupt.

I found gcc on the internet but I need to have a compiler to compile the source code. Is there a way of insalling gcc if I dont have a already installed compiler?

thanks

btmiller 07-04-2005 12:18 AM

What errors do you get trying to install from CD? Chances are they're just missing dependencies you can install. You should be able to get the RPMs off a Mandrake mirror site if your CDs are in fact corruot. You can also use uRPMI top install stuff on Mandrake, but since I don't use the distro, someone else will need to tell you about that.

paulsm4 07-04-2005 12:21 AM

http://gcc.gnu.org/releases.html
 
Hi -

You definitely need the GCC binary; it's freely available from any number of sites.

The main page to look at is the GNU site:
http://gcc.gnu.org/releases.html

Another good page (for general reference) is:
http://www.rpmfind.com

In either case, you should have no problem.

Good luck!

sgrayban 07-04-2005 12:38 AM

He can do 'urpmi -y gcc' to find the gcc packages he wants to instal then 'urpmi package' to install them.

All depends will be auto-selected.

paulsm4 07-04-2005 12:49 AM

I'd still recommend installing a fresh binary...
 
Assuming, of course, that the problem is with dependencies.

I'd suggest doing a clean install of a precompiled GCC binary from a new RPM. When installing, pay close attention to any errors or warnings. If there are any dependency problems, he should get very clear and unmistakable error messages to that effect.

Whichever approach he takes, it should be pretty easy to resolve the problem.

PS:
The problem might even be a $PATH problem! It wouldn't hurt to try the following:

1. Type:
find / -name gcc -print 2> /dev/null

2. Go away for a a cup of coffee or a walk around the block ;-)

3. If anything is printed (like "/usr/bin/gcc"), then make sure that directory is
in your $PATH.

assyrian1 07-04-2005 01:31 AM

gcc trouble
 
hi
Im sorry I dident make my self more clear, I use drakermp, which which automatily installs dependant packages. The error with drakermp is "bad header binary somthing somthing" and rpm -i returns "not a rpm or somthing" I think the best bet is to downlaod the gcc binary,.

thanks


All times are GMT -5. The time now is 08:02 PM.