Avatar of binadmin
binadmin
 asked on

need to install gcc-3.3.2 in addition to the existing gcc-3.4.6

Solaris 10 Sparc....
Currently gcc-.3.4.6 is installed....need to install gcc-3.3.2 in addition to the existing gcc-3.4.6 and getting the error below. Is there a way to install gcc-3.3.2 while gcc-3.4.6 is installed? I don't want to uninstall gcc-3.4.6 if I don't need to

# gunzip gcc-3.3.2-sol10-sparc-local.gz
# pkgadd -d gcc-3.3.2-sol10-sparc-local

The following packages are available:
  1  SMCgcc     gcc
                (sparc) 3.3.2

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: all

Processing package instance <SMCgcc> from </tmp/gcc-3.3.2-sol10-sparc-local>

gcc(sparc) 3.3.2

Current administration requires that a unique instance of the
<SMCgcc> package be created.  However, the maximum number of
instances of the package which may be supported at one time on the
same system has already been met.

No changes were made to the system.
#

Thanks!
Unix OS

Avatar of undefined
Last Comment
binadmin

8/22/2022 - Mon
wesly_chen

download the source
http://ftp.gnu.org/gnu/gcc/gcc-3.3.2/gcc-3.3.2.tar.gz

Say download into /tmp/gcc/

gunzip gcc-3.3.2.tar.gz
tar xf  gcc-3.3.2.tar
cd gcc-3.3.2
./configure --prefix=/usr/local/gcc332
make
make install
wesly_chen

Or try
pkgadd -R /opt -d gcc-3.3.2-sol10-sparc-local
It will install under /opt (or /opt/usr/local)
Brian Utterback

You could try getting a gcc package from somewhere else so the package instance is not called SMCgcc.

Installing into a different root location will probably not work. The package itself sets a parameter that says whether or not you can install it more than once. It is likely the case that different versions of gcc with the configuration used in the SMCgcc package will conflict with one another no matter where you install it, which is why they set it up this way.

The only other way is going to be configure and build it from scratch, which can be kind of tricky to get completely right. However it is usually not too difficult to  get it up and running for the majority of cases. The comment above tells you how to get started.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
binadmin

ASKER
Following this instruction I run the error below

wesly_chen:download the source
http://ftp.gnu.org/gnu/gcc/gcc-3.3.2/gcc-3.3.2.tar.gz

Say download into /tmp/gcc/

gunzip gcc-3.3.2.tar.gz
tar xf  gcc-3.3.2.tar
cd gcc-3.3.2
./configure --prefix=/usr/local/gcc332
make
make install



error:
GS=' | sed -e s/.*=$/XFOO=/`"  "`echo 'LIBGCC2_DEBUG_CFLAGS=' | sed -e s/.*=$/XFOO=/`"  "`echo 'LIBGCC2_INCLUDES=' | sed -e s/.*=$/XFOO=/`"  "`echo 'ENQUIRE=' | sed -e s/.*=$/XFOO=/`"  "`echo 'STAGE1_CFLAGS=' | sed -e s/.*=$/XFOO=/`"  "`echo 'BOOT_CFLAGS=' | sed -e s/.*=$/XFOO=/`" all); \
else \
  true; \
fi
make: Fatal error: Command failed for target `all-gcc'
# make

"`echo 'ENQUIRE=' | sed -e s/.*=$/XFOO=/`"  "`echo 'STAGE1_CFLAGS=' | sed -e s/.*=$/XFOO=/`"  "`echo 'BOOT_CFLAGS=' | sed -e s/.*=$/XFOO=/`" install); \
else \
  true; \
fi
make: Fatal error: Command failed for target `install-gcc'
#
wesly_chen

Could you post more message for the configuration error?
ASKER CERTIFIED SOLUTION
binadmin

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
binadmin

ASKER
Thanks for help everyone....I uninstalled gcc-3.4.6 and installed 3.3.2 and its all good now..Thnx
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.