Install g++ when having gcc (C only) -- RH6
14,305
You need to install the gcc-c++ package: yum install gcc-c++
Related videos on Youtube
Comments
-
rursw1 over 1 year
I have a RHEL 6 machine, which came with
gcc
but withoutg++
. The gcc version is 4.4.4 20100726 (this is what I got fromgcc --version
).How can I get g++ working? Currently, the shell just returns "command not found".
-
iamsid over 13 yearsIt's called gcc-c++ in RedHat.
-
-
rursw1 over 13 yearsThank you - but I'm getting "No package gcc-c++ available". What can be the reason?
-
iamsid over 13 yearsPost the results of
rpm -qa | grep gcc
-
frayab over 12 years@iamsid
rpm -qa | grep gc
for me gives only these packages:libgcc-4.4.5-6.el6.x86_64
,gcc-4.4.5-6.el6.x86_64
-
Mike over 12 years@ArtemAO If your server is not registered on rhn yum will not work.. You'd have to install the version on your cd.