install g++ on CentOS

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.

  • 34 Users Found This Useful
Was this answer helpful?

Related Articles

Chỉnh local time cho VPS

mv /etc/localtime /etc/localtime.oldln -sf /usr/share/zoneinfo/Asia/Ho_Chi_Minh...

Hướng dẫn sử dụng Remote Backup !

Hướng dẫn sử dụng Remote Backup với rsync:1. Gửi yêu cầu hỗ trợ tại để...

Repair all tables on server with SSH

Login to SSH. Try to run this command: mysqlcheck -A -h localhost -u root -r -p It asks mysql...

How to Compress and Uncompress Files with SSH

Login to SSH: 1) To compress files: Examples: tar cvf abc.tar a2.tex adir/* # compress...

scp resume after got disconnected or timeout

I often use the UNIX command line tool scp (secure copy) to copy a file to a remote server....