g++ is often necessary for building various packages. But It’s quite hard to install it in CentOS if you don’t know a simple thing: yum install g++ will not work here. yum install compat-g++and yum install gcc-g++ won’t give any result too. The only command for yum to install g++ on CentOS is the following:
yum install gcc-c++
You might also want to install it with some more useful packages. Then your command will be:
yum install gcc-c++ compat-gcc-32 compat-gcc-32-c++
Hope this helps you to install g++ under CentOS
Tags: centos g++, centos g++ yum, centos install g++, centos install g++ help, centos yum install g++, centos yum install g++ package, g++ command + centos, g++ for centos, gcc yum g++ centos, how to install g++ on centos, install g++ centos, yum install gcc g++ centos
2 Responses
HKB
08|May|2009 1This was just what I was looking for when I couldn’t locate the package via yum search.
Thanks!
Raul Maricotas
09|Sep|2009 2Gracias manito, me sacaste de un lio
Leave a reply