Install and use Salome Meca 2019 on Ubuntu 20.04
# Nicolò Grilli
# University of Bristol
# 3 Agosto 2021
# Salome Meca 2019 installation instructions on Ubuntu 20.04
# https://www.youtube.com/watch?v=NujPgPMi6BI
# go to the website https://www.code-aster.org/V2/spip.php?article303
# download the LGPL binary package of salome_meca2019.0.3
# create a directory and move the downloaded tgz file into that
mkdir /home/nicolo/projects/SalomeMeca2019
cd /home/nicolo/projects/SalomeMeca2019/
# comment conda environment lines in .bashrc
# Prerequisites
# https://www.code-aster.org/spip.php?article273
python –version
# gives Python 2.7.18
python3 –version
# gives Python 3.8.10
which python
# gives /usr/bin/python
which python3
# gives /usr/bin/python3
# if python 3 is not present:
# install python 3.6
# sudo add-apt-repository ppa:deadsnakes/ppa
# sudo apt-get update
# sudo apt-get install python3.6
# you will get error about missing Python.h
# if you do not install the development package for this specific python version
# sudo apt-get install python3.6-dev
# creating virtual environment is necessary
# otherwise the installation script will not find python3.6
# the venv folder for the virtual environment is created inside the
# Code Aster folder
# sudo apt-get update
# sudo apt-get install python3-virtualenv
# virtualenv -p /usr/bin/python3.6 venv
# install packages
# additional packages compared to Code Aster website are found in:
# https://hitoricae.com/2020/10/31/code_aster-14-6-parallel-version-with-petsc/
# https://hitoricae.com/2019/11/10/code_aster-14-4-with-petsc/
sudo apt-get install gcc
sudo apt-get install gfortran
sudo apt-get install g++
sudo apt-get install python-dev
sudo apt-get install python3-dev
sudo apt-get install python-numpy
sudo apt-get install python3-numpy
sudo apt-get install liblapack-dev
sudo apt-get install libblas-dev
sudo apt-get install libboost-python-dev
sudo apt-get install libboost-numpy-dev
sudo apt-get install tcl
sudo apt-get install tk
sudo apt-get install zlib1g-dev
sudo apt-get install bison
sudo apt-get install flex
sudo apt-get install checkinstall
sudo apt-get install openmpi-bin
sudo apt-get install libx11-dev
sudo apt-get install cmake
sudo apt-get install grace
sudo apt-get install gettext
sudo apt-get install libboost-all-dev
sudo apt-get install swig
sudo apt-get install libsuperlu-dev
# uncompress the archive and launch the installation
tar xvf salome_meca-2019.0.3-1-universal.tgz
./salome_meca-2019.0.3-1-universal.run
# when it asks to enter the installation directory I write
# /home/nicolo/projects/SalomeMeca2019
# Now the Salome Meca executable can be found with Ubuntu search
# you can launch from there
# you can also launch using
cd appli_V2019.0.3_universal/
./salome
# the graphics will not be compatible and the geometry module will crash
# see: https://code-aster.org/forum2/viewtopic.php?pid=65036#p65036
# do the following:
cd /home/nicolo/projects/SalomeMeca2019/V2019.0.3_universal/prerequisites/debianForSalome/lib/
rm libstdc++.so.6
ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 libstdc++.so.6
# The module for AsterStudy will not be found if you don’t install libffi6:
# see: https://www.code-aster.org/forum2/viewtopic.php?id=23230
# Download the .deb installer from:
# http://ftp.br.debian.org/debian/pool/main/libf/libffi/libffi6_3.2.1-6_amd64.deb
# move it to /home/nicolo/projects/SalomeMeca2019
# launch it and Ubuntu Software will install it for you
# Another way to launch it is:
cd /home/nicolo/projects/SalomeMeca2019/appli_V2019.0.3_universal/
./salome
# watching this video for a simulation example
# https://www.youtube.com/watch?v=TbZDXt_VSTE
# click Alt + F7 to move up the screen
# if you do not see the OK button that you need to click at the bottom
# of the Window
# video about how to extract stresses
# https://www.youtube.com/watch?v=QI7xll5d2FE
# uninstall: cancel folder /home/nicolo/projects/SalomeMeca2019
# but also remove folder called “salome” in ~/.config
rm -r /home/nicolo/projects/SalomeMeca2019
cd ~/.config
rm -r salome
ubuntu