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.
so im sure that gcc is installed, and its the newest version, but somehow it wont work. my friend to me that possibly i installed the newer version over the older version, which can be problematic. is there any way i can purge my computer of gcc and then install it again?
that will tell you what version of gcc you are running.
I haven't ever tried to install another version of gcc. My guess is, if you did it the way the INSTALL or README told you to do it that it would do all the right stuff to prevent problems. GNU things are pretty good about taking care of those types of things.
The bottom line is you need to ensure that you have the right version and by doing the "gcc -v" you are going to find out what version you have. That will solve your problem.
Because you may have thought you installed the latest version but you may not have installed it in the right place so you may be running an older version of gcc.
So "gcc -v" and "which gcc" will tell you all you need.
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
i've gone through several versions on this box, including these:
egcs-2.91.66 3.0.1 3.0.2 3.0.4 3.1 3.2.2 and currently have 2.95.3 and 3.2.2 installed and i pick between them as i wish.
i've gotten that error twice. once when i stripped all the symbols from all libraries on the system (no compiling after that), and once when i didn't have the libc header files installed when i first set up the box. when a package checks to see if the compiler works, it compiles a very simple program, and if it doesn't work, for whatever reason, you get that message.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.