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 depend 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-15_0 is the home directory of 15.5 version of the Open Client and Open Server products.
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. See 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 HP-UX PA-RISC 32-bit HP HP-UX PA-RISC 32-bit using native threads |
hpux nthread_hpux |
SHLIB_PATH |
HP HP-UX PA-RISC 64-bit HP HP-UX PA-RISC 64-bit using native threads |
hpux64 nthread_hpux64 |
LD_LIBRARY_PATH |
HP HP-UX Itanium 32-bit HP HP-UX Itanium 32-bit using native threads |
hpia nthread_hpia |
SHLIB_PATH |
HP HP-UX Itanium - 64-bit HP HP-UX Itanium - 64-bit using native threads |
hpia64 nthread_hpia64 |
LD_LIBRARY_PATH |
IBM AIX RS/6000 32-bit IBM AIX RS/6000 32-bit using native threads |
rs6000 nthread_rs6000 |
LIBPATH |
IBM AIX RS/6000 64-bit IBM AIX RS/6000 64-bit using native threads |
rs600064 nthread_rs600064 |
LIBPATH |
Linux x86 32-bit Linux x86 32-bit using native threads |
linux nthread_linux |
LD_LIBRARY_PATH |
Linux POWER 32-bit Linux POWER 32-bit using native threads |
ibmplinux nthread_ibmplinux |
LD_LIBRARY_PATH |
Linux POWER 64-bit Linux POWER 64-bit using native threads |
ibmplinux64 nthread_ibmplinux64 |
LD_LIBRARY_PATH |
Linux x86-64 64-bit Linux x86-64 64-bit using native threads |
linux64 or linuxamd64 nthread_linux64 or nthread_linuxamd64 |
LD_LIBRARY_PATH |
Solaris SPARC 32-bit Solaris SPARC 32-bit using native threads |
sun_svr4 nthread_sun_svr4 |
LD_LIBRARY_PATH |
Solaris SPARC 64-bit Solaris SPARC 64-bit using native threads |
sun_svr464 nthread_sun_svr464 |
LD_LIBRARY_PATH_64 |
Solaris x86-64 32-bit Solaris x86-64 32-bit using native threads |
sunx86 nthread_sunx86 |
LD_LIBRARY_PATH |
Solaris x86-64 64-bit Solaris x86-64 64-bit using native threads |
sunx8664 nthread_sunx8664 |
LD_LIBRARY_PATH_64 |
For Embedded SQL/COBOL applications, set these environment variables in addition to the ones listed above:
COBDIR – set to the path of your COBOL compiler.
PATH – add $COBDIR/bin.