How do i install a c++ compiler in linux?

Search

New member
Joined
Sep 20, 2004
Messages
1,010
Tokens
I just got Suse 9.1 pro. I have no idea how to install a c++ compiler? i downloaded one but i am just a linux newbie. i was interested in another os than windows so i installed linux on one hd. anyone knows how to install the compiler or which commands i have to use? all i know is that i need a make file which i already installed.
 

New member
Joined
Sep 21, 2004
Messages
656
Tokens
Do you see a /usr/bin/g++ file? If so, you already have a C++ compiler. You likely don't need to install anything. If you're doing something simple, you can just run "g++ <file>". Running "man g++" will give you a list of options with descriptions. This is all from within a shell command line. If you're using one of the GUI's instead, I can't help. I'm old school and do everything from command lines within Unix-flavored OS'.
 

Ha-Sheesh
Joined
Sep 20, 2004
Messages
2,494
Tokens
i don't use linux, i haven't used
since 1994, but as far as i remember
you could use rpm --install and install the rpm

but if you have the sources..

then could be something like gcc134SXX#.tar.gz
then

gunzip gcc134SXX#.tar.gz
tar -vxf gcc134SXX#.tar.gz

cd gcc (tab)

vi INSTALL
or vi README...

there will ask you probably for some libraries,,
if everything is fine then

./configure
then make
then make install

logout your shell
and login again
.
there you go...
 

Forum statistics

Threads
1,118,886
Messages
13,560,958
Members
100,702
Latest member
wsbedlinen
The RX is the sports betting industry's leading information portal for bonuses, picks, and sportsbook reviews. Find the best deals offered by a sportsbook in your state and browse our free picks section.FacebookTwitterInstagramContact Usforum@therx.com