To see whether
gcc-c++ is installed, query for
the
gcc-c++ package as follows:
rpm -qa | grep gcc-c++
If
gcc-c++ version
4.1.0 is installed, you will get a result similar to the
following output:
gcc-c++-4.1.0-43.24
Note: On
RHEL4U2,
YDL,
and
Y-HPC,
both 32-bit and 64-bit
glibc-devel and
libstdc++-devel packages
are required. To ensure that these packages are available before you install
the compiler, follow the instruction in
Could not determine location of 32-bit or 64-bit GCC (RHEL4U2, Y-HPC, YDL).
Do not use the example in this section to verify that these packages are installed
because the names of the packages on
RHEL4U2,
Y-HPC,
and
YDL are
structured so that they have the same name regardless whether they are 32-bit
or 64-bit packages. As a result, the output does not indicate whether 32-bit,
64-bit or both packages are installed.