Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Hello, my linux redhat 7.3 box doesn't recognize the command g++ but it does recognize gcc. I have installed the gcc-2.96-113.i386.rpm package and all it's dependencies. I did 'man gcc' and in the manual page there is g++ but whenever i type in 'g++' it doesn't recognize...can anyone help? Please...thank you very much.. THANK YOU...
try slocate g++ to see if it is somewhere, and then try the command from where it is ( ./g++).
I have never heard of an "incomplete" package (with only the C compiler, LOL), but why dont you compile the hole gcc source??
Wow that was quick! Anyhow, i did 'slocate g++' and it says "/usr/lib/ligb++.so.2.7.2.8" and
"/usr/lib/ligb++.so.2.7.2".
I then tried ./g++ but it doesn't work. Kinda new to the linux world so bare with me please . I'm installing the compiler because im taking programming classes. Also, u stated that why dont i compile the whole gcc source code? I dont understand.
Anyhow, and other suggestions would be greatly appreciated. I dont want to give up Linux and I'm willing to learn as long as there is help Thank you!
I just did a ls | grep g++ ( sends the output of ls to grep, which searches for the inputs with g++ on it, very useful command, by the way, | is the pipe!!) and I found g++ there. So I am afraid you dont have it, strangely enough.
Your solution might be compiling a gcc ( get the newest version 3.2.1) your find a RPM with the whole thing!
Yea, u guys are right, that was my problem. I had the gcc compiler but not the g++.....what i needed was the gcc-c++........ rpm package. THANK FOR THE HELP!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.