sudo apt install csh tcsh ksh gcc g++ gfortran libstdc++5 build-essential make libjpeg62 libmotif-dev
Installation folders contain a bash file called Linux.sh
. Search your installation folders and locate all of them. The locations may vary but at the time of writing they were found inside the software folders at: ~/1/inst/common/init
. These files make particular settings, two of them were causing an issue at the time of writing which is why some changes to this file are required. The full file, after changes, is given at the bottom of this document. The changes are described below.
1) Force the distribution/release to be compatible
The following line in the bash file checks the particular Linux distribution used:
DSY_OS_Release=`lsb_release --short --id |sed 's/ //g'`
On Ubuntu this will cause it to be "Ubuntu". It appears however Ubuntu is not officially supported and the installation will not proceed because of this. The solution is to manually override the distribution. To do this open this file (e.g. sudo gedit Linux.sh
) and comment out the above line (by placing a #
in front of it). Once the line is commented out, add a new line which forces this parameter to denote a supported distribution, e.g. CentOS
:
DSY_OS_Release="CentOS"
Note, judging from the bash file, setting other distributions may be equivalent:
"RedHatEnterpriseServer"|"RedHatEnterpriseClient"|"RedHatEnterpriseWorkstation"|"CentOS"
In some cases installation stalls when prerequisites are not detected (or not detected properly). After installing the motif
package for instance the Abaqus installation may still claim it is not installed. Therefore, some users have reported that "system checks" should be disabled by also adding the line:
export DSY_Skip_CheckPrereq=1
If there are many Linux.sh
files to alter users may wish to edit them using something like:
for f in $(find //home/kevin/Downloads/AM_SIM_Abaqus_Extend.AllOS -name "Linux.sh" -type f); do
sudo gedit $f
done
From the relevant folders run:
sudo ./StartGUI.sh
sudo ln /var/DassaultSystemes/SIMULIA/Commands/abq2018 /usr/bin/abaqus
Note this file contains two changes: 1) the release version was forced to be "CentOS"
, and 2) checking of prerequisites was disabled.
DSY_LIBPATH_VARNAME=LD_LIBRARY_PATH
which lsb_release
if [[ $? -ne 0 ]] ; then
echo "lsb_release is not found: check in the PDIR the list of installed packages for servers validation."
exit 12
fi
DSY_OS_Release="CentOS" #Override release setting, old: DSY_OS_Release=`lsb_release --short --id |sed 's/ //g'`
echo "DSY_OS_Release=\""${DSY_OS_Release}"\""
export DSY_OS_Release=${DSY_OS_Release}
export DSY_Skip_CheckPrereq=1 #Added to avoid prerequisite check
if [[ -n ${DSY_Force_OS} ]]; then
DSY_OS=${DSY_Force_OS}
echo "DSY_Force_OS=\""${DSY_Force_OS}"\", use it for DSY_OS"
return
fi
case ${DSY_OS_Release} in
"RedHatEnterpriseServer"|"RedHatEnterpriseClient"|"RedHatEnterpriseWorkstation"|"CentOS")
DSY_OS=linux_a64;;
"SUSELINUX"|"SUSE")
DSY_OS=linux_a64;;
*)
echo "Unknown linux release \""${DSY_OS_Release}"\""
echo "exit 8"
exit 8;;
esac