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

You are not logged in.

#1 2021-04-15 15:11:00

Pedro_Moresco
Member
From: Porto Alegre, Brazil
Registered: 2018-08-07
Posts: 5

Using Salome-Meca on Ubuntu 20.04 WSL 2

Hey everyone, I'm installed SM 2020 and 2019 on a WSL Ubuntu 20.04, I'm trying to generate some geometries and meshes with this command:

./salome -t geom.py

and I'm getting this error:

'''
th. 140279767300992 - Trace /home/A21173/smeca/yamm_build/V2019.0.3_pub_build/V2019_universal/modules/src/KERNEL/src/ModuleCatalog/SALOME_ModuleCatalog_Server.cxx [101] : Module Catalog Server: Naming Service was found
Warning: this type (Study,objref) already exists, it will be ignored.
Warning: this type (SALOME_MED/MEDCouplingFieldDoubleCorbaInterface,objref) already exists, it will be ignored.
Component GEOM: C++ implementation found /home/pedro/salome_meca/appli_V2019.0.3_universal/lib/salome/libGEOMEngine.so but it is not loadable. Error:
libGLU.so.1: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "/home/pedro/Documents/testSalome/tambor.py", line 50, in <module>
    geompy = geomBuilder.New()
  File "/home/pedro/salome_meca/appli_V2019.0.3_universal/lib/python3.6/site-packages/salome/salome/geom/geomBuilder.py", line 14091, in New
    assert isinstance(geom,geomBuilder), "Geom engine class is %s but should be geomBuilder.geomBuilder. Import geomBuilder before creating the instance."%geom.__class__
AssertionError: Geom engine class is <class 'NoneType'> but should be geomBuilder.geomBuilder. Import geomBuilder before creating the instance.
ERROR:salomeContext:SystemExit 1 in method _runAppli.
'''

So I've searched in the forums and I'm not quite sure about what happened. If u could help me I'll be glad.
The two files needed to run the command are attached.


Attachments:
files.7z, Size: 2.43 KiB, Downloads: 76

Offline

#2 2021-06-03 18:26:24

chenghui62000
Banned
From: Norway
Registered: 2018-06-19
Posts: 111

Re: Using Salome-Meca on Ubuntu 20.04 WSL 2

Hi, I also have this issue with

 libGLU.so.1: cannot open shared object file: No such file or directory 

Do you have any clues to solve this problem?
Best regards,
Hui

Offline

#3 2021-06-04 20:21:16

Pedro_Moresco
Member
From: Porto Alegre, Brazil
Registered: 2018-08-07
Posts: 5

Re: Using Salome-Meca on Ubuntu 20.04 WSL 2

Hey, sorry for not updating the question. The solution I came up was to install Ubuntu 18.04 and use the script that is provided by Code Aster to install Salome Meca in virtual machines. You can find my version of the script in my github repo.
github.com/PeterMoresco/auto_free_fea_sim/tree/main/installing_sm

Offline