LinuxQuestions.org
Visit Jeremy's Blog.
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 06-21-2004, 04:50 AM   #1
jing
Member
 
Registered: May 2004
Location: Singapore
Posts: 30

Rep: Reputation: 15
How do I install gcc? (redhat8.0)


Actually all I need is a C++ compiler that supports the bool data type so that i can install and configure LAM.
Does gcc supports that?
Sorry I'm still really new to Linux.
What I tried to do is
./configure
make
After which there is a lot of output.
Is that normal?
How do I know if gcc had been successfully installed?
Can anyone give me a bit of hint?

Thanks in advance
 
Old 06-21-2004, 06:41 AM   #2
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
type: gcc -v
It'll tell you what compiler version you've got installed, that is, if you have it installed
 
Old 06-21-2004, 07:50 AM   #3
jmorse
Member
 
Registered: Mar 2004
Location: United Kingdom
Distribution: LFS
Posts: 74

Rep: Reputation: 15
You have probably already got gcc installed.
In order to compile gcc, you need a C compiler...normally gcc.
[I'll just pour my brain back in through my ear]


If you didn't have it when you run './configure' it would quickly say words to the effect 'Could not find gcc', make then wouldn't work either.

>./configure
>make
>make install

will install most source programs, and yes you will get an awful lot of output from a big package like gcc being installed.
 
Old 06-21-2004, 08:37 PM   #4
jing
Member
 
Registered: May 2004
Location: Singapore
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks!
Guess I have version 2.96 installed.
But does gcc supports the bool data type?
As when i tried to install and configure LAM it still shows that I need a C++ compiler which supports the bool data type.
 
Old 06-22-2004, 06:37 AM   #5
jmorse
Member
 
Registered: Mar 2004
Location: United Kingdom
Distribution: LFS
Posts: 74

Rep: Reputation: 15
gcc version 2.96 is quite old, bearing in mind the current verion is 3.4.0.
There is an argument for keeping the old verion, some programs [eg the kernel] are recomended to be built with an old version of the compiler [I don't know If this is still true]

I would follow Jeff Squyres advice and upgrade to a newer compiler! [Aah... the joys of google]

As you are using RedHat an rpm is the easiest way to install,
finding them from a website like [http://www.rpmfind.net] gives:
[http://www.rpmfind.net/linux/rpm2htm...&system=&arch=]

gcc will have quite a few dependancies, such as binutils and glibc, and probably many more.

Last edited by jmorse; 06-22-2004 at 06:38 AM.
 
Old 06-22-2004, 10:49 AM   #6
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
Yeah, I didn't have gcc on my system and installing it became a real nightmare. I needed it to be able to install my modem so I had to download a package, boot into linux, find out it neede yet another dependancy boot into win, download, boot back to linux etc. etc.

Is there a more intelligent way of doing this (excluding using a linux installation utility which will automatically get dependancies for you, like YAST or apt-get)?
 
Old 06-22-2004, 09:19 PM   #7
jing
Member
 
Registered: May 2004
Location: Singapore
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks for your replies,
But does my version of gcc supports the bool data type?
That's all I need, as LAM requires a C++ compiler with bool data type support.
 
  


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
Compiling glibc-2.3.5 on RedHat8 with gcc 3.3.4 Minlexx Linux - Newbie 4 09-27-2005 04:22 PM
Fedora 2 and 3 and redhat8 don't install browser by default learnfast Linux - Newbie 1 03-12-2005 12:53 AM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 03:13 PM
Sendmail: How to install/configure in redhat8 naldc Linux - Software 0 06-19-2003 11:27 PM
nothing happens during redhat8 install syrtsardo Linux - Newbie 5 02-04-2003 11:01 AM


All times are GMT -5. The time now is 06:36 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