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 |
type: gcc -v
It'll tell you what compiler version you've got installed, that is, if you have it installed :) |
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. |
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. |
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. |
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)? |
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. |
All times are GMT -5. The time now is 04:11 PM. |