Link to home
Start Free TrialLog in
Avatar of Bvm 18
Bvm 18

asked on

how to install gcc-3-runtime on solaris 11

I want to install gcc-3-runtime on solaris 11. But, always fails.

$pkg install gcc-3-runtime
No updates necessary for this image.
Avatar of David Favor
David Favor
Flag of United States of America image

gcc3... whew, so very old...

Current gcc-7.4 + gcc-8.3 are latest stable versions.

To install gcc3 runtime libraries, you'll likely have to build this yourself.

Big Tip: You must be super careful to avoid commingling any custom built gcc code with system level code. If you accidentally do a make install, without correctly pointing your output directory hierarchy to non-system directories, you will destroy your machine.

Logins will fail. Reboot will fail. A full obliteration install will be required to recover.

Be very careful.

If your gcc3 dependent code has no Solaris-isms (only calls C + C++ libraries), then likely best to spin up Linux + do all this sort of work inside an LXD container, so if you destroy the container, you'll have no effect on your machine level install.

Tip: If you have code dependent on gcc3, then there must not be any Solaris-isms in the code, because after you get gcc working, you'll then have to install any referenced Solaris libraries matching the API versions of the App code with the gcc3 dependency.

EOL (end of life) for gcc3 was in the 2004-2005 time frame, so there will be many shared object versioning changes over a 14+ year span.

So... building gcc3 will likely only be your first step.

Suggestion: Before you invest a massive amount of time building gcc3, explore your App code using ldd + make sure your App code makes no reference to any Solaris libraries. If any references are made, best make sure you can find copies of these libraries as your first step.
Avatar of Bvm 18
Bvm 18

ASKER

Thanks David Favor.

This is prerequisite for our product installation. Actually, C++ binaries use 4..8.x compiler. I already installed "pkg install gcc" which was installed gcc 7.x versions. What is right version of gcc runtime for this kind of installations. Tried to install gcc-4-runtime, failed.
ASKER CERTIFIED SOLUTION
Avatar of David Favor
David Favor
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial