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.
Hi all,
I am going to upgrade gcc to v3.0. Must I uninstall the previous one first?
I have installed gcc3.0 directly without removing the previous version. However, when I issue `g++ -v`, it still reports the previous version. So I tried to uninstall the previous version, however, system report I can't do that because of dependences. Anyway, I issue `rpm -e` to remove gcc-g++ and the some libraries finally. After have reinstalled gcc3.0 again, I can compile codes but fail in running them(report xxx.so.3 and so on missing).
How can I upgrade gcc correctly? What should I do now?
gcc v3+ is normally called gcc3 not gcc, unless you specifically link it to that name. you should keep 2.9whatever installed aswell. they exist fine side by side.
most confgiure scripts will check for gcc and then gcc3. if you want to compile with gcc3 always then manually change the gcc3 symlink or just uninstall the old one
Yes, I found that the new compiler has gcc located at other directory. I built a link point to the new compiler and everything is all right. However, when I run the compiled program which is compiling with the new compiler. Error occurs!!!
You need library path to libraries coming with new gcc. If gcc is in /usr/local/bin (default), its libraries are in /usr/local/lib. Add this directory into /etc/ld.so.conf and run ldconfig.
Still no good. I don't know why. I can't compile the old source code with new compiler now.
Do you know what cvs is? Can I use cvs to upgrade gcc? How?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.