LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 02-04-2005, 01:19 AM   #1
rulirahm
LQ Newbie
 
Registered: Sep 2004
Location: Indonesia
Distribution: Fedora Core 3
Posts: 19

Rep: Reputation: 0
gcc


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
 
Old 02-04-2005, 01:27 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
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.
 
Old 02-04-2005, 01:38 AM   #3
rulirahm
LQ Newbie
 
Registered: Sep 2004
Location: Indonesia
Distribution: Fedora Core 3
Posts: 19

Original Poster
Rep: Reputation: 0
is the version support for my redhat AS 2.1?
 
Old 02-04-2005, 01:48 AM   #4
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
I'm sorry, I looked at your profile and saw Suse 9.1 and totally forgot about the fact you said you were doing this on RedHat AS2.1.

I can only seam to find the src rpm's for RedHat AS 2.1. Do you have the install CD somewhere? The regular rpm should be on it somewhere.
 
Old 02-04-2005, 01:53 AM   #5
rulirahm
LQ Newbie
 
Registered: Sep 2004
Location: Indonesia
Distribution: Fedora Core 3
Posts: 19

Original Poster
Rep: Reputation: 0
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?

thx
 
Old 02-04-2005, 02:36 AM   #6
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
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.

-twantrd
 
Old 02-04-2005, 02:52 AM   #7
rulirahm
LQ Newbie
 
Registered: Sep 2004
Location: Indonesia
Distribution: Fedora Core 3
Posts: 19

Original Poster
Rep: Reputation: 0
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.

regards,

Ruli Rahmadi

ruly@semenpadang.co.id
 
Old 02-04-2005, 01:39 PM   #8
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Quote:
But make sure that u don't leave me
Hehehe. Sure, post any problems and we'll try to help.

-twantrd
 
Old 02-04-2005, 01:39 PM   #9
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Quote:
But make sure that u don't leave me
Hehehe. Sure, post any problems and we'll try to help.

-twantrd
 
Old 02-06-2005, 08:34 PM   #10
rulirahm
LQ Newbie
 
Registered: Sep 2004
Location: Indonesia
Distribution: Fedora Core 3
Posts: 19

Original Poster
Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 02:13 PM
Kernel compiling: gcc-3.3 is 586, should be gcc-3.3 386 Erik Plaggenmar Linux - Software 0 10-01-2004 11:38 AM
running software built with gcc 3.0.2 on Redhat 8 - gcc 3.2 dst1989 Linux - Software 3 03-08-2004 10:23 PM
a doubt with host gcc and arm-linux-gcc renjithgopal Linux - General 1 09-11-2003 04:02 PM
export CC=/usr/bin/gcc-3.2 - switch gcc version? ferreter Linux - Software 1 08-20-2003 12:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration