yum install gcc-g++ doesn't work anymore in CentOs 6.4

Today installed CentOs 6.4 fresh new on my workstation.

I wanted to install g++. With my surprise I didn't succeed by using

 yum install gcc-g++ 

The thing is that even by doing a search I don't get any result.

 # No package available yum search g++ 

On top of that I installed successfully gcc.

Do you know whether I am using the wrong package name or what should I do?

4 Answers

Have you tried:
yum install gcc-c++

2

I was successful with on CentOS 6.4

 yum install gcc-c++.x86_64 
1

I ran into this post because installing node with regular gcc-c++ it will complain;

but to workaround the issue you can install gcc-g++ from Linuxsoft: Software Repository

curl > /etc/yum.repos.d/slc6-scl.repo rpm --import yum install -y devtoolset-3 scl enable devtoolset-3 bash 

and node will be happy !

One thing I have realized is that many packages give that error because package names are usually different than most tutorials out there on the net.

Normally when I get stuck I just use this command:

yum list | grep <packagename> 

This gets a list of all packages like the one we are searching for and it always lists the full name which we should use to install the package.

Also the <packagename> is case-sensitive, geoip and GeoIP will return different list of packages.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like