2011
01.22

How to install g++ in Centos

During development on CentOS, g++ comes in very handy to compile and build various softwares and appears that on CentOS 4 and CentOS 5 “g++” does not gets installed/enabled when you install gcc.

The command “yum install g++”, does not appear to work on CentOS 4 or CentOS, same way “yum install compat-g++” will fail. The main reason is that on CentOS the packages are packed with “gcc-c++”.

To make use of “g++” on CentOS, you may be able to get it working by installing with the following commands.

yum install gcc-c++

and for additional compat support

yum install gcc-c++ compat-gcc-32 compat-gcc-32-c++

1 comment so far

Add Your Comment
  1. buy@generic.LEVITRA” rel=”nofollow”>…

    Need cheap generic LEVITRA?…