The "No $ODBCINI
environment variable has not been set.
If you receive this error, take the following action:
$ cd /opt/openlink
shell | command |
---|---|
sh, bash, zsh | . ./openlink.sh |
ksh | source ./openlink.sh |
csh, tcsh | source ./openlink.csh |
$ODBCINI
, $ODBCINSTINI
, and $OPENLINKINI
are set.
For example:
% set | grep INI ODBCINI=/opt/openlink/bin/odbc.ini ODBCINSTINI=/opt/openlink/bin/odbcinst.ini OPENLINKINI=/opt/openlink/bin/openlink.ini
openlink.sh
or openlink.csh
script.
Take note of the environment variable settings therein.
Then, try to manually set them on the command line.
For example (your output will differ!):
% cd /opt/openlink % cat openlink.sh ODBCINI=/opt/openlink/bin/odbc.ini ODBCINSTINI=/opt/openlink/bin/odbcinst.ini OPENLINKINI=/opt/openlink/bin/openlink.ini LD_LIBRARY_PATH=/opt/openlink/lib OPL_LICENSE_DIR=/opt/openlink/bin export ODBCINI ODBCINSTINI OPENLINKINI LD_LIBRARY_PATH OPL_LICENSE_DIR % export UDBCINI=/opt/openlink/bin/udbc.ini % export ODBCINI=/opt/openlink/bin/odbc.ini % export ODBCINSTINI=/opt/openlink/bin/odbcinst.ini % export LD_LIBRARY_PATH=/opt/openlink/lib % export OPL_LICENSE_DIR=/opt/openlink/bin
% /opt/openlink/bin/iodbc-admin-httpd.sh stop % /opt/openlink/bin/iodbc-admin-httpd.sh start
set uname -a
openlink.sh
and openlink.csh
files