I am reading through the install script and this is what it says. I remember when I ran the installer I specified that I wanted it in my /home directory. Reading through this text, I think I can confirm that /home was the only space where something was installed, could someone take a look at this for a sanity check? The only thing I don't understand is where it says INSTALL_DIR then points to /usr/local, but I just went there to check and there is no folder. Maybe that is where it installs the software if you do not specify another location.
Thanks a lot for the pointers. I am new to Linux and I don't know if I'll use it much in my career, in most of my core classes so far we are using Autocad, but it's always good to learn something new in case I run across this sometime
#!/bin/sh
#
# $Id:
#
# This script will install Exelis VIS products for Unix.
#
yesno()
{
#
# This script asks a y/n question of the user:
#
# $* - The y/n question to ask, without the "(y/n) ?" at the end.
#
# A 0 is echoed for "no", a 1 for "yes".
#
if [ "`echo -n testing123`" = "testing123" ]; then
ECHO_NONL="echo -n"
ECHO_NONL_TAIL=
else
ECHO_NONL=echo
ECHO_NONL_TAIL=\\c
fi
RESP=""
while [ "$RESP" != y -a "$RESP" != n ]
do
$ECHO_NONL "$*? (y/n): $ECHO_NONL_TAIL" > /dev/tty
read RESP
RESP=`echo $RESP | tr '[A-Z]' '[a-z]'`
if [ "$RESP" != y -a "$RESP" != n ]; then
echo " <Please answer y for yes or n for no>" > /dev/tty
fi
done
if [ "$RESP" = y ]; then
return 1
else
return 0
fi
}
tar_unpack()
{
# This unpacks tar file
# $1 - file to untar
# $2 - String to echo
FILENAME=$1
DISPLAY_STRING=$2
echo "Unpacking $DISPLAY_STRING ..."
gunzip -c $FILENAME | $TAR $TAR_OPTIONS -
if [ $? != 0 ]; then
echo "$SCRIPT: error untarring $FILENAME in $INSTALL_DIR."
fi
}
SILENT_INSTALL=0
NO_JAVA_INSTALL=0
while getopts ":sj" opt; do
case $opt in
s)
SILENT_INSTALL=1
;;
j)
NO_JAVA_INSTALL=1
;;
\?)
echo "Invalid option: -$OPTARG" >&2
;;
esac
done
#######################################################
# Installation
########################################################
USER=`whoami`
SCRIPT=`basename $0`
OSNAME=`uname`
MACHINENAME=`hostname`
WEB_INSTALL=0
INSTALL_DIR="/usr/local/harris"
INSTALL_DICOM=0
INSTALL_LINUX=0
NO_SYMLINKS=0
INSTALL_DARWIN=0
INSTALL_IDL_HELP=0
INSTALL_IDL_ENVI_HELP=0
POST_UNPACK_OPTIONS=
INS_TYPE="ENVI"
INS_NAME="ENVI"
IDL_VERSION=87
IDL_VERSION_MAIN_NAME="8.7"
IDL_VERSION_NAME="8.7.2"
ENVI_VERSION=55
ENVI_VERSION_MAIN_NAME="5.5"
ENVI_VERSION_NAME="5.5.2"
ENVIBIN=envi$ENVI_VERSION/bin
LINUX_TEXT=" Linux - X86 (64-bit)"
if [ "$INS_TYPE" = "IDL" ]; then
IDLBIN=idl$IDL_VERSION/bin
PROD_VERSION=$IDL_VERSION
PROD_VERSION_NAME=$IDL_VERSION_NAME
PROD_VERSION_MAIN_NAME=$IDL_VERSION_MAIN_NAME
PROD_NAME=$INS_NAME
PROD_FULL_NAME="$PROD_NAME $PROD_VERSION_NAME"
PROD_BIN=$IDLBIN
EXIST_TESTFILE=$IDLBIN/idl
fi
if [ "$INS_TYPE" = "ENVI" ]; then
IDLBIN=envi$ENVI_VERSION/idl$IDL_VERSION/bin
PROD_VERSION=$ENVI_VERSION
PROD_VERSION_NAME=$ENVI_VERSION_NAME
PROD_VERSION_MAIN_NAME=$ENVI_VERSION_MAIN_NAME
PROD_NAME=$INS_NAME
PROD_FULL_NAME="$PROD_NAME $PROD_VERSION_NAME"
PROD_BIN=$ENVIBIN
EXIST_TESTFILE=$ENVIBIN/envi
fi
if [ "$INS_TYPE" = "ORTHO" ]; then
PROD_FULL_NAME="ENVI Photogrammetry 5.5.2"
PROD_BIN=$ENVIBIN
fi
if [ "$INS_TYPE" = "FLEXNET" ]; then
PROD_FULL_NAME="FlexNet Server 1.0"
PROD_BIN=$ENVIBIN
fi
if [ -f /bin/chown ]; then
CHOWN=/bin/chown
else
if [-f /etc/chown]; then
CHOWN=/etc/chown
else
CHOWN=/usr/sbin/chown
fi
fi
if [ \( -f /bin/dirname \) -o \( -f /usr/bin/dirname \) ]; then
UDIR=`dirname $0`
else
UDIR=`echo $0 | awk -F\/ '{if(NF==1)
printf(".\n");else{for(i=1;i<NF;i++){if(i>1)printf("%s","/"); printf("%s",$i) ;}printf("\n")}}'`
fi
if [ "$UDIR" = "." ]; then
UDIR=`pwd`
fi
if [ -f "$UDIR/install/web" ]; then
WEB_INSTALL=1
fi
if [ \( "$OSNAME" = "SunOS" \) ]; then
gtar --version > /dev/null 2>&1
if [ $? != 0 ]; then
echo "gtar was not found. Please be sure gtar is installed on yo ur system and included in your PATH."
exit 1
else
TAR="gtar"
fi
else
TAR="tar"
fi
if [ \( "$WHOAMI" != "root" \) ]; then
TAR_OPTIONS="-xf"
else
TAR_OPTIONS="-xpf"
fi
#----------
#Platform Files
#----------
if [ \( "$INS_TYPE" = "ENVI" \) ]; then
ENVI_TAR_DARWIN_X86_64="envi.bin.darwin.x86_64.tar.gz"
ENVI_TAR_LINUX="envi.bin.linux.x86_64.tar.gz"
ENVILIDAR_TAR_LINUX="envilidar.bin.linux.x86_64.tar.gz"
ENVI_TAR_MAC_APPLESCRIPTS="envi_mac_applescripts.tar.gz"
ENVI_TAR_CLASSIC_HELP="envi_classic_help.tar.gz"
ENVI_TAR_HELP="envi_help.tar.gz"
fi
TAR_DARWIN_X86_64="bin.darwin.x86_64.tar.gz"
TAR_LINUX="bin.linux.x86_64.tar.gz"
TAR_ORTHO_BASE="ortho_base.tar.gz"
TAR_FLEXNET_BASE="flexnet_base.tar.gz"
# Display Exelis EULA. Must accept to continue.
#-------------------------------------------
if [ "$SILENT_INSTALL" = 1 ]; then
if [ \( "$INS_TYPE" = "ENVI" \) ]; then
cat "$UDIR"/install/envi/harris_eula.txt
else
cat "$UDIR"/install/idl/harris_eula.txt
fi
else
if [ \( "$INS_TYPE" = "ENVI" \) ]; then
cat "$UDIR"/install/envi/harris_eula.txt |more
else
cat "$UDIR"/install/idl/harris_eula.txt |more
fi
fi
if yesno "Do you accept all of the terms of the preceding license agreement"; then
exit 1
fi
echo "
----------------------------------------
$PROD_FULL_NAME Installer
----------------------------------------"
# Read in INSTALL_DIR
#-------------------------------------------
echo ""
echo "Please enter the directory to install in
(e.g. "/usr/local/harris ")
"
read DIR_NAME
if [ "$DIR_NAME" != "" ]; then
INSTALL_DIR=$DIR_NAME
fi
#--------------------------------------------------------------
# Read in INSTALL_DIR if it's not specified.
# echo ""
# if [ "$INSTALL_DIR" = "" ]; then
# echo "Please enter the directory containing ENVI $ENVI_VERSION:
# (e.g. "/usr/local/harris ")
# "
# read INSTALL_DIR
# fi
if [ ! -d "$INSTALL_DIR" ]; then
mkdir -p $INSTALL_DIR
if [ $? != 0 ]; then
echo "
The $INSTALL_DIR directory does not exist and could not be created.
Please create this directory prior to running this script."
exit 1
fi
fi
#---------------------------
#Check for write permissions
#---------------------------
if [ ! -w $INSTALL_DIR ]; then
echo "
$SCRIPT: $INSTALL_DIR does not have write permissions.
Please correct the permissions and run this script again.
"
exit 1
fi
# Change to the installation directory
#---------------------------
cd $INSTALL_DIR
#---------------------------
# Check for existing envi installation for ortho installer
#---------------------------
if [ "$INS_TYPE" = "ORTHO" ]; then
if [ \( -d $INSTALL_DIR/envi$ENVI_VERSION \) ]; then
ENVI_INST_VER=`cat $INSTALL_DIR/envi$ENVI_VERSION/version.txt`
if [ $ENVI_INST_VER != "552" ]; then
echo "
Directory $INSTALL_DIR contains a version of ENVI that is not compatible with EN VI Photogrammetry.
Please install ENVI 5.5.2 prior to this installation.
"
exit 1
fi
else
echo "ENVI $ENVI_VERSION is required to be installed prior to installing ENV I Photogrammetry. This directory does not contain an ENVI distribution or the co rrect version of ENVI.
Please locate the directory containing ENVI $ENVI_VERSION and run this script ag ain. If ENVI Platform installer is not installed, please install prior to runnin g this script."
exit 1
fi
fi
if [ \( "$INS_TYPE" != "ORTHO" \) -a \( "$INS_TYPE" != "FLEXNET" \) ]; then
# Do a quick check to see if the CD ROM is really where we think it is.
if [ \( ! -f $UDIR/install/idl/required/base1.tar.gz \) ]; then
echo "Unable to locate tar files. Please execute this script using a full pa th."
exit 1
fi
fi