echo " ODBC CLI driver, Application, or gem directory not existing.\n Abort." exit 1

fi

#deploy applications and ODBC CLI driver to specified path cd $INSTPATH

cp -R "$CURPATH/$DIR_APP" .

#Install the driver.

cd $CURPATH/$DIR_GEM

gem install ibm_db --ignore-dependencies

cd $INSTPATH mkdir -p "$DIR_DRV" cd $DIR_DRV

for file in "$CURPATH/$DIR_DRV/*.tar.gz" do

gunzip -c $filetar -xf - done

# register system variable

ODBCLIBPATH=`find $INSTPATH/$DIR_DRV -type d -name lib`

case $REGVAR in

Y)echo "

#The following lines have been added by ruby_app_install script export LIBPATH=$LIBPATH:$ODBCLIBPATH

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ODBCLIBPATH " >> ~/.profile

if [ `uname` == "AIX" ]; then echo " export

DB2_CLI_DRIVER_INSTALL_PATH=$DB2_CLI_DRIVER_INSTALL_PATH:$ODBCLIBPATH" >> ~/.profile fi

echo "

System variables registered.

Please re-login to have the settings be effective."

;;

*) echo "

You choose not registering system variable.

It could be finished later by adding following lines to your user profile: export LIBPATH=$LIBPATH:$ODBCLIBPATH

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ODBCLIBPATH" if [ `uname` == "AIX" ]; then

echo " export DB2_CLI_DRIVER_INSTALL_PATH=$DB2_CLI_DRIVER_INSTALL_PATH:$ODBCLIBPATH"

fi

;;

esac

printf "\n Deployment finished.\n"

186DB2 Deployment Guide

Page 200
Image 200
IBM manual 186 DB2 Deployment Guide