LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-03-2005, 10:30 PM   #1
assyrian1
LQ Newbie
 
Registered: Jun 2005
Location: sydney
Distribution: Fedora Core 7
Posts: 17

Rep: Reputation: 0
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
 
Old 07-04-2005, 01:18 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
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.
 
Old 07-04-2005, 01:21 AM   #3
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
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!
 
Old 07-04-2005, 01:38 AM   #4
sgrayban
Member
 
Registered: Nov 2004
Location: Spokane, WA
Distribution: Debian 6.0
Posts: 369

Rep: Reputation: 30
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.
 
Old 07-04-2005, 01:49 AM   #5
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
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.

Last edited by paulsm4; 07-04-2005 at 01:53 AM.
 
Old 07-04-2005, 02:31 AM   #6
assyrian1
LQ Newbie
 
Registered: Jun 2005
Location: sydney
Distribution: Fedora Core 7
Posts: 17

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble installing gcc the_serhan SUSE / openSUSE 1 06-06-2005 03:21 PM
GCC install trouble VeRM69 Linux - Newbie 4 08-09-2004 01:57 AM
Trouble using gcc chombee Linux - General 4 06-23-2004 01:31 AM
A Lot of Trouble With GCC gamehack Debian 2 01-22-2004 12:56 PM
Trouble installing GCC, need help glock19 Linux - General 0 03-14-2002 01:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration