This appendix contains the values of the environment variables required for your Sybase applications to compile and work correctly. The environment variables that must be set depends on your application, and include:
SYBASE – set to the path of the Sybase installation directory.
SYBASE_OCS – set to the subdirectory containing the Open Client and Open Server version number. For example, OCS-12_5.
DSQUERY – set to the name of the Adaptive Server or Open Server.
DSLISTEN – set to the name of the Open Server.
SYBPLATFORM – depends on the platform that you are running and whether or not you are using reentrant libraries. Refer to Table B-1 for the appropriate variable setting.
You must set the platform specific library path variable listed in Table B-1 to $SYBASE/$SYBASE_OCS/lib to run programs linked with shareable (dynamic) libraries. If you are running in debug mode, set the platform-specific library path variable to $SYBASE/$sybase_ocs/devlib.
For ESQL/COBOL applications, include the location of the $COBDIR/coblib directory.
Platform |
SYBPLATFORM setting |
Platform-specific library path variable |
---|---|---|
HP Tru64 UNIX using native threads |
axposf nthread_axposf |
LD_LIBRARY_PATH |
HP Itanium - 32-bit HP Itanium - 32-bit using native threads HP Itanium - 64-bit HP Itanium - 64-bit using native threads |
hpia nthread_hpia hpia64 nthread_hpia64 |
LD_LIBRARY_PATH |
HP 9000(8xx) - 32-bit HP 9000(8xx) - 32-bit using native threads HP 9000(8xx) - 64-bit HP 9000(8xx) - 64-bit using native threads |
hpux nthread_hpux hpux64 nthread_hpux64 |
SHLIB_PATH LD_LIBRARY_PATH |
IBM RS/6000 - 32-bit IBM RS/6000 - 32-bit using native threads IBM RS/6000 - 64-bit IBM RS/6000 - 64-bit using native threads IBM AIX 5.x 64-bit |
rs6000 nthread_rs6000 rs600064 nthread_rs600064 ibmaix64 |
LIBPATH |
Linux - 32-bit using native threads Linux - 64 - bit Linux - 64-bit using native threads |
nthread_linux linux64 nthread_linux64 |
LD_LIBRARY_PATH |
SGI – 32-bit version SGI – 64-bit version SGI – 32-bit version using native threads SGI – 64-bit version using native threads |
sgi sgi64 nthread_sgi nthread_sgi64 |
LD_LIBRARY_PATH |
Sun Solaris 2.x - 32-bit Sun Solaris 2.x - 32-bit using native threads Sun Solaris 2.x - 64-bit Sun Solaris 2.x - 64-bit using native threads |
sun_svr4 nthread_sun_svr4 sun_svr464 nthread_sun_svr464 |
LD_LIBRARY_PATH |
For Embedded SQL/COBOL applications you must set the following environment variables in addition to the ones listed above:
COBDIR – set to the path of your COBOL compiler
PATH – add $COBDIR/bin