makelocalrc error on CentOS 6.2 X64


There is an error on CentOS 6.2 X64 when I install PGI Fortran Workstation 2012.

It prompt that g++ not found. but I have installed GCC.

The error log is:

ERROR: g++ not found;
successful use of c++ compilers requires existence of g++ libraries
PGI directory /opt/pgi/linux86-64
PGI version 12.3
PATH entry /opt/pgi/linux86-64/12.3/bin
System linker /lib64/
GCC directory /usr/lib/gcc/x86_64-redhat-linux/4.4.6
GCC headers /usr/lib/gcc/x86_64-redhat-linux/4.4.6/include
G77 directory “”
G77 headers
GCC version 4.4.6
GNU LIBC version 2.12
PGI glibc libs
PGI glibc headers
Large file support no
Threads /usr/lib64/libpthread.{a,so}
localrc does not exist

I installed the gcc c++, the problem is gone.

yum install gcc-c++