Extensive file searching on Unix

On Unix, SQL Anywhere programs, including the database server and administration utilities, can perform a more extensive search for required files such as DLLs or shared libraries. In these cases, SQL Anywhere programs look for files in the following order:

  1. The executable path (if it can be determined).

  2. The SQL Anywhere installation path is a single directory specified by the $SQLANY12 environment variable if it is defined.

  3. No path (the current working directory).

  4. $HOME/.sqlanywhere12 directory

  5. The PATH environment variable.

  6. The LIBPATH environment variable:

    • LD_LIBRARY_PATH on Linux and Solaris
    • LD_LIBRARY_PATH and SHLIB_PATH on HP-UX
    • LIBPATH on IBM AIX
    • DYLD_LIBRARY_PATH on Mac OS X
Note

On Unix, SQL Anywhere searches the following paths relative to each location in the preceding list:

  1. .

  2. ..

  3. ./bin32 and ../bin32 (32-bit programs only)

  4. ./bin64 and ../bin64 (64-bit programs only)

  5. ./lib32 and ../lib32 (library files for 32-bit programs only)

  6. ./lib64 and ../lib64 (library files for 64-bit programs only)

  7. ./java (for Java-related files)

  8. ../java (for Java-related files)

  9. ./scripts (for SQL script files)

  10. ../scripts (for SQL script files)

  11. ./res (for .res files)

  12. ../res (for .res files)

  13. ./tix (for .tix files)

  14. ../tix (for .tix files)