Specifying ODBC Driver Managers on Non-Windows Machines

ODBC Driver for Teradata® User Guide

brand
Teradata Tools and Utilities
prodname
ODBC Driver for Teradata
vrm_release
16.20
category
User Guide
featnum
B035-2526-108K

Set the library path environment variable to verify your machine uses the correct ODBC driver manager to load the driver.

macOS

For macOS machines, set the DYLD_LIBRARY_PATH environment variable to include the paths to the ODBC driver manager libraries. For example, if the libraries are installed in /usr/local/lib, run the following command to set DYLD_LIBRARY_PATH for the current user session:

export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/usr/local/lib

For information about setting an environment variable permanently, refer to the macOS shell documentation.

Linux

For Linux machines, set the LD_LIBRARY_PATH environment variable to include the paths to the ODBC driver manager libraries. For example, if the libraries are installed in /usr/local/lib, run the following command to set LD_LIBRARY_PATH for the current user session:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

For information about setting an environment variable permanently, refer to the Linux shell documentation.

Troubleshooting

An error message occurs when the name of the library file for the driver manager is different than the default. To resolve this issue:
  1. Confirm the name of the library file used by your driver manager.
  2. In a text editor, open the teradata.teradataodbc.ini file. This file is located in [InstallDir]/lib by default.
  3. Add the following line to the end of the file, in which [DMLibFile] is the name of the library file:
    ODBCInstLib=[DMLibFile]
  4. Save the teradata.teradataodbc.ini file.