Possible to install both SUN C++ 4.2 and 5.0 on the same box?

Possible to install both SUN C++ 4.2 and 5.0 on the same box?

Post by Charles We » Sun, 21 Nov 1999 04:00:00



Any helps would be appreciated.

Thanks,
Charles

 
 
 

Possible to install both SUN C++ 4.2 and 5.0 on the same box?

Post by Martin Pau » Tue, 23 Nov 1999 04:00:00



> Any helps would be appreciated.

Yes it's possible. In fact I'm having 3.0.1, 4.0 and 5.0 installed
on the same machine right now.

For the compilers themselves, it's no problem at all, specify
a different package root directory when installing them, I'm
using /usr/local/SC-4.0 and /usr/local/SC-5.0 for example.

Regarding the license manager (SUNWlit and SUNWlicsw) your best
bet would be to install them on different machines.

If this is not possible you would install the most recent version
(the one from 5.0). Then combine all the licenses you have in
/etc/opt/licenses/licenses_combined. Beware, 5.0 uses a new vendor
daemon, sunwlicd. You'll have to use the old suntechd from 4.2
to serve the 4.2 licenses. Just copy it somewhere, and adapt the
path in licenses_combined.

hth, mp.
--
                         Martin Paul | Systems Administrator

                and Parallel Systems | Tel: 01-3105608-84
Liechtensteinstrasse 22, A-1090 Wien | Fax: 01-3105608-88

 
 
 

Possible to install both SUN C++ 4.2 and 5.0 on the same box?

Post by Charles We » Wed, 24 Nov 1999 04:00:00


I thought each C++ installation would copy some files into
/usr/lib, such as libc.a and libm.a etc. If that's the case,
would't it cause some troubles?

Thanks,
Charles



> > Any helps would be appreciated.

> Yes it's possible. In fact I'm having 3.0.1, 4.0 and 5.0 installed
> on the same machine right now.

> For the compilers themselves, it's no problem at all, specify
> a different package root directory when installing them, I'm
> using /usr/local/SC-4.0 and /usr/local/SC-5.0 for example.

> Regarding the license manager (SUNWlit and SUNWlicsw) your best
> bet would be to install them on different machines.

> If this is not possible you would install the most recent version
> (the one from 5.0). Then combine all the licenses you have in
> /etc/opt/licenses/licenses_combined. Beware, 5.0 uses a new vendor
> daemon, sunwlicd. You'll have to use the old suntechd from 4.2
> to serve the 4.2 licenses. Just copy it somewhere, and adapt the
> path in licenses_combined.

> hth, mp.
> --
>                          Martin Paul | Systems Administrator

>                 and Parallel Systems | Tel: 01-3105608-84
> Liechtensteinstrasse 22, A-1090 Wien | Fax: 01-3105608-88

 
 
 

Possible to install both SUN C++ 4.2 and 5.0 on the same box?

Post by Martin Pau » Thu, 25 Nov 1999 04:00:00



> I thought each C++ installation would copy some files into
> /usr/lib, such as libc.a and libm.a etc. If that's the case,
> would't it cause some troubles?

no, those come with the OS. otherwise you wouldn't be able to use
the compilers (exported via NFS) on a machine where you haven't
directly installed them.

Look at this:

# grep SPRO /var/sadm/install/contents | wc -l
   12407
# grep SPRO /var/sadm/install/contents | grep -v '^/usr/local/SC'

hth, mp.
--
                         Martin Paul | Systems Administrator

                and Parallel Systems | Tel: 01-3105608-84
Liechtensteinstrasse 22, A-1090 Wien | Fax: 01-3105608-88

 
 
 

1. Porting problems Workshop 4.2 to 5.0 unreferenced symbols pl help



You can't use both standard iostreams and "classic" iostreams
in the same code.

To just recompile C++ 4.2 code with C++ 5.0, use the -compat=4
option. To port to ANSI/ISO standard, first fix all warnings,
then enable new features, but still compile with "classic"
iostreams.

F'up to comp.sys.sun.apps

Thomas

Sent via Deja.com http://www.deja.com/
Before you buy.

2. Reactions Please

3. WTB: Sun WorkShop Compilers C/C++ version 4.2

4. Several Contains join by AND OR

5. FS: Sun Workshop Pro C++ 4.2

6. Password Admin Software?

7. FS: (new) Sun WorkShop C/C++ Compilers 4.2 for x86

8. CISCO 760 ISP connection trouble, newbye question please help

9. Help - STL in Sun Workshop Compile C++ 4.2?

10. libstc++ under Sun C++ 4.2?

11. Compatibility between C++ 4.1 and 4.2 with RTTI

12. WTB: Workshop C++ 4.2

13. WTB: C/C++ 4.2