Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
New to linux. Gcc seems to be installed by not configured maybe? Below are some command line results. Is gcc installed, and if so, how do I configure it so it run properly? Thank you.
/usr/bin/which: no gcc in (/usr/ora/d02/oracle/fdidb/9.2.0/Apache/perl/bin:/usr/ora/d02/oracle/fdidb/9.2.0/bin:/usr/bin:/usr/sbin:/usr/ora/d02/oracle/fdidb/9.2.0/jre/1.4.2/bin:/usr/ccs/bin:/bin:/usr/bin/X11:/usr/local/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oracle/bin:/usr/ora/d02/oracle/fdidb/9.2.0/jre/1.4.2/bin:.)
Is making sure the location is in the PATH enough?
Yes. But the output from the which command shows that /usr/bin is actually in your PATH (indeed if it were not there, a lot of other things could not work). At this point you can check the integrity of the gcc package:
Code:
rpm -V gcc
and eventually if /usr/bin/gcc is a broken link, instead of a real executable. I assume the error message shown in the title of this thread is affected by a typo:
.M...... /usr/bin/gcc
prelink: /lib/libc-2.5.so has a dependency cycle
prelink: /usr/bin/gcov: at least one of file's dependencies has changed since prelinking
S.?..... /usr/bin/gcov
prelink: /lib/libc-2.5.so has a dependency cycle
prelink: /usr/bin/i386-redhat-linux-gcc: at least one of file's dependencies has changed since prelinking
S.?..... /usr/bin/i386-redhat-linux-gcc
prelink: /lib/libc-2.5.so has a dependency cycle
prelink: /usr/bin/protoize: at least one of file's dependencies has changed since prelinking
S.?..... /usr/bin/protoize
prelink: /lib/libc-2.5.so has a dependency cycle
prelink: /usr/bin/unprotoize: at least one of file's dependencies has changed since prelinking
S.?..... /usr/bin/unprotoize
prelink: /lib/libc-2.5.so has a dependency cycle
prelink: /usr/libexec/gcc/i386-redhat-linux/4.1.1/collect2: at least one of file's dependencies has changed since prelinking
S.?..... /usr/libexec/gcc/i386-redhat-linux/4.1.1/collect2
This confirms that the files originally installed by the gcc package have been modified. In particular, M means "Mode differs (includes permissions and file type)". I suspect that this is due to a subsequent installation of the compat-gcc-34 package. Can you verify what /usr/bin/gcc actually is? For example, a simple
As you can see, gcc is not there! However, looking at its size, I can confirm that /usr/bin/gcc.orig is the original /usr/bin/gcc executable (that one provided by the gcc-4.1.2 package). The question now is how to restore the gcc package. If you're not the system administrator of this machine, you have to ask him/her to restore it for you. Otherwise, you can try to rename /usr/bin/gcc.orig to /usr/bin/gcc. I doubt the solution can be so simple, due to the number of warnings you got from the package verification.
You have to investigate the reasons of these modifications and then eventually you can try to force the gcc re-installation:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.