То же самое, печалька.
#!/bin/sh
VERSION="v7.4.0"
echo "-----------------------------------------------------------------"
echo ""
echo "If you experience errors while loading shared libraries,"
echo "the -compat-libstdc++* packages must be installed"
echo ""
echo "If you experieince ***Assertion 'c->xlib.lock' failed*** when"
echo "launching the GUI, update the packages listed below."
echo " SuSE: xorg-x11-libxcb 7.2-51.2 or later"
echo " RH : libxcb-1.0-4 or later"
echo ""
echo "-----------------------------------------------------------------"
# If GT-SUITE is in debug mode, put LAX in debug too.
if [ "$GTI_DEBUG" = "true" -o "$GTIDEBUG" = "true" ]; then
LAX_DEBUG=true
export LAX_DEBUG
fi
# Not supported on SGI/Irix
if [ `uname -s` = "IRIX" -o `uname -s` = "IRIX64" ]; then
echo "-----------------------------------------------------------------"
echo ""
echo "GT-SUITE $VERSION is not supported on SGI/IRIX."
echo ""
echo "-----------------------------------------------------------------"
exit 1
fi
# This script does not support IBM/AIX
if [ `uname -s` = "AIX" ]; then
echo "-----------------------------------------------------------------"
echo ""
echo "GT-SUITE $VERSION is not supported on IBM/AIX."
echo ""
echo "-----------------------------------------------------------------"
exit 1
fi
if [ `uname -m` = "ia64" ]; then
echo "-----------------------------------------------------------------"
echo ""
echo "GT-SUITE $VERSION is not supported on linux_ia64."
echo ""
echo "-----------------------------------------------------------------"
exit 1
fi
# Bug 32732 - Only Linux platform is supported started in 72.
osName=`uname -s 2> /dev/null | tr "[A-Z]" "[a-z]" 2> /dev/null`
case "$osName" in
*solaris*|*sunos*)
echo "-----------------------------------------------------------------"
echo ""
echo "GT-SUITE $VERSION is not supported on Solaris/SUN."
echo "As of v7.0 this platform is no longer supported to run the GT-SUITE solver or GUI."
echo "-To install the license server for this operating system, please see the"
echo "documentation in the root folder on the CD."
echo "-To install GT-Link for this operating system (CFD coupling library),"
echo "please see the "Special instructions for UNIX" section in the CFD coupling tutorial."
echo "-If this system is your file server and you are trying to install a networked"
echo "copy for a supported platform, please run the installer from the supported platform."
echo ""
echo "-----------------------------------------------------------------"
exit 1
;;
*hp-ux*|*hpux*)
echo "-----------------------------------------------------------------"
echo ""
echo "GT-SUITE $VERSION is not supported on HP."
echo "As of v7.0 this platform is no longer supported to run the GT-SUITE solver or GUI."
echo "-To install the license server for this operating system, please see the"
echo "documentation in the root folder on the CD."
echo "-To install GT-Link for this operating system (CFD coupling library),"
echo "please see the "Special instructions for UNIX" section in the CFD coupling tutorial."
echo "-If this system is your file server and you are trying to install a networked"
echo "copy for a supported platform, please run the installer from the supported platform."
echo ""
echo "-----------------------------------------------------------------"
exit 1
;;
*aix*)
echo "-----------------------------------------------------------------"
echo ""
echo "GT-SUITE $VERSION is not supported on IBM/AIX."
echo "As of v7.0 this platform is no longer supported to run the GT-SUITE solver or GUI."
echo "-To install the license server for this operating system, please see the"
echo "documentation in the root folder on the CD."
echo "-To install GT-Link for this operating system (CFD coupling library),"
echo "please see the "Special instructions for UNIX" section in the CFD coupling tutorial."
echo "-If this system is your file server and you are trying to install a networked"
echo "copy for a supported platform, please run the installer from the supported platform."
echo ""
echo "-----------------------------------------------------------------"
exit 1
;;
*linux*)
if [ ! -f "/usr/lib/libstdc++.so.6" -a ! -f "/usr/lib64/libstdc++.so.6" -a ! -f "/usr/lib/i386-linux-gnu/libstdc++.so.6" ]; then
echo "-----------------------------------------------------------------"
echo ""
echo "GT-SUITE requires /usr/lib/libstdc++.so.6. If it is installed on"
echo "your system in a different location, please make a symbolic link to"
echo "the location above. If it does not exist, please install the"
echo "correct compatibility package for the library above."
echo ""
echo "-----------------------------------------------------------------"
exit 1
fi
if [ ! -z "`cat /etc/issue | grep -i ubuntu`" ]; then
glibcu=`dpkg-query -W libc6 | awk '{print $2}'`
glibcu=`echo $glibcu | sed -n 's/[\.\-]/ /gp' | awk ' $1>2 || ($1==2 && $2>4) {print $1.$2;} '`
else
glibc=`rpm -q -f /lib/libc.so*`
glibc=`echo $glibc | sed -n 's/^glibc-//p' | sed -n 's/[\.\-]/ /gp' | awk ' $1>2 || ($1==2 && $2>4) { print $1.$2; } '`
glibc2=`rpm -q -f /lib/libc.so*`
glibc2=`echo $glibc | sed -n 's/^glibc-//p' | sed -n 's/^32bit-//p' | sed -n 's/[\.\-]/ /gp' | awk ' $1>2 || ($1==2 && $2>4) { print $1.$2; } '`
fi
if [ -z "$glibc" -a -z "$glibc2" -a -z "$glibcu" ]; then
echo "-----------------------------------------------------------------"
echo ""
echo "Starting in this version all Linux platforms must have glibc 2.5 or above to"
echo "run GT-SUITE. We have found that this machine does not meet this requirement."
echo "Therefore, this system will not be able to run this version with its current"
echo "OS and will now exit."
echo ""
echo "-----------------------------------------------------------------"
exit 1
fi
;;
*)
;;
esac
# Save current directory.
originalPWD=`pwd`
# Ensure the user specified GTTEMPDIR is valid (the directory exist).
if [ $GTTEMPDIR ]; then
if [ ! -d "$GTTEMPDIR" ]; then
echo ""
echo "You have specified GTTEMPDIR=$GTTEMPDIR for temporary JRE unpacking."
echo "However, [$GTTEMPDIR] does not exist or is not a directory !"
echo ""
exit -1
fi
fi
# If User did not specify any GTTEMPDIR, use /tmp
if [ -z "$GTTEMPDIR" ]; then
GTTEMPDIR=/tmp
fi
# If GTTEMPDIR is not valid, use $HOME
if [ ! -d "$GTTEMPDIR" ]; then
echo ""
echo "WARNING: [$GTTEMPDIR] is not a directory !"
echo "Using $HOME to extract JRE for installation ..."
echo ""
GTTEMPDIR="$HOME"
fi
#################################################################################################
# Bug - 12229 Check space on /tmp and exit install if not enough.
if [ "$GTTEMPDIR" = "/tmp" ]; then
if [ `uname -s` = "SunOS" ]; then
DF_CMD='/usr/xpg4/bin/df -P'
else
DF_CMD='df -P'
fi
sePwd=`pwd`
cd "$GTTEMPDIR"
DF_AVAIL_COL=4
# This checks if the -n 1 argument works
[ $LAX_DEBUG ] && echo 'Checking tail options...'
TAIL_CMD='tail -n 1 /dev/null'
if $TAIL_CMD 2>/dev/null
then
TAILN1ARG="-n 1";
else
TAILN1ARG="-1";
fi
[ $LAX_DEBUG ] && echo "Using tail $TAILN1ARG."
# Gather disk free-space info
#
[ $LAX_DEBUG ] && echo "Gathering free-space information..."
SPACE_NEEDED="200"
AVAIL_SPACE=`$DF_CMD $GTTEMPDIR 2>/dev/null | awk "{print \\\$$DF_AVAIL_COL}" | tail $TAILN1ARG`
DU_S_CMD=`du -s $GTTEMPDIR 2>/dev/null | awk "{print \\\$1}"`
DU_SK_CMD=`du -sk $GTTEMPDIR 2>/dev/null | awk "{print \\\$1}"`
if [ "$DU_S_CMD" -ge "$DU_SK_CMD" ]; then
RESULT_VAR=`expr $DU_S_CMD / $DU_SK_CMD`
AVAIL_SPACE=`expr $AVAIL_SPACE / $RESULT_VAR`
fi
AVAIL_SPACE=`expr $AVAIL_SPACE / 1024`
[ $LAX_DEBUG ] && echo "Available space: $AVAIL_SPACE MB"
echo ""
echo "Available Space(MB): $AVAIL_SPACE Needed Space(MB): $SPACE_NEEDED"
if [ ! -z $AVAIL_SPACE -o -z $SPACE_NEEDED ]; then
if [ ${AVAIL_SPACE:-0} -lt ${SPACE_NEEDED:-0} ]; then
echo ""
echo "WARNING! The disk space available is less than the required space (200MB)"
echo ""
echo "The temporary directory used during installation [$GTTEMPDIR]"
echo "does not have enough disk space. A total of [200MB] is required. The"
echo "installation will exit now. Please set the environment variable GTTEMPDIR to"
echo "specify a directory with at least this much space and install again."
echo ""
exit 1
fi
else
echo "WARNING! The amount of disk space required and/or available"
echo "could not be determined. The installation will be attempted anyway."
fi
cd $sePwd
fi
#################################################################################################
# Create temporary scratch-pad directory for our installer.
installTempDir="$GTTEMPDIR/gt.install.$$"
echo ""
echo ""
echo "Creating temporary install directory: $installTempDir"
echo ""
echo "To change the temporary directory for the installer, please cancel"
echo "the installer, export GTTEMPDIR=SomeTempDir, and restart the installer."
echo ""
mkdir -p "$installTempDir" > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "The temporary install directory"
echo " [$GTTEMPDIR]"
echo "does not exist or you do not have permission to write to it."
echo "Please set the GTTEMPDIR environment variable to a directory"
echo "to which you have the permission."
exit -1
fi
# Create folder to unpack JRE into ...
jreDir="$installTempDir/jre"
mkdir -p "$jreDir" > /dev/null 2>&1
osName=`uname -s 2> /dev/null | tr "[A-Z]" "[a-z]" 2> /dev/null`
case "$osName" in
*linux*)
osPlat="linux_x86"
osPlat64="linux_x86_64"
gzipPlat="linux"
;;
*)
;;
esac
if [ -z "$osPlat" ]; then
echo "---------------------------------------------------------------"
echo "Could not recognize platform."
echo "The product is only supported for Linux."
echo "---------------------------------------------------------------"
exit -1
fi
# Base directory where the installer is located.
##################################################################################
# resolveLink()
# param $1 a file or directory name
# sets $resolveLink the name of the linked disk entity
##################################################################################
if [ -x /bin/ls ]; then
lsCMD="/bin/ls"
elif [ -x /usr/bin/ls ]; then
lsCMD="/usr/bin/ls"
else
lsCMD="ls"
fi
resolveLink()
{
rl_linked="true"
rl_operand="$1"
rl_origDir="`dirname "$1"`"
# MMA - 2001.04.04 - if 'dirname' returns '.', then we need
# the current working directory path
if [ "$rl_origDir" = "." ]; then
rl_origDir=`pwd`
fi
rl_ls=`$lsCMD -l "$rl_operand"`
# MMA - 2001.02.28 - always resolve path to absolute.
while [ "$rl_linked" = "true" ]; do
# if the operand is not of an abs path, get its abs path
case "$rl_operand" in
/*)
rl_origDir=`dirname "$rl_operand"`
;;
\./*)
rl_origDir=`pwd`
rl_operand="$rl_origDir/$rl_operand"
;;
\../*)
rl_origDir=`pwd`
rl_operand="$rl_origDir/$rl_operand"
;;
*)
rl_operand="$rl_origDir/$rl_operand"
;;
esac
#
# the prevPrev hack is here because .../java often points to .java_wrapper.
# at the end of the resolution rl_operand actually points to garbage
# signifying it is done resolving the link. So prev is actually .java_wrapper.
# but we want the one just before that, its the real vm starting poiint we want
#
rl_prevOperand="$rl_operand"
rl_ls=`$lsCMD -l "$rl_operand"`
# get the output ls into a list
set x $rl_ls
# get rid of x and file info from ls -l
shift 9
#is this a link?
case "$rl_ls" in
*"->"*)
rl_linked="true"
# is a link, shift past the "->"
rl_linker=""
while [ "$1" != "->" -a $# -gt 1 ]; do
rl_linker="$rl_linker $1"
shift
done
if [ "$1" = "->" ]; then
shift
fi
;;
*)
# not a link, the rest must be the targets name
rl_linked="false"
;;
esac
# now grab what's left
rl_linkee="$@"
# debugOut "Following link to LAX $rl_linker -> $rl_linkee"
if [ "$rl_linked" = "true" -a "`basename "$rl_linkee"`" != "$vmScript" ]; then
# set to true incase the thing linked to is also a link and we can
# try again. The current think linked to now becomes the operand
rl_operand="$rl_linkee"
# if the linkee is not abs, make it abs relative to the linker
case "$rl_operand" in
/*)
;;
*)
rl_operand="$rl_origDir/$rl_operand"
;;
esac
else
# otherwise, this operand is not a link itself and we are done
rl_resolvedLink="$rl_prevOperand"
# however, do not resolve the last leg of a VMs linked scripts. this will
# disrupt their scripts. it is expecting a link to the .java* script
# let us believe it is not linked and continue on...
if [ "`basename "$rl_linkee"`" = "$vmScript" ]; then
rl_linked="false"
fi
fi
# make sure the path returned is absolute
case "$rl_operand" in
\.\/*)
rl_operand="`pwd`/$rl_operand"
;;
esac
done
# remove "/./" in paths, make it "/"
# i,e, "/a/b/./c" becomes "/a/b/c"
resolvedLink=`echo "$rl_resolvedLink" | sed 's,/\./,/,'`
}
resolveLink "$0"
absoluteScriptPath="$resolvedLink"
installerDir=`dirname $absoluteScriptPath`
resourceDir="$installerDir/resource"
jreZipName="jre_${osPlat}.tgz"
jreZipName64="jre_${osPlat64}.tgz"
jreTarName="jre_${osPlat}.tar"
licensingDir="$installerDir/licensing"
if [ "$LAX_DEBUG" = "true" ]; then
echo jreZipName=$jreZipName
echo jreTarName=$jreTarName
fi
# Unpack the jre
echo "Unpacking JRE (Java Runtime Environment) ..."
# TODO cant depend on gzip and tar being in user's $PATH
# TODO Is it possible to directly gunzip to destination folder w/o copying...
cp "$resourceDir/jre/$jreZipName" "$jreDir" 1>/dev/null 2>&1
if [ $? -ne 0 ]; then
echo ""
echo "Failed to copy JRE to $jreDir !!"
echo ""
echo "Please define GTTEMPDIR env-var to locate a "
echo "temporary install directory (at least 200MB)"
echo ""
# Remove the temporary directory (Bug 6050 Clean up temp files.)
cd "$originalPWD"
echo ""
echo "Removing [$installTempDir] ..."
echo ""
rm -rf "$installTempDir"
#
exit -1
fi
cp "$resourceDir/jre/$jreZipName64" "$jreDir" 1>/dev/null 2>&1
if [ $? -ne 0 ]; then
echo ""
echo "Failed to copy JRE to $jreDir !!"
echo ""
echo "Please define GTTEMPDIR env-var to locate a "
echo "temporary install directory (at least 200MB)"
echo ""
# Remove the temporary directory (Bug 6050 Clean up temp files.)
cd "$originalPWD"
echo ""
echo "Removing [$installTempDir] ..."
echo ""
rm -rf "$installTempDir"
#
exit -1
fi
cd "$jreDir"
GZIP_EXE="$resourceDir/gzip/gzip.${gzipPlat}"
if [ "$LAX_DEBUG" = "true" ]; then
echo GZIP_EXE=$GZIP_EXE
fi
echo "Unzipping JRE ..."
"$GZIP_EXE" -d "$jreZipName"
if [ $? -ne 0 ]; then
echo ""
echo "Failed to Unzip JRE !!"
echo ""
echo "Please define GTTEMPDIR env-var to locate a "
echo "temporary install directory (at least 200MB)"
echo ""
# Remove the temporary directory (Bug 6050 Clean up temp files.)
cd "$originalPWD"
echo ""
echo "Removing [$installTempDir] ..."
echo ""
rm -rf "$installTempDir"
#
exit -1
fi
echo "Untarring JRE ..."
tar xf "$jreTarName" # TODO Can we ship gzip and tar utilities with installer !?!
if [ $? -ne 0 ]; then
echo ""
echo "Failed to Untar JRE !!"
echo ""
echo "Please define GTTEMPDIR env-var to locate a "
echo "temporary install directory (at least 200MB)"
echo ""
# Remove the temporary directory (Bug 6050 Clean up temp files.)
cd "$originalPWD"
echo ""
echo "Removing [$installTempDir] ..."
echo ""
rm -rf "$installTempDir"
#
exit -1
fi
##############################################################################
# Done Unpacking JRE - Get on with invoking installer now.
##############################################################################
# Request InstallAnywhere to use the same scratchpad directory.
IATEMPDIR="$installTempDir"
export IATEMPDIR
# Go back to original directory before invoking installer.
cd "$originalPWD"
# ensure DISPLAY env-var is set.
if [ -z "$DISPLAY" ]; then
echo ""
echo "---------------------------------------------------------------"
echo "The environment variable DISPLAY must be set to run the"
echo "graphical installation program. It has been reset to local"
echo "machine."
echo "If a JAVA exception occurs, it may be necessary to run the"
echo "command 'xhost +' so the program may be displayed."
echo "---------------------------------------------------------------"
echo ""
# set the default value for DISPLAY variable.
DISPLAY=":0.0"
export DISPLAY
fi
temp_installdocs="$installTempDir/InstallDocs"
temp_licensing="$installTempDir/licensing"
temp_gzip="$installTempDir/gzip"
mkdir -p "$temp_installdocs" > /dev/null 2>&1
mkdir -p "$temp_gzip" > /dev/null 2>&1
mkdir -p "$temp_licensing" > /dev/null 2>&1
echo ""
echo "[$licensingDir] is being copied to: [$temp_licensing]"
cp "$licensingDir/flm-linux.tar.gz" "$temp_licensing/flm-linux.tar.gz"
if [ $? -ne 0 ]; then
echo ""
echo "Failed to copy flm-linux.tar.gz !!"
echo ""
echo "Please define GTTEMPDIR env-var to locate a "
echo "temporary install directory (at least 200MB)"
echo ""
cd "$originalPWD"
echo ""
echo "Removing [$installTempDir] ..."
echo ""
rm -rf "$installTempDir"
exit -1
fi
echo "[$licensingDir] was successfully copied to: [$temp_licensing]"
echo ""
cp "$resourceDir/gzip/gzip.linux" "$installTempDir/gzip/gzip.linux"
if [ $? -ne 0 ]; then
echo ""
echo "Failed to copy gzip.linux !!"
echo ""
echo "Please define GTTEMPDIR env-var to locate a "
echo "temporary install directory (at least 800MB)"
echo ""
cd "$originalPWD"
echo ""
echo "Removing [$installTempDir] ..."
echo ""
rm -rf "$installTempDir"
exit -1
fi
echo "[$installerDir/InstallationNotes.pdf] is being copied to: [$temp_installdocs]"
cp "$installerDir/InstallationNotes.pdf" "$temp_installdocs/InstallationNotes.pdf"
if [ $? -ne 0 ]; then
echo ""
echo "Failed to copy InstallationNotes.pdf !!"
echo ""
echo "Please define GTTEMPDIR env-var to locate a "
echo "temporary install directory (at least 800MB)"
echo ""
cd "$originalPWD"
echo ""
echo "Removing [$installTempDir] ..."
echo ""
rm -rf "$installTempDir"
exit -1
fi
echo "[$installerDir/InstallationNotes.pdf] was successfully copied to: [$temp_installdocs]"
echo "====================================================================="
echo ""
installerFolder="GenericUnix"
# Invoke the InstallAnywhere Installer with proper LAX_VM argument
javaExe="$jreDir/bin/java"
installExe="$installerDir/Disk1/InstData/$installerFolder/GTsuite_v740.bin LAX_VM $javaExe $@"
echo "Running $installExe"
$installExe
##############################################################################
# Done Installing. Finish the final cleanup operation ...
##############################################################################
# Remove the temporary directory
cd "$originalPWD"
echo ""
echo "cd-installer is sleeping for 5 seconds ..."
sleep 5
echo ""
echo "Removing [$installTempDir] ..."
echo ""
rm -rf "$installTempDir"
echo "End"
exit 0
installationnotes.pdf читал, вроде кроме того, что скрипт надо скинуть с диска, больше ничего интересного.
All GT-SUITE installations are provided on a CD. Before starting the installation, it is recommended that
all other applications be closed first. To install the software, follow the instructions below. (In short:
check the system requirements and operating patches and follow the prompts from the CD installer.
Linux must also source the gtenv.sh file in their login script.)
11
Gamma Technologies, Inc. ©2013CHAPTER 2
1. Check that the system is a supported platform in the 'Supported Platforms for GT-SUITE and the
License Server' section.
2. Check that the system meets the minimum system requirements as listed in Operating System and
Hardware Requirements (PC and Linux)
3. Update the Linux operating system with the required and recommended patches (See LINUX
Operating System Patches).
4. If GT-SUITE is being installed on Windows, the user must be logged in as the administrator to install
the software. Also to install the license server hardlock drivers on Windows and Linux requires
administrator privileges.
5. If the local machine is running a personal firewall (e.g. Norton or McAfee), it should be disabled and
configured not to auto-start until GT-SUITE is running properly. After GT-SUITE is properly
running, it may be re-enabled and configured to allow GT-SUITE to run properly. Note: Virus
protection software does not need to be disabled, only firewall software.
6. PC ONLY
7. Linux ONLY - If the CD does not automatically mount, it may be done manually. This may require
root privileges and can be done by the following commands or similar, depending on the mount point:
mount /dev/cdrom /cdrom
8. Linux ONLY - From the terminal window where the installation will be run, set the environment
variable GTTEMPDIR to a directory with a minimum of 800 MB of available space. This directory
will be used as temporary storage during installation. If this variable is not explicitly set, the
installation will default to /tmp. Note that on many systems, the /tmp directory will NOT have
enough space and this could cause system stability issues.
9. Linux ONLY -Start the installation program from the CD-ROM by calling the script
cdinstall.sh. Note it is important that cdinstall.sh is not started from the root directory where
it exists. Otherwise it may not be possible to unmount disk 1 ("umount /cdrom") when the installer
asks for disk 2. The full path to the script should be given (i.e. run /cdrom/cdinstall.sh and NOT
./cdinstall.sh)
At some point during the installation, the installer will ask for the second CD to be inserted. At this
point, open a new terminal, unmount the first CD, and then mount the second CD. Then click the
"browse" button in the dialog and locate the disk2 directory (i.e. /cdrom/disk2) and then click OK to
the dialog.
10. Read the remainder of these instructions to make the best choices in the installer, then follow all of
the on-screen instructions.