G++ not found, but gcc is there... how to enable/install G++?
I am trying to install a C++ application, but it's configure file is complaining that it cannot find a g++/c++ compiler. I can't either!
But gcc is installed. I have Redhat 9 on this server, or Linux 2.2-24 modified by Redhat. How do I enable g++/c++? Is there some special gcc command, or do I have to install a whole new gcc? thx in advance. |
You need to install the gcc-c++ package.
|
how do I do that on Redhat.... for other distro;s I've seen update tools, but no clue
as to how do install gcc-c++ for RH9. thx. |
Do you have RH9 CDs? If so, it should be on there. I know there's a thing called "Add/Remove Packages" (or something like that) in RH9, but I can't remember exactly where. You need to find it and then look under "Development Tools". You should be able to select it there and then you'll be prompted for the CD, IIRC.
|
thanks. However, this is for a remote hosted server... I have no access to the machine, or the CDs.
I need to find some commmand or RPM package to do this... |
Oh :(. Have a look on http://rpmfind.net then.
|
found the solution.
In my case, the base GCC package was installed on the server, just not g++/c++. I went to ftp.redhat.com and working my way down the ftp dir tree, I found the RH9 rpm package for gcc-g++. But first, the package had dependencies on libstdc++ and libstdc++-dev, both of which had RPMs. So first I installed the two lib RPMs, and then I installed the gcc-g++ RPM, and all was well... my C++ program compiled OK. This path is far easier than trying to build from the gcc-g++ source code package from GNU... MUCH easier. |
Good :).
|
All times are GMT -5. The time now is 06:47 PM. |