Workshop Compiler for Solaris

I have installed Solaris 8 on a SUN Blade 2000 SPARC system. Now I need to move this compiler:

$ /opt/SUNWspro/bin/cc -V
cc: WorkShop Compilers 4.2.1 04 Feb 1997 C 4.2.1

from the old system:
$ uname -a
SonOS 5.6 Generic_105181-30 sparc

to the new system. What is the easiest way of installing this compiler on the new system? Since I don't have the original install files, where can I download it from if I can not simply move the installation?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I guess you need a new bundle for Solaris 8
mehranalmasiAuthor Commented:
Hi ahoffmann,
I am not sure what you mean by bundle. can you be more specific?

Why not download the gcc compiler (binary packages) from:

installation procedure http:Q_21099108.html

please remember to install gdb, libgcc, glib,  libiconv, automake, autoconf  as well (download from the same site )
Become a Certified Penetration Testing Engineer

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

mehranalmasiAuthor Commented:
unfortunately it has to be WorkShop Compilers.

mehranalmasiAuthor Commented:
increasing points to 350
You can try to transfer the pkg accross, have a look at:


Or have a look at the CDs ship with your SUN Blade 2000 see if there is any new package in them.
mehranalmasiAuthor Commented:
Unless if I am missing something, the links you provided point to installing software in none-default location and how to create pkgadd software.
did you provide wrong links by mistake?
I don't think workshop compilers come with Solaris CD. As far as I know, no compilers are supplied when you purchase Solaris.

that's what i meant: Sun does not deliver compilers. The one you get with Solaris (bundled) is useless (more or less).
You have to ask you vendor of your Workshop to give you a package for you new Solaris.
I think your best bet is to simply request that Sun send you a new copy of the media (they should do this for free if you have a local Sun contact).  Presumably, you still have your licence code written down somewhere?
mehranalmasiAuthor Commented:
The software was purchased many years ago from a company that is no more!
No record of the license code either!!
Without the licence, you are going to be a little stuck.

Here's what I'd try.

Get a list of all the compiler packages with:

pkginfo|grep -i compiler

Then get a list of all the files in that package by doing

pkgchk -v <pkgname>

and copy to the new server.  You may have issues with libraries and dependencies.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mehranalmasiAuthor Commented:
Hi Tintin,
I guess the pkginfo may not list all used libraries and dependencies. What is the likelihood of that?
when such issues arise, is it not possible to to fix the problem by any listed error code, etc?

Artysystem administratorCommented:
mehranalmasi, for software developers Sun provides SunStudio 9 for free.
 It has WorkShop compiler inside. You may download and install it from here:
You have to register as a developer first. Registration is also free.

I have slightly newer version, but it should be compatible with your WorkShop enviroment:

$ /opt/SUNWspro/bin/cc -V
cc: Sun C 5.8 2005/10/13
usage: cc [ options] files.  Use 'cc -flags' for details
Artysystem administratorCommented:
I'm not shure about Solaris 8, try it.

At least it runs OK in Solaris 10:
$ uname -a
SunOS sf250 5.10 Generic sun4u sparc SUNW,Sun-Fire-V250
I won't work for Solaris 8.  Packages are compatible with later SunOS releases, but not older ones.
Artysystem administratorCommented:
From manual 'man sunstudio'

The Sun Studio 11 IDE is available on  the  following  plat-

     o Solaris[tm] Operating System, versions 8, 9, and 10
Ahh.  Good to know.
so prooved now what was said in the very first comment ;-)
Good work Nopius, Tintin.
mehranalmasiAuthor Commented:
thanks Nopius, I will try it  but the link is for Studio 10 not 9. Did you mean 10?
Artysystem administratorCommented:
No, it is a link to Studio 9. It's an error on web page.
At least it was so 3 months ago.
Artysystem administratorCommented:
mehranalmasi: you right, its SunStudio 10 there.

sunstudio10-ii-20050912-sol-sparc.tar.bz2        202.00 MB
mehranalmasiAuthor Commented:
Hi Nopius,
I went for your suggestion. Downloaded Studio 11 but when I try to run installer I get "Attach to native process failed"

Any idea what is causing this?

Check your disk space, eg, make sure that /tmp is not FULL.

Try to pull your package in the filesystem with more free space and try again.

If you need more help, post the output of "df -kl" command
mehranalmasiAuthor Commented:
                                   avail           capacity    mounted on
/dev/dsk/c1t1d0s0           1902295     5%              /
/dev/sdk/c1t1d0s6           3184663     23%            /usr
/proc                               0                0               /proc
swap                               3589880      1              /var/run
swap                               3589880      1              /tmp
/dev/dsk/c1t1d0s5            1682432      1              /opt
/dev/dsk/c1t1d0s0            34891445    1              /export/c1t2d0
/dev/dsk/c1t1d0s7            23017505    8              /export/home
Ok, no problem with disk space.

Have you apply the latest Solaris patches to your system? You might need to update Java in your system as well.

You can download the latest Recommended Patch Clusters:

and Java:
Artysystem administratorCommented:
SunStudio has Java GUI installer by default, you may also try either text mode installer or batch installer:

mehranalmasiAuthor Commented:
I have opened another question,
to resolve the "Attach to native process failed" problem.

thanks for your help. Although Tintin's solution was really what I was originally thinking about, I ended up installing Studio11.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.