Skip to content

Instantly share code, notes, and snippets.

@franaudo
Last active September 5, 2023 08:28
Show Gist options
  • Save franaudo/8a9c27acffd544d21c75bac2b54d92fe to your computer and use it in GitHub Desktop.
Save franaudo/8a9c27acffd544d21c75bac2b54d92fe to your computer and use it in GitHub Desktop.

Abaqus 2019 on Ubuntu 20.04

Intro

Ubuntu seems to not be officially supported by the Abaqus installation procedure. This guide shows how to install the necessary libraries and how to tweak the installation files in order to install Abaqus on Ubuntu 20.04. To successfully follow this guide you need writing privileges ('sudo').

Note:
This guide should also work for Abaqus6.14 (changing accordigly file names and paths) and Ubuntu 18.xx adn 19.xx, although I haven't tested it.

Install prerequisites

The standart Ubuntu release might not have one or more of the following libraries needed by Abaqus:

  • libjpeg
  • libstdc++ 4.7
  • openmotif 2.3
  • libgomp
  • libXm4
  • ksh
  • redhat-lsb-core-4.x
  • lsb-release-2.0
  • libpng12-0

To install them open a terminal and execute the following commmand:

sudo apt update
sudo apt install csh tcsh ksh gcc g++ gfortran libstdc++5 build-essential make libjpeg62 libmotif-dev

Check the output of the installations and if there are errors try to install the ones that failed using the synaptic package manager. To install it, run:

sudo apt-get update
sudo apt-get install synaptic

Once installed, open it and look for the aforementioned libraries and install them.

Modify the Linux.sh file

Since Ubuntu is not officially supported, trying to install Abaqus will result in an error. In order to fix it, prior launching the installation, locate all the Linux.sh files in the Abaqus installation folders, delete their content and past the following in each of them:

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

Note the changes: 1) the release version was forced to be "CentOS" , and 2) checking of prerequisites was disabled.

Run setup

Once all the prerequisites are installed and the installation files modified, it is possible to proceed with the installation:

cd path_to_abaqus_installation_folder\1
sudo ./StartGUI.sh

this will start the installation for all the Abaqus-related products. Skip the installation of the FlexNET server (this will cause an error) and proceed with the installation using the default locations for the software:

/usr/DassaultSystemes/SimulationServices/V6R2019x
/usr/SIMULIA/CAE/2019

Once the installation is complete you have to setup the FlexNET server. To do so, execute: sudo gedit /usr/DassaultSystemes/SimulationServices/V6R2019x/linux_a64/SMA/site/custom_v6.env

and then change the license server type to FLEXNET and the abaquslm_license_file to the one of your license (something like ###@your_company_domain), as follows:

    doc_root="http://help.3ds.com"
    license_server_type=FLEXNET
    abaquslm_license_file="27800@your_company_domain"

Make abaqus command available from any directory

In order to run Abaqus from any location, execute the following comand: sudo ln /var/DassaultSystemes/SIMULIA/Commands/abq2019 /usr/bin/abaqus

OpenGL Errors

If there is any warning regarding OpenGL in the terminal during start, simply run Abaqus with -mesa parameter:

    abaqus cae -mesa
    abaqus view -mesa

Shortcuts

Create shortcut for CAE:

gedit ~/.local/share/applications/abaquscae.desktop
    desktop
    [Desktop Entry]
    Type=Application
    Version=1.0
    Name[en_US]=abaquscae
    Icon=/opt/SIMULIA/CAE/2019/linux_a64/CAEresources/graphic/icons/icoR_application.png
    Exec=sh -c "export FILE=%u && cd $(dirname $FILE) && abaqus cae database=$FILE -mesa"
    # Exec=abaqus cae database=%u -mesa
    Terminal=true
    Categories=Science;

Create shortcut for Viewer:

gedit ~/.local/share/applications/abaqusviewer.desktop
    desktop
    [Desktop Entry]
    Type=Application
    Version=1.0
    Name[en_US]=abaqusviewer
    Icon=/opt/SIMULIA/CAE/2019/linux_a64/CAEresources/graphic/icons/icoR_application.png
    Exec=sh -c "export FILE=%u && cd $(dirname $FILE) && abaqus viewer database=$FILE -mesa"
    # Exec=abaqus view database=%u -mesa
    Terminal=true
    Categories=Science;

Then make *.desktop executable:
Properties-->Permissions-->Allow executing file as program.

MIMETYPES & ICONS

Delete LibreOffice mime type for ODB:

sudo gedit /usr/share/mime/packages/libreoffice.xml

and comment tag:

    <mime-type type="application/vnd.sun.xml.base">

Add Abaqus mime types:

sudo gedit ~/.mime.types

Add lines:

    application/abaquscae				cae
    application/abaqusviewer			odb

Create file:

    sudo gedit /usr/share/mime/packages/abaquscae.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
        <mime-type type="application/abaquscae">
            <comment>Abaqus CAE</comment>
            <glob pattern="*.cae"/>
        </mime-type>
    </mime-info>

Create file:

    sudo gedit /usr/share/mime/packages/abaqusviewer.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
        <mime-type type="application/abaqusviewer">
            <comment>Abaqus Viewer</comment>
            <glob pattern="*.odb"/>
        </mime-type>
    </mime-info>

Then update MIME database:

    sudo update-mime-database /usr/share/mime

Additionally install "MIME Type Editor" via software and edit file associations.

Create icons for Abaqus file types:

    sudo cp 3DS.svg /usr/share/icons/Humanity/mimes/256/application-abaquscae.svg
    sudo cp 3DS.svg /usr/share/icons/Humanity/mimes/256/application-abaqusviewer.svg
    sudo gtk-update-icon-cache /usr/share/icons/Humanity -f

FONTS

Open Abaqus CAE and check if it uses Courier-New and Verdana fonts:

    lsof -c ABQcaeK | grep fonts

Increase font size: https://kb.dsxclient.3ds.com/mashup-ui/page/resultqa?id=QA00000008675e

Use xfontsel to check if chosen font is available on system.

Install MS core fonts and RESTART:

    sudo apt install ttf-mscorefonts-installer

Edit dictionaries:

    /opt/SIMULIA/CAE/2019/linux_a64/SMA/Configuration/Xresources/en_US/en_US_Dict.py
    /opt/DassaultSystemes/SimulationServices/V6R2019x/linux_a64/SMA/Configuration/Xresources/en_US/en_US_Dict.py

and increase font size:

    masterDict[r'-*-courier-<weight>-<slant>-normal--10-*'] = r'-*-courier-<weight>-<slant>-normal--20-*'
    masterDict[r'-*-courier-<weight>-<slant>-normal--12-*'] = r'-*-courier-<weight>-<slant>-normal--25-*'
    masterDict[r'-*-courier-<weight>-<slant>-normal--14-*'] = r'-*-courier-<weight>-<slant>-normal--34-*'
    masterDict[r'-*-helvetica-<weight>-<slant>-normal--10-*'] = r'-*-helvetica-<weight>-<slant>-normal--20-*'
    masterDict[r'-*-helvetica-<weight>-<slant>-normal--12-*'] = r'-*-helvetica-<weight>-<slant>-normal--25-*'
    masterDict[r'-*-helvetica-<weight>-<slant>-normal--14-*'] = r'-*-helvetica-<weight>-<slant>-normal--34-*'

For big displays font HELVETICA and sizes 17-20-25 are more appropriate:

    masterDict[r'-*-courier-<weight>-<slant>-normal--10-*'] = r'-*-helvetica-<weight>-<slant>-normal--17-*'
    masterDict[r'-*-courier-<weight>-<slant>-normal--12-*'] = r'-*-helvetica-<weight>-<slant>-normal--20-*'
    masterDict[r'-*-courier-<weight>-<slant>-normal--14-*'] = r'-*-helvetica-<weight>-<slant>-normal--25-*'
    masterDict[r'-*-helvetica-<weight>-<slant>-normal--10-*'] = r'-*-helvetica-<weight>-<slant>-normal--17-*'
    masterDict[r'-*-helvetica-<weight>-<slant>-normal--12-*'] = r'-*-helvetica-<weight>-<slant>-normal--20-*'
    masterDict[r'-*-helvetica-<weight>-<slant>-normal--14-*'] = r'-*-helvetica-<weight>-<slant>-normal--25-*'

FORTRAN

To use gfortran edit: /opt/DassaultSystemes/SimulationServices/V6R2019x/linux_a64/SMA/site/lnx86_64.env

as follows:

  • Change ifort to gfortran on the fortCmd line and make sure that g++ is on the cppCmd line
  • Remove gnu-incompatible compiler flags from the compile_fortran line (-V, -auto, -mP2OPT_hpo_vec_divbyzero=F, -extend_source, -fpp, -WB)
  • link_sl: remove command line options ‘-V’, ‘-cxxlib’, ‘-threads’, ‘-parallel’, ‘-shared-intel’
  • add '-lgfortran' to the link_sl and link_exe lines

KWON ISSUES AND POSSIBLE SOLUTIONS

Run bash and not dash

If you get an error starting like:

`./StartGUI.sh: 4: typeset: not found CurrentMediaDir initial="" ./StartGUI.sh: 6: typeset: not found ./StartGUI.sh: 8: [[: not found ./StartGUI.sh: 10: [[: not found
...

Check that you run bash and not dash (dash is default in Ubuntu, and the Abaqus Installation script uses bash-specific commands).

One way is to search as root (or via sudo) for /usr/bin/sh and make it a symlink to /usr/bin/bash .

You should not forget to re-link /usr/bin/sh to dash after the Abaqus installation.

License Validation

If you cannnot validate the license, probably your Ubuntu is not in English. You ran the program from the terminator with this code:

LANG=en_US.utf8 abaqus cae -mesa

Credits

This guide is based on:

@iutech-france
Copy link

The problem seems to be that in Focal Fossa (since I changed nothing about that in the ISO I downloaded from the official server, I guess it's a general issue with Focal Fossa) /usr/bin/sh links to dash and not to bash, while the StartupGUI.sh (whose shebang is #!/bin/sh) uses bash-specific commands.

Maybe that should be included in your guide ?

@estefano23
Copy link

**Hello,

I am trying to install ABAQUS 2020 on Ubuntu 20. The problem is that I do everything it seems here. I manage to enter the installer, but I get this error:**

The installation of SIMULIA Established Products has failed. Do you want to launch it again, continue or abort the global installation?

Technical details:
Action LaunchMediaAction from feature CODE\linux_a64\AM_SIM_Abaqus_Extend.media failed.
Action ID: Launch_Media_SIMULIA_EstPrd.Linux64_5.2

**Does anyone know what is going on? :(

my email is: estefano.munoz@upf.edu

Also, in the terminal I get this:**

estefanaxo  Haxhaxx23  ~  Descargas  …  GOLD  AM_SIM_Abaqus_Extend.AllOS  1  $  sudo ./StartGUI.sh
./StartGUI.sh: 4: typeset: not found
CurrentMediaDir initial=""
./StartGUI.sh: 6: typeset: not found
./StartGUI.sh: 8: [[: not found
./StartGUI.sh: 10: [[: not found
CurrentMediaDir="/home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1/"
./StartGUI.sh: 19: typeset: not found
./StartGUI.sh: 6: /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1//inst/common/get_DSY_OS.sh: [[: not found
Current operating system: "Linux"
./StartGUI.sh: 18: /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1//inst/common/get_DSY_OS.sh: [[: not found
./StartGUI.sh: 26: /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1//inst/common/get_DSY_OS.sh: [[: not found
/usr/bin/lsb_release
./StartGUI.sh: 4: /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1//inst/common/init/Linux.sh: [[: not found
DSY_OS_Release="CentOS"
./StartGUI.sh: 14: /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1//inst/common/init/Linux.sh: [[: not found
DSY_OS="linux_a64"
DSY_LIBPATH_VARNAME="LD_LIBRARY_PATH"
./StartGUI.sh: 41: /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1//inst/common/get_DSY_OS.sh: [[: not found
./StartGUI.sh: 56: /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1//inst/common/get_DSY_OS.sh: [[: not found
CheckPrereq was skipped DSY_Skip_CheckPrereq=1
INFO: /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1/inst/linux_a64/code/bin/DSYInsAppliGUI
INFO: Installer found in current media: "/home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1/inst/linux_a64/code/bin/DSYInsAppliGUI".
INFO: This media is composed of 5 volumes.
Volume 1 found in: /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1
Volume 2 found in: /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/2
Volume 3 found in: /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/3
Volume 4 found in: /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/4
Volume 5 found in: /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/5
/home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/4/SIMULIA_EstablishedProducts/Linux64/1/StartGUI.sh: 4: typeset: not found
CurrentMediaDir initial="/home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1/"
/home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/4/SIMULIA_EstablishedProducts/Linux64/1/StartGUI.sh: 6: typeset: not found
/home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/4/SIMULIA_EstablishedProducts/Linux64/1/StartGUI.sh: 8: [[: not found
/home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/4/SIMULIA_EstablishedProducts/Linux64/1/StartGUI.sh: 10: [[: not found
CurrentMediaDir="/home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1//home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1/"
/home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/4/SIMULIA_EstablishedProducts/Linux64/1/StartGUI.sh: 19: typeset: not found
/home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/4/SIMULIA_EstablishedProducts/Linux64/1/StartGUI.sh: 22: .: Can't open /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1//home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1//inst/common/get_DSY_OS.sh

@franaudo
Copy link
Author

Hello everyone,

I have moved this gist to a github repository to better answer questions/issues. Go here -> https://github.com/franaudo/abaqus-ubuntu.git

Ciao,
F

@franaudo
Copy link
Author

**Hello,

I am trying to install ABAQUS 2020 on Ubuntu 20. The problem is that I do everything it seems here. I manage to enter the installer, but I get this error:**

The installation of SIMULIA Established Products has failed. Do you want to launch it again, continue or abort the global installation?

Technical details: Action LaunchMediaAction from feature CODE\linux_a64\AM_SIM_Abaqus_Extend.media failed. Action ID: Launch_Media_SIMULIA_EstPrd.Linux64_5.2

**Does anyone know what is going on? :(

my email is: estefano.munoz@upf.edu

Also, in the terminal I get this:**

estefanaxo  Haxhaxx23  ~  Descargas  …  GOLD  AM_SIM_Abaqus_Extend.AllOS  1  $  sudo ./StartGUI.sh ./StartGUI.sh: 4: typeset: not found CurrentMediaDir initial="" ./StartGUI.sh: 6: typeset: not found ./StartGUI.sh: 8: [[: not found ./StartGUI.sh: 10: [[: not found CurrentMediaDir="/home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1/" ./StartGUI.sh: 19: typeset: not found ./StartGUI.sh: 6: /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1//inst/common/get_DSY_OS.sh: [[: not found Current operating system: "Linux" ./StartGUI.sh: 18: /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1//inst/common/get_DSY_OS.sh: [[: not found ./StartGUI.sh: 26: /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1//inst/common/get_DSY_OS.sh: [[: not found /usr/bin/lsb_release ./StartGUI.sh: 4: /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1//inst/common/init/Linux.sh: [[: not found DSY_OS_Release="CentOS" ./StartGUI.sh: 14: /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1//inst/common/init/Linux.sh: [[: not found DSY_OS="linux_a64" DSY_LIBPATH_VARNAME="LD_LIBRARY_PATH" ./StartGUI.sh: 41: /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1//inst/common/get_DSY_OS.sh: [[: not found ./StartGUI.sh: 56: /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1//inst/common/get_DSY_OS.sh: [[: not found CheckPrereq was skipped DSY_Skip_CheckPrereq=1 INFO: /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1/inst/linux_a64/code/bin/DSYInsAppliGUI INFO: Installer found in current media: "/home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1/inst/linux_a64/code/bin/DSYInsAppliGUI". INFO: This media is composed of 5 volumes. Volume 1 found in: /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1 Volume 2 found in: /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/2 Volume 3 found in: /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/3 Volume 4 found in: /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/4 Volume 5 found in: /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/5 /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/4/SIMULIA_EstablishedProducts/Linux64/1/StartGUI.sh: 4: typeset: not found CurrentMediaDir initial="/home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1/" /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/4/SIMULIA_EstablishedProducts/Linux64/1/StartGUI.sh: 6: typeset: not found /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/4/SIMULIA_EstablishedProducts/Linux64/1/StartGUI.sh: 8: [[: not found /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/4/SIMULIA_EstablishedProducts/Linux64/1/StartGUI.sh: 10: [[: not found CurrentMediaDir="/home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1//home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1/" /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/4/SIMULIA_EstablishedProducts/Linux64/1/StartGUI.sh: 19: typeset: not found /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/4/SIMULIA_EstablishedProducts/Linux64/1/StartGUI.sh: 22: .: Can't open /home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1//home/estefanaxo/Descargas/Abaqus/GOLD/AM_SIM_Abaqus_Extend.AllOS/1//inst/common/get_DSY_OS.sh

it seems to be a similar problem as the previous user, where he identified the problem to be related to Focal Fossa. You can try to change the distro and see if you have the same problem. Also make sure you have superuser rights.

Please open an issue in the repository I have just created (https://github.com/franaudo/abaqus-ubuntu.git), so if we find a solution we can share it more easily. Thanks.

@franaudo
Copy link
Author

Hi and thank you for this guide. First, I want to inform you that the libpng12-so-0 required by the installation script is no longer available in Focal Fossa. I solved that by following the instruction here and adding the PPA, though I have no idea if that's a sound decision security-wise.

This allowed me to launch the setup window, but whatever I choose there I get this error message : Action LaunchMediaAction from feature CODE\linux_a64\AM_SIM_Abaqus_Extend.media failed.

The only answers I got about that error message were about installing Abaqus on ArchLinux, and the answers were that Arch is not supported.

There are no nordic letters (nor french diacritic) in any of the corresponding filenames nor path.

Here's the terminal output : `./StartGUI.sh: 4: typeset: not found CurrentMediaDir initial="" ./StartGUI.sh: 6: typeset: not found ./StartGUI.sh: 8: [[: not found ./StartGUI.sh: 10: [[: not found CurrentMediaDir="/home/iutech/samba/logiciels/ABAQUS/Abaqus_2020/Golden/AM_SIM_Abaqus_Extend.AllOS/1/" ./StartGUI.sh: 19: typeset: not found ./StartGUI.sh: 6: /home/iutech/samba/logiciels/ABAQUS/Abaqus_2020/Golden/AM_SIM_Abaqus_Extend.AllOS/1//inst/common/get_DSY_OS.sh: [[: not found Current operating system: "Linux" ./StartGUI.sh: 18: /home/iutech/samba/logiciels/ABAQUS/Abaqus_2020/Golden/AM_SIM_Abaqus_Extend.AllOS/1//inst/common/get_DSY_OS.sh: [[: not found ./StartGUI.sh: 26: /home/iutech/samba/logiciels/ABAQUS/Abaqus_2020/Golden/AM_SIM_Abaqus_Extend.AllOS/1//inst/common/get_DSY_OS.sh: [[: not found /usr/bin/lsb_release ./StartGUI.sh: 4: /home/iutech/samba/logiciels/ABAQUS/Abaqus_2020/Golden/AM_SIM_Abaqus_Extend.AllOS/1//inst/common/init/Linux.sh: [[: not found DSY_OS_Release="CentOS" ./StartGUI.sh: 14: /home/iutech/samba/logiciels/ABAQUS/Abaqus_2020/Golden/AM_SIM_Abaqus_Extend.AllOS/1//inst/common/init/Linux.sh: [[: not found DSY_OS="linux_a64" DSY_LIBPATH_VARNAME="LD_LIBRARY_PATH" ./StartGUI.sh: 41: /home/iutech/samba/logiciels/ABAQUS/Abaqus_2020/Golden/AM_SIM_Abaqus_Extend.AllOS/1//inst/common/get_DSY_OS.sh: [[: not found ./StartGUI.sh: 56: /home/iutech/samba/logiciels/ABAQUS/Abaqus_2020/Golden/AM_SIM_Abaqus_Extend.AllOS/1//inst/common/get_DSY_OS.sh: [[: not found CheckPrereq was skipped DSY_Skip_CheckPrereq=1 INFO: /home/iutech/samba/logiciels/ABAQUS/Abaqus_2020/Golden/AM_SIM_Abaqus_Extend.AllOS/1/inst/linux_a64/code/bin/DSYInsAppliGUI INFO: Installer found in current media: "/home/iutech/samba/logiciels/ABAQUS/Abaqus_2020/Golden/AM_SIM_Abaqus_Extend.AllOS/1/inst/linux_a64/code/bin/DSYInsAppliGUI". INFO: This media is composed of 5 volumes. Volume 1 found in: /home/iutech/samba/logiciels/ABAQUS/Abaqus_2020/Golden/AM_SIM_Abaqus_Extend.AllOS/1 Volume 2 found in: /home/iutech/samba/logiciels/ABAQUS/Abaqus_2020/Golden/AM_SIM_Abaqus_Extend.AllOS/2 Volume 3 found in: /home/iutech/samba/logiciels/ABAQUS/Abaqus_2020/Golden/AM_SIM_Abaqus_Extend.AllOS/3 Volume 4 found in: /home/iutech/samba/logiciels/ABAQUS/Abaqus_2020/Golden/AM_SIM_Abaqus_Extend.AllOS/4 Volume 5 found in: /home/iutech/samba/logiciels/ABAQUS/Abaqus_2020/Golden/AM_SIM_Abaqus_Extend.AllOS/5 /home/iutech/samba/logiciels/ABAQUS/Abaqus_2020/Golden/AM_SIM_Abaqus_Extend.AllOS/4/SIMULIA_EstablishedProducts/Linux64/1/StartGUI.sh: 4: typeset: not found CurrentMediaDir initial="/home/iutech/samba/logiciels/ABAQUS/Abaqus_2020/Golden/AM_SIM_Abaqus_Extend.AllOS/1/" /home/iutech/samba/logiciels/ABAQUS/Abaqus_2020/Golden/AM_SIM_Abaqus_Extend.AllOS/4/SIMULIA_EstablishedProducts/Linux64/1/StartGUI.sh: 6: typeset: not found /home/iutech/samba/logiciels/ABAQUS/Abaqus_2020/Golden/AM_SIM_Abaqus_Extend.AllOS/4/SIMULIA_EstablishedProducts/Linux64/1/StartGUI.sh: 8: [[: not found /home/iutech/samba/logiciels/ABAQUS/Abaqus_2020/Golden/AM_SIM_Abaqus_Extend.AllOS/4/SIMULIA_EstablishedProducts/Linux64/1/StartGUI.sh: 10: [[: not found CurrentMediaDir="/home/iutech/samba/logiciels/ABAQUS/Abaqus_2020/Golden/AM_SIM_Abaqus_Extend.AllOS/1//home/iutech/samba/logiciels/ABAQUS/Abaqus_2020/Golden/AM_SIM_Abaqus_Extend.AllOS/1/" /home/iutech/samba/logiciels/ABAQUS/Abaqus_2020/Golden/AM_SIM_Abaqus_Extend.AllOS/4/SIMULIA_EstablishedProducts/Linux64/1/StartGUI.sh: 19: typeset: not found /home/iutech/samba/logiciels/ABAQUS/Abaqus_2020/Golden/AM_SIM_Abaqus_Extend.AllOS/4/SIMULIA_EstablishedProducts/Linux64/1/StartGUI.sh: 22: .: Can't open /home/iutech/samba/logiciels/ABAQUS/Abaqus_2020/Golden/AM_SIM_Abaqus_Extend.AllOS/1//home/iutech/samba/logiciels/ABAQUS/Abaqus_2020/Golden/AM_SIM_Abaqus_Extend.AllOS/1//inst/common/get_DSY_OS.sh

`

I was installing it from a remote filesystem (samba share) and from a VM (testing it before I run it on a physical machine), I'll try if putting the installation directory directly on the VM changes anything. Apparently there's a weird thing happening in the "current media dir" since "/home/iutech/samba/logiciels/ABAQUS/Abaqus_2020/Golden/AM_SIM_Abaqus_Extend.AllOS/1//home/iutech/samba/logiciels/ABAQUS/Abaqus_2020/Golden/AM_SIM_Abaqus_Extend.AllOS/1/" is not a real directory.

Hi and sorry for the late reply. I don't check this very often.
I moved this gist to a github repo (here: https://github.com/franaudo/abaqus-ubuntu.git) maybe you can create a pull request with changes you identified so we can keep this guide up-to-date. :)

Thanks,
F

@iutech-france
Copy link

Actually the problem was not Focal Fossa per se, but the symlink that sends to dash rather than bash from /usr/bin/sh (while the Abaqus install script relies on bash-specific instructions).
So changing the symlink temporarily to point towards bash, and using an English locale (don't know why but using a non-English locale brings errors) allowed me to install Abaqus.
Note that the Exalead something something couldn't be installed, I'm not sure why.

@iutech-france
Copy link

Hi and sorry for the late reply. I don't check this very often. I moved this gist to a github repo (here: https://github.com/franaudo/abaqus-ubuntu.git) maybe you can create a pull request with changes you identified so we can keep this guide up-to-date. :)

Thanks, F

Actually I don't know how to do that...

@franaudo
Copy link
Author

Hi and sorry for the late reply. I don't check this very often. I moved this gist to a github repo (here: https://github.com/franaudo/abaqus-ubuntu.git) maybe you can create a pull request with changes you identified so we can keep this guide up-to-date. :)
Thanks, F

Actually I don't know how to do that...

No problem, it's easy! I have actually created another quick guide that you could follow: https://github.com/franaudo/coding_induction/blob/main/Basics/1_Git.md#working-with-forks

The basic steps are:

  • fork the repository (directly from github)
  • clone your own fork on your machine (git clone .... )
  • make the changes
  • add the changes to git (git add .)
  • commit your changes (git commit -am "some_clever-message")
  • push your changes to your fork (git push)
  • go back on github and click on create a pull request
  • add some comments if you want
  • ...that's it ;)

@estefano23
Copy link

I have just solved the problem. All the documents that contained sh, I changed them to bash. So I was able to install it.

Then I had problems validating the license, and it was because my ubuntu is in Spanish. Therefore, I ran the program from the terminator with this code:

LANG=en_US.utf8 abaqus cae -mesa

@estefano23
Copy link

abaqus_terminal

@iutech-france
Copy link

* push your changes to your fork (`git push`)

The first steps work but when I reach this one (git push) I am asked for identification and get ```
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Échec d'authentification pour 'https://github.com/franaudo/abaqus-ubuntu.git/'

@franaudo
Copy link
Author

I have just solved the problem. All the documents that contained sh, I changed them to bash. So I was able to install it.

Then I had problems validating the license, and it was because my ubuntu is in Spanish. Therefore, I ran the program from the terminator with this code:

LANG=en_US.utf8 abaqus cae -mesa

thanks for your feedback! I will add it to the guide :)

@franaudo
Copy link
Author

* push your changes to your fork (`git push`)

The first steps work but when I reach this one (git push) I am asked for identification and get ``` remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information. fatal: Échec d'authentification pour 'https://github.com/franaudo/abaqus-ubuntu.git/'

Yes, this is because github does not allow anymore to use passwords. You need to set up an SSH key pair (tedious but the most secure way) or generate an access token. This is the official guide from GitHub:https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token

Alternatively, you can download the GitHub CLI (https://cli.github.com/), restart the terminal/command_line and run there the commands after you login running the command: gh auth login (follow the instructions and choose login with a web browser...there you can use your username and password)

@iutech-france
Copy link

iutech-france commented Oct 18, 2021

OK, just add

###
Check that you run bash and not dash (dash is default in Ubuntu, and the Abaqus Installation script uses bash-specific commands).
One way is to search as root (or via sudo) for /usr/bin/sh and make it a symlink to /usr/bin/bash
You probably don't want to forget to re-link /usr/bin/sh to dash after the Abaqus installation, lest you'll get difficult to debug errors on other parts of the system (that expect dash).

and

###
Check the locales and make sure that they are in English, or launch the software via "LANG=en_US.utf8 abaqus cae -mesa"

to your guide, it'll be easier.

Maybe something about - libpng12-0 too (didn't check recently).

@franaudo
Copy link
Author

ahah ok, thanks! I will add it ASAP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment