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.
when try to install file gcc-2.96-129.7.2.src.rpm using command rpmbuild --rebuild gcc-2.96-129.7.2.src.rpm, i found some errors on my redhat AS 2.1:
../configure: gcc: command not found
*** The command 'gcc -o conftest -O2 -march=i386 -mcpu=i686 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
error: Bad exit status from /var/tmp/rpm-tmp.82172 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.82172 (%build)
[root@spocs master]#
how to fix it? and what is the correct version for gcc and gcc-gcc++ for my redhat AS 2.1? Have the URL 4 d/l it?
btw here is the story why the gcc rpm has been removed fron my system:
ask question from forums:
i've been so many times try to install oracle collaboration suite on redhat linux AS 2.1 but always get error when running configuration assistant (infrastructure) when to create Oracle Internet Directory :
"lsnrport" 1521 could not contact OID server.
how to fix it?
get the answer from forum :
Hi may be you can try this
The solution could be :
(1) Download gcc_old-2.95.3-7.i586.rpm
(2) Remove the existing compiler/library, as root type:
rpm -e --nodeps gcc gcc-c++
(3) Install the old gcc (ver 2.95)
rpm -i gcc_old-2.95.3-7.i586.rpm
This will install GCC 2.95 in /opt/gcc295
(3) Create symbolic links in /usr/bin
ln -s /opt/gcc295/bin/gcc /usr/bin/gcc
ln -s /opt/gcc295/bin/gcc /usr/bin/cc
ln -s /opt/gcc295/bin/g++ /usr/bin/g++
ln -s /opt/gcc295/bin/g++ /usr/bin/c++
HTH
The last thing i did is execute the command:
rpm -e --nodeps gcc gcc-c++
After that, the optional system requirement for installing colaboration (gcc) is missing from my system.
How to fix it?
Is there any web site that provide *.rpm file? not *.src.rpm?
Thank u 4 ur kind att.
U can meet me at irc server: irc.allnetwork.or.id channel #ptsp, #antigravity. My nick: ruly
Ye Old Chicken and Egg problem. You can't compile your compiler because you don't have a compiler
Suse 9.1 Gcc-3.3.3-i586 Package. I couldn't find any older GCC versions, but there is no reason why you can't have two GCC versions installed. I recommend keeping the 3.3.3 version and running the other version along side it.
Yes i have it. Btw did u knoe the step by step to reinstall my gcc version with cd-rom? I mean whereis the rpm sources, command or application to add/remove it?
Look inside Cd's 1-4 or 2-4. I believe cd #1 has very few packages. Ok, once you pop the cd's in, look for Redhat/RPM/Products and it should be there. I don't remember exactly but I know it's under directory Redhat. Once you find gcc-*.rpm, install that along with any dependencies that it requires.
Ok, and thanks a lot. But make sure that u don't leave me. It's make me sick trying to solve this problem and also the main goal of installing redhat is to try to install oracle collaboration suite. Our office will be back on monday. We work on monday until friday.
Oh no, I don't have it. My Bos has it and he don't available right now, maybe he is not in good health. But btw, i 've RH9 CD (KDE) and mandrake. Is it support for mt RH AS 2.1. I see that the gcc ver is 3.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.