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

You are not logged in.

#1 Re: Salome-Meca installation » Installation on Ubuntu 20.04 » 2021-07-22 23:42:39

This worked for me installing SM 2020.0.1 on Ubuntu 20.04. Thank you!

sb1966 wrote:

Hi all,

Installation of Salome-meca2019.0.3 in Xubuntu 20.04 was successful with these following minimalistic steps,
unlike the detailed python reinstall as described in the previous reply by ckrug. My steps are as follows:

1. Install all the prerequisites listed in forum (c-a.org/V2/spip.php?article 273).

sudo apt-get install python3-dev
sudo apt-get install python3-numpy
sudo apt-get install tcl tk
sudo apt-get install bison
sudo apt-get install flex
sudo apt-get install liblapack-dev
sudo apt-get install libblas-dev
sudo apt-get install libopenblas-dev

2. Make sure also to install libopenblas-base.

sudo apt-get install libopenblas-base

This is essential to avoid  "Exit error=127" later while running code-aster (AsterStudy)

3. Install the requisite qt5 pacakges and net-tools etc as described in forum post php?id=24470

sudo apt-get install libqt5pengl5
sudo apt-get install libqt5concurrent5
sudo apt-get install libqt5opengl5
sudo apt-get install libqt5multimediawidgets5
sudo apt-get install net-tools
sudo apt-get install libnlopt0 

4. install python2, named python2-minimal in ubuntu 20.04:

sudo apt-get install python2-minimal

5. Install salome-meca following usual procedure.
5a. This will not create the application, but creates a script create_appl.sh.
6. edit the file to change "python" to "python2" in all its occurences (it occurs three times), as zohir described in one of his posts in this page.
6a. Then run this edited file in terminal:

./create_appli.sh 

.
This will install the application along with the desktop icon.

7. Install liffi6.3.2 as described earlier in this page.
viz.:

wget -O $HOME/Downloads/libffi6_3.2.1-9_amd64.deb http://ftp.br.debian.org/debian/pool/main/libf/libffi/libffi6_3.2.1-9_amd64.deb
sudo dpkg -i $HOME/Downloads/libffi6_3.2.1-9_amd64.deb

8. Create symbolic link of libffi.so.6 as follows:

cd ~/salome_meca/V2019.0.3_universal/prerequisites/debianForSalome/lib 

ln -s /usr/lib/x86_64-linux-gnu/libffi.so.6 libffi.so.6 

9. remove or rename libstdc++.so* files in ~/salome_meca/V2019.0.3_universal/prerequisites/debianForSalome/lib

mv libstdc++.so _libstdc++.so
mv libstdc++.so.6 _libstdc++.so.6
mv libstdc++.so.6.0 _libstdc++.so.6.0
mv libstdc++.so.6.0.22 _libstdc++.so.6.0.22 

This was essential to avoid opengl error in my case.

EDIT: This issue was also discussed in ___/forum2/viewtopic.php?id=24956

10. Now salome-meca-2019 can be invoked normally.

Hope this helps someone.

Best regards

Sukumar