Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-26-2005, 02:15 PM   #1
LQ Newbie
Registered: Apr 2005
Posts: 3

Rep: Reputation: 0
Compiler Errors

Hello All,

I am a very new user to Linux. I have Red Hat 9 running on a machine that shares Windows XP.
As every other new user, my main challenge is installing programs in Linux. I have had success with RPM's and have started working with tar files.

Yesterday, I successfully extracted aXine from source and was able to run the ./configure to attempt the installation. I was excited to see the terminal running the configuration for the first time, but I got an error. It read:

configure: error: no acceptable C compiler found in $PATH

So, I snooped around some Linux forums and figured I needed the gcc package on my system. I downloaded a bunch and can't get them installed.

I found that I actually have gcc296 on my computer at /usr/bin/

What do I do to get a compiler installed or the one I have in the $Path?

Old 04-26-2005, 02:46 PM   #2
Andrew Benton
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
You can install gcc with an rpm. There should be one on your Linux CD's, if not, ask the great seer that is Google.
Check whether you have gcc installed with the command
gcc -v
If it says gcc: command not found then you don't have gcc installed
Old 04-26-2005, 02:55 PM   #3
Gentoo Developer
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
This gets asked alot.The best way is to find a rpm for your distro.If you really want or need to install from source you may run into dependency problems.Red Hat is a rpm based distro,there are source based distro's also.
Old 04-26-2005, 03:10 PM   #4
LQ Newbie
Registered: Apr 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for your quick replies!!
I tried downloading a bunch of gcc rpms. I have about 10 of them, which I have tinkered with.

Once I open one of them, it runs for a second then dissapears. I check my System Log to see if it installed and it hasn't.
From what I have read online, I seems I don't have a compiler installed. How do I install it?

Old 04-26-2005, 03:59 PM   #5
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
first you want to remove that gcc-2.96, red hat 9 came with gcc-3.x. it's important that you install the red hat 9 gcc rpm's, not just something found at random on the net. Also note that gcc alone will not help you, you need a development environment ( the best place to get all of these is from your install cd's):

gcc ( for c)
g++ (for c++ - for other languages there are other frontends)
kernel-headers ( only required for some packages, note this is not the same thing as the kernel-source package and this package needs to be the original package from your red hat 9 install cd's or from a red hat 9 mirror)

here are a couple very basic rpm commands to get you going:

to upgrade a package ( you should also use this to install too):
rpm -Uvh <package>
to search for a package
rpm -qa | grep <package>
see "man rpm" or do "rpm --help" in a console to see the full (long) list of options for rpm.

Last edited by __J; 04-26-2005 at 04:03 PM.
Old 04-28-2005, 12:31 AM   #6
LQ Newbie
Registered: Apr 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you all for the help!

I looked in my installation CD and found gcc packages. I didn't find any g++ packages. I tried installing the gcc packages but they didn't work. I don't know what I keep missing here.

The rest of the packages you mentioned show up on my system log where the list of RPMs are. I can't find the kernel header one either.

The gcc runs for a second and dissapears.

A friend of mine mentioned that I needed g++ . But I really checked all my CD's and can't find it.

Old 04-28-2005, 02:24 AM   #7
Registered: Apr 2005
Location: Albany, NY
Distribution: Fedora Core 6
Posts: 85

Rep: Reputation: 15
Old 04-28-2005, 02:46 AM   #8
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46

it's the package called gcc-c++

edit: make sure you get the libstdc++ and libstdc++-devel packages too


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
Cross compiler errors amc Linux - Software 0 02-07-2005 06:06 AM
C++ compiler errors vickyj Linux - Software 1 08-29-2004 02:54 AM
gcc compiler errors? johnnyrags Fedora 0 06-23-2004 05:53 PM
gcc compiler errors externalgreenfu Linux - Software 0 07-16-2003 03:40 PM
compiler errors barrynewt Linux - Software 6 08-29-2002 10:01 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:47 AM.

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