LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-22-2012, 02:55 PM   #1
raistie
LQ Newbie
 
Registered: Aug 2012
Posts: 4

Rep: Reputation: Disabled
gcc32: command not found even after compat-libstdc++ installed


Somebody please help me for i am at my wits end.

I have yum installed compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm on CentOS 6 together with latest gcc...

"Installed:
compat-libstdc++-33.x86_64 0:3.2.3-69.el6"

but when i type gcc32, command still not found! can anyone help me please?
i urgently need to get gcc3.2 up and running because of this old code which i can't convert as yet or downgrade my os.

It would be great if you could point me to the proper rpm, or how i can get gcc32 running on my system...

Thank you
 
Old 08-22-2012, 04:20 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,043
Blog Entries: 14

Rep: Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213
compat-lib* doesn't install gcc - it installs libraries that can be used to run older code. That may in fact be what you need however but it won't give you "gcc32".

Why do you think you need gcc32 as opposed to gcc? When you type "which gcc" where is it? (e.g. /usr/bin/gcc?) If you run "rpm -qf $(which gcc)" what does it show you?

What happens when you try to compile the older code with the version of gcc you have installed? It might be more to the point to ask folks how to solve your compilation errors by providing details of same.
 
Old 08-23-2012, 06:56 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,735

Rep: Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317
Duplicate of post # 11 here ..

http://www.linuxquestions.org/questi...led-926353/#11
 
Old 08-31-2012, 04:43 PM   #4
raistie
LQ Newbie
 
Registered: Aug 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
i have been trying many things and in the end i still failed.

what i did was compile the
compat-libstdc++-33-3.2.3-69.el6.src.rpm,

installed compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm,

tried to build it from the BUILD folder and only got errors like
cp/decl.c:13867: error: lvalue required as left operand of assignment

is there no way that gcc3.2 can be installed on centos 6?

rpm -qf $(which gcc) gives me gcc-4.4.6-4.el6.x86_64

about to pull my hair out and start weeping
 
Old 08-31-2012, 05:02 PM   #5
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,043
Blog Entries: 14

Rep: Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213
If you're not going to read the posts people make in this and the other threads then you're not going to get further answers.

You've already been told in THIS thread that the compat-libstd does NOT provide gcc - it provides libraries only.

You've already been told in the OTHER thread that the oldest you can install with compat-gcc is gcc34.

You've also been asked in both threads what it is you're trying to compile and what errors you're getting. If you ignore responses and don't answer requests for further information nobody can really help you and nobody will really want to do so.
 
Old 08-31-2012, 05:07 PM   #6
raistie
LQ Newbie
 
Registered: Aug 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
alright sorry about that, i just thought it would be irrelevant what i want to compile.
its old game code that requires gcc32, im not sure why you need to know this,
but it really requires gcc32. All the errors are compatibility errors which are generic
in that the new gcc 4 does not support gcc32 and thus cannot compile.

the errors i am getting from compiling gcc32 code with gcc 4 is really irrelevant,
as it requires a whole recode of the code. what i am looking for is how to get gcc32
installed, not how i can get gcc4 to compile my code. that was my original request
and if nobody can help, it is ok. thanks.
 
Old 08-31-2012, 05:29 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,735

Rep: Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317
# 6
Quote:
its old game code that requires gcc32
Which source code is it about ? ? A link please.

A lot of "gcc32 style code" will compile OK with gcc-3.3.3 :
An x86_64 compiler is available from the "gcc/SLE-10_SDK" repo :
http://download.opensuse.org/reposit...cc/SLE-10_SDK/
> http://download.opensuse.org/reposit...10_SDK/x86_64/

AFAIK, you cannot build a gcc-3.2.3 in a 64bits CentOS 6.x
No problems with a 32bits "EL6" OS : gcc32 should work OK.

.

Last edited by knudfl; 08-31-2012 at 05:31 PM.
 
Old 08-31-2012, 08:35 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,225

Rep: Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520
the REASON that knowing just WHAT it is you are building in important is that a LOT of old 2000 - 2005 programs are VERY specific to the compiler
HOWEVER
some are NOT
i use one program wrote in 2002 BUT because it is rather simple it DOSE build in the current gcc 4.6

however i also have NEW programs that DO NOT build in gcc 4.3 or newer and REQUIRE an older compiler
( google for the reasons that the current gnu compiler dose not work on old code )

Most of the time , though, GCC 3.4 will do
Cent6 dose have the old gcc 3.4 in the repos

but on those RARE ocations that 3.4 will NOT do and YOU can NOT HACK the program to work in gcc 3.4

then YOU can build the gcc 3.2 compiler ( but on a 32 bit computer it is THAT old )


also you should not be using the "src" rpms
compat-libstdc++-33-3.2.3-69.el6.src.rpm
unless YOU HAVE TO !!! (like to include a patch )

Last edited by John VV; 08-31-2012 at 08:38 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
package compat-libstdc++-33-3.2.3-69.el6.i686 is already installed sureshpanchanathan Linux - Newbie 11 08-23-2012 05:00 AM
[SOLVED] where to get compat-libstdc++-33 and libstdc++.so.5 files for Symantec Backup Agent ? albertwt Linux - Newbie 4 09-09-2010 10:02 AM
How to find libstdc++* or compat-libstdc++-* bopedibop Linux - Newbie 2 04-29-2008 10:53 AM
package compat-libstdc++ is not installed jimmyjiang Red Hat 4 04-16-2008 10:41 AM
Need older libraries: libstdc++-3.2.4, libstdc++-libc6.-1.so.2, & compat-2004.7.1 al_moline SUSE / openSUSE 2 10-19-2007 08:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration