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/libFor 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/libFor information about setting an environment variable permanently, refer to the Linux shell documentation.
Troubleshooting
- Confirm the name of the library file used by your driver manager.
- In a text editor, open the teradata.teradataodbc.ini file. This file is located in [InstallDir]/lib by default.
- Add the following line to the end of the file, in which [DMLibFile] is the name of the library file:
ODBCInstLib=[DMLibFile]
You can set the environment variable TERADATAODBCINI to specify an alternative pathname for teradata.teradataodbc.ini. - Save the teradata.teradataodbc.ini file.