ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
It may be under another package name in red hat. Try running:
# rpm -q --whatprovides gcc-cpp
That should list the package that provides gcc-cpp.
Also, check /usr/bin and see if gcc or g++ is listed. If not find out where they are located. It may not be in PATH. You can find out what files a given package has installed with:
# rpm -ql <package name>
That should list the location of the executable.
Edit: just noticed that you have "gcc-3.2.2-5" installed but don't seem to have a corresponding "gcc-c++-3.2.2-5" installed. Not sure what the "compat" packages do but they seem to provide a compatability layer for an earlier version of the compiler. The c++ compiler may not be installed at all. Try installing the "gcc-c++-3.2.2-5" package.
Last edited by kilgoretrout; 06-30-2004 at 03:24 PM.
hi, i am in exactly the same situation as vanhelsing, but i am a newbie as fresh as they come. i am using redhat 9, i686
and "# rpm -q --whatprovides gcc-cpp" doesnt do anything
in usr/bin there is a gcc296 and a g++296
but what do i do now?
how do i go about installing "gcc-c++-3.2.2-5"?
thanks
so you are saying i need to install the compiler?
i tried downloading 3.4.1 from the gcc site but i cant install that because when i go to configure it, it cant find the command "cc". also on the site it says there are links to binary files if you dont already have a compiler. but as far as i can tell there are none for redhat 9.
where do i go to get a compiler to install?
or is there one with the os that i havent noticed yet? is gcc even the command to compile a c++ program? or is it something else in redhat 9?
thanks if anyone can set me straight, i am getting myself so confused.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.