Running app on field machine
I have installed sun studio 11 on my development machine (Sun OS 5.9) which earlier had Forte Developer 7.
I have compiled the whole application (written in C++) .
In order to run my application on a test (field) machine which is Sun OS 5.9 ( on which my appl built on Forte Developer 7 is running fine )
I assume
1.I need not install the whole Sun studio 11 on the test(field) machine.
2.It is enough if I install two patches
a)111712 ?64-bit Shared library for C++
b)111722 ?Math library(libm) patch ( as my executables depend on libm.so.1)
Is that all ?
In case if I wish to go back to previous set-up (on test machine) is it enough if I just un-install(remove) above patches ?
Can anybody please confirm this ?
Thanks a lot.
# 1
You can have both Forte Developer 7 and Sun Studio 11 "co-exist" on the same machine as long as they are installed on totally separated directories. Each installation of each release "must be the whole and complete installation". Each release must have all of their patches installed as well.
Remember a rule that Patch for one release can not be used for other releases except Solaris patches.
to go back and forthe between 2 releases, you only need to set environment variable PATH to point to bin directory of that release.
-Ngoc
# 2
Tnank You very much.
You mean to say I should install the whole of studio 11 on the field machine even though I will not be compiling my code on it ? I am under the impression the current test machine has only what is required on it and not the whole installation.
The PATH variable on the field machine has the following value :
/usr/bin::/opt/cms/bin:/opt/cms/tools:/ora_prod/app/oracle/product/9.2.0.1/bin: /usr/local/bin:/usr/sbin:/usr/bin
And surprisingly it does not have an entry for the path in which Sun Studio is installed.
# 3
Hi Ramesh,
You need to ensure that the field machine has the relevant Solaris patches required by Sun Studio installed (see http://developers.sun.com/prodtech/cc/downloads/patches/index.jsp for details). This applies only to patches required by the runtime (i.e. C++ libraries, C runtime libraries and dynamic linker), and obviously does not apply to the make, SCCS and 'as' patches.
If you're compiling with the bundled STLport you will need to ship that library with your software.
Also: remember that your development machine should never have newer revisions of any patches installed than are installed on the field machine. If you follow this rule, you will have no problems.
Michael
# 4
Thank you Michael.
Sorry ...I have one more question .
Suppose I install studio 11 in a different directory. But will not the libraries be placed in the standard /usr/lib and such other directories ?
If that is the case wont the new libraries be overwriting the old (Forte 7)libraries ?
So in case if I want to revert to previous (Forte Dev 7) env , what am I supposed to do ? Should I take the back up of entire disc ? And then try installing studio 11 ?
Thanks again.
Ramesh.
# 5
Hi Ramesh,
There's no need to revert these patches in the event of moving back to Forte 7.
The C++ libraries and math library are OS patches, not Sun Studio patches. If you install these on your development machine, they instantly become prerequisites for your field machine, irrespective of which compiler revision you use to compile your software.
If you have a look at the Sun compilers patch pages at http://developers.sun.com/prodtech/cc/downloads/patches/index.jsp, you'll see that the recommended Solaris patches for Solaris 9 are the same for Forte 7 and for Studio 11.
In other words, both compiler revisions need you to install the following four patches onto your development and field servers: 111711, 111712, 112963, 111722.
If you choose to run Studio 11, you should also run 117560. There is no need to remove this patch if you choose to revert to Forte 7.
You should bear in mind when choosing your compiler that Forte 7 is quite old now, and Studio 11 is a far superior compiler in terms of support for standard and advanced C++ syntax.
I hope this helps,
Michael