Welcome to the forums. Please post in English or French.

You are not logged in.

#1 2022-05-07 13:50:25

Registered: 2008-01-19
Posts: 781

[Solved] Install Salome_Meca-2020 in Ubuntu 22.04

Hello all,

I was able to successfully install SalomeMeca-2020.0.1-1-universal.tgz in a fresh install of Ubuntu 22.04 and my notes are show below for others who might benefit too:
Yes this is testing the bleeding edge of an OS just released, but Ubuntu is quite a mature product now, and I am taking the plunge having used it since 5.10 at least.  I had previously installed it on 18.04, 20.04, etc. and wanted to give this OS release a shot, early on.   I faced more trouble downloading the software, than installing it.  Something that I have not faced before in many many years.  I do not know why the connection or download was stalling so much this time.

cd /tmp
wget -nd --timeout=600 --continue https://www.code-aster.org/FICHIERS/salome_meca-2020.0.1-1-universal.tgz

I used the timeout & continue options because the download was failing numerous times.  I had not faced this problem in the past decade.

sudo apt-get install tcl tcl-dev tk tk-dev
sudo aptitude install python2

Install the pre-requisites.  I assumed that by now python3 would be suitable, but the install will fail to create the menu entry, desktop icons, etc. if python2 is not installed in your computer.

sha1sum salome_meca-2020.0.1-1-universal.tgz
# 4882ae785034ca31bdb6018b138ac33cde0697b3  salome_meca-2020.0.1-1-universal.tgz
md5sum salome_meca-2020.0.1-1-universal.tgz
# d6fb934ff967ee32aebc4e46ab703b47  salome_meca-2020.0.1-1-universal.tgz

These differ from what is posted on the download page, but my install seems to be okay despite the mismatch.  Also the self check during installation said all was good.  Also I recall one of the Aster guys posting in the forums that the signature might be incorrectly published on the website.

tar -xvf salome_meca-2020.0.1-1-universal.tgz

I used the /tmp folder, which you need not...

    Menu -> Education -> SalomeMeca...
If you get the error:
"OpenGl_Window::CreateWindow: glXCreateContext failed."
Then run the following:

cd ${HOME}/salome_meca/V2020.0.1_universal_universal/prerequisites/debianForSalome/lib/
rm libstdc++.so
rm libstdc++.so.6
rm libstdc++.so.6.0
ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 libstdc++.so.6.0
ln -s libstdc++.so.6.0 libstdc++.so.6
ln -s libstdc++.so.6 libstdc++.so
ls -al libst*

Happy computing!

(back after a long period of absence...)

Last edited by JMB365 (2022-05-07 14:00:13)

SalomeMeca 2021
Ubuntu 20.04, 22.04