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

You are not logged in.

#1 2020-01-13 18:24:07

ngd
Member
Registered: 2020-01-13
Posts: 3

Install Code_Aster 14.4.0 ok but libmed.so.11 cannot be loaded

Hi everyone,
I am trying to install current stable version (14.4.0). It seems to be installed correctly (see log attached), however, when I launch the first test of the installation(/opt/aster/bin/as_run --vers=14.4 --test forma01a), I get the following error:

<INFO> démarrage de forma01a

--------------------------------------------------------------------------------
 Exécution de Code_Aster

<INFO> préparation de l'environnement dans /tmp/ubuntu-ubuntu-VirtualBox-interactif_1938

--------------------------------------------------------------------------------
 Copie des données

copie de .../tests/forma01a.comm...                                     [  OK  ]
copie de .../tests/forma01a.datg...                                     [  OK  ]
copie de .../tests/forma01a.mmed...                                     [  OK  ]
<INFO> Paramètres : mémoire 506.0 Mo - temps max 60 s

--------------------------------------------------------------------------------
 Exécution de Code_Aster

<INFO> Ligne de commande 1 :
<INFO> /opt/aster/14.4/bin/aster /opt/aster/14.4/lib/aster/Execution/E_SUPERV.py -commandes fort.1 --num_job=1938 --mode=interactif --rep_outils=/opt/aster/outils --rep_mat=/opt/aster/14.4/share/aster/materiau --rep_dex=/opt/aster/14.4/share/aster/datg --numthreads=1 --suivi_batch --memjeveux=63.25 --tpmax=60.0
/opt/aster/14.4/bin/aster: error while loading shared libraries: libmed.so.11: cannot open shared object file: No such file or directory
EXECUTION_CODE_ASTER_EXIT_1938=127
<INFO> Exécution Code_Aster terminée, diagnostic : <F>_ABNORMAL_ABORT

--------------------------------------------------------------------------------
 Copie des résultats


<F>_ABNORMAL_ABORT Exécution de Code_Aster terminée


 
 ---------------------------------------------------------------------------------
                                            cpu    système    cpu+sys     écoulé
 ---------------------------------------------------------------------------------
   Préparation de l'environnement          0.00       0.00       0.00       0.00
   Copie des données                       0.03       0.00       0.03       0.06
   Exécution de Code_Aster                 0.00       0.01       0.01       0.02
   Copie des résultats                     0.00       0.00       0.00       0.00
 ---------------------------------------------------------------------------------
   Total                                   0.11       0.05       0.16       0.29
 ---------------------------------------------------------------------------------

as_run 2019.0

------------------------------------------------------------
--- DIAGNOSTIC JOB : <F>_ABNORMAL_ABORT
------------------------------------------------------------


EXIT_CODE=4

However, the file libmed.so.11 is in /opt/aster/public/med-4.0.0/lib.

When I add this path to the system config, I get the same issue with the file libhdf5.so.103. Again, this file exist and so I add /opt/aster/public/hdf5-1.10.3/lib to the system config, and then I get the following issue :

<INFO> Ligne de commande 1 :
<INFO> /opt/aster/14.4/bin/aster /opt/aster/14.4/lib/aster/Execution/E_SUPERV.py -commandes fort.1 --num_job=2657 --mode=interactif --rep_outils=/opt/aster/outils --rep_mat=/opt/aster/14.4/share/aster/materiau --rep_dex=/opt/aster/14.4/share/aster/datg --numthreads=1 --suivi_batch --memjeveux=63.25 --tpmax=60.0
Traceback (most recent call last):
  File "/opt/aster/14.4/lib/aster/Execution/E_SUPERV.py", line 47, in <module>
    from aster_settings import getargs
ModuleNotFoundError: No module named 'aster_settings'
EXECUTION_CODE_ASTER_EXIT_2657=1
<INFO> Exécution Code_Aster terminée, diagnostic : <F>_ABNORMAL_ABORT

So I added sys.path.append('/opt/aster/14.4/lib/aster') at the beginning of /opt/aster/14.4/lib/aster/Execution/E_SUPERV.py

I finally get the following error :

<INFO> démarrage de forma01a

--------------------------------------------------------------------------------
 Exécution de Code_Aster

<INFO> préparation de l'environnement dans /tmp/ubuntu-ubuntu-VirtualBox-interactif_2844

--------------------------------------------------------------------------------
 Copie des données

copie de .../tests/forma01a.comm...                                     [  OK  ]
copie de .../tests/forma01a.datg...                                     [  OK  ]
copie de .../tests/forma01a.mmed...                                     [  OK  ]
<INFO> Paramètres : mémoire 506.0 Mo - temps max 60 s

--------------------------------------------------------------------------------
 Exécution de Code_Aster

<INFO> Ligne de commande 1 :
<INFO> /opt/aster/14.4/bin/aster /opt/aster/14.4/lib/aster/Execution/E_SUPERV.py -commandes fort.1 --num_job=2844 --mode=interactif --rep_outils=/opt/aster/outils --rep_mat=/opt/aster/14.4/share/aster/materiau --rep_dex=/opt/aster/14.4/share/aster/datg --numthreads=1 --suivi_batch --memjeveux=63.25 --tpmax=60.0
# ------------------------------------------------------------------------------------------
# Impression du contenu du fichier de commandes  cuter :
# ------------------------------------------------------------------------------------------
# coding=utf-8
# --------------------------------------------------------------------
# Copyright (C) 1991 - 2017 - EDF R&D - www.code-aster.org
# This file is part of code_aster.
#
# code_aster is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# code_aster is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with code_aster.  If not, see <http://www.gnu.org/licenses/>.
# --------------------------------------------------------------------

# person_in_charge: josselin.delmas at edf.fr

DEBUT(CODE=_F(
              NIV_PUB_WEB='INTERNET',
),DEBUG=_F(SDVERI='OUI'))

MA=DEFI_MATERIAU(ELAS=_F(E=200000.0,
                         NU=0.3,),);

MAIL=LIRE_MAILLAGE(FORMAT='MED',);

MODE=AFFE_MODELE(MAILLAGE=MAIL,
                 AFFE=_F(TOUT='OUI',
                         PHENOMENE='MECANIQUE',
                         MODELISATION='C_PLAN',),);

MAIL=MODI_MAILLAGE(reuse =MAIL,
                   MAILLAGE=MAIL,
                   ORIE_PEAU_2D=_F(GROUP_MA='haut',),);

MATE=AFFE_MATERIAU(MAILLAGE=MAIL,
                   AFFE=_F(TOUT='OUI',
                           MATER=MA,),);

CHAR=AFFE_CHAR_MECA(MODELE=MODE,
                    DDL_IMPO=(_F(GROUP_MA='bas',
                                 DY=0.0,),
                              _F(GROUP_MA='gauche',
                                 DX=0.0,),),
                    PRES_REP=_F(GROUP_MA='haut',
                                PRES=-100.0,),);

RESU=MECA_STATIQUE(MODELE=MODE,
                   CHAM_MATER=MATE,
                   EXCIT=_F(CHARGE=CHAR,),);

RESU=CALC_CHAMP(reuse=RESU,RESULTAT=RESU,CRITERES=('SIEQ_ELNO','SIEQ_ELGA'),CONTRAINTE=('SIGM_ELNO'))


RESU=CALC_CHAMP(reuse =RESU,
             RESULTAT=RESU,
             CONTRAINTE='SIGM_NOEU',CRITERES='SIEQ_NOEU');

IMPR_RESU(FORMAT='MED',
          UNITE=80,
          RESU=_F(MAILLAGE=MAIL,
                  RESULTAT=RESU,
                  NOM_CHAM=('DEPL','SIGM_NOEU','SIEQ_NOEU','SIEQ_ELGA',),),);

TEST_RESU(RESU=_F(NUME_ORDRE=1,
                  GROUP_NO='B',
                  REFERENCE='ANALYTIQUE',
                  RESULTAT=RESU,
                  NOM_CHAM='SIGM_NOEU',
                  NOM_CMP='SIYY',
                  VALE_CALC=308.289244482,
                  VALE_REFE=303.0,
                  CRITERE='RELATIF',
                  PRECISION=0.05,),
          )

TEST_RESU(RESU=_F(NUME_ORDRE=1,
                  GROUP_NO='A',
                  REFERENCE='ANALYTIQUE',
                  RESULTAT=RESU,
                  NOM_CHAM='SIGM_NOEU',
                  NOM_CMP='SIXX',
                  VALE_CALC=-88.3181823676,
                  VALE_REFE=-100.0,
                  CRITERE='RELATIF',
                  PRECISION=0.15,),
          )

FIN();

# ------------------------------------------------------------------------------------------

  Ouverture en écriture du fichier ./vola.1

 <INFO> Démarrage de l'exécution.
                                                                                
                                                                                
        -- CODE_ASTER -- VERSION : DÉVELOPPEMENT STABILISÉE (testing) --        
                                                                                
                     Version 14.4.0 modifiée le 28/06/2019                      
                   révision 9aa55c3f2e9e - branche 'default'                    
                         Copyright EDF R&D 1991 - 2020                          
                                                                                
                    Exécution du : Mon Jan 13 18:11:18 2020                     
                     Nom de la machine : ubuntu-VirtualBox                      
                              Architecture : 64bit                              
                          Type de processeur : x86_64                           
Système d'exploitation : Linux-4.15.0-74-generic-x86_64-with-Ubuntu-18.04-bionic
                     Langue des messages : (ANSI_X3.4-1968)                     
                                                                                
                           Version de Python : 3.6.9                            
                           Version de NumPy : 1.13.3                            
                           Parallélisme MPI : inactif                           
                          Parallélisme OpenMP : actif                           
                        Nombre de processus utilisés : 1                        
                     Version de la librairie HDF5 : 1.10.3                      
                      Version de la librairie MED : 4.0.0                       
                       Librairie MFront : non disponible                        
                     Version de la librairie MUMPS : 5.1.2                      
                        Librairie PETSc : non disponible                        
                     Version de la librairie SCOTCH : 6.0.4                     

                  Mémoire limite pour l'exécution : 506.00 Mo                   
                   consommée par l'initialisation : 174.00 Mo                   
                  par les objets du jeu de commandes : 3.91 Mo                  
                 reste pour l'allocation dynamique : 328.09 Mo                  
                Taille limite des fichiers d'échange : 48.00 Go                 
                                                                                

.. __stg1_txt24
  # ------------------------------------------------------------------------------------------
  # Commande No :  0001            Concept de type : -
  # ------------------------------------------------------------------------------------------
  DEBUT(CODE=_F(NIV_PUB_WEB='INTERNET',),
        DEBUG=_F(SDVERI='OUI',
                 JXVERI='NON',
                 JEVEUX='NON',
                 HIST_ETAPE='NON',),
        PAR_LOT='OUI',
        IMPR_MACRO='NON',
        MESURE_TEMPS=_F(NIVE_DETAIL=1,
                        MOYENNE='NON',),
        MEMOIRE=_F(TAILLE_BLOC=800.0,
                   TAILLE_GROUP_ELEM=1000,),
        RESERVE_CPU=_F(BORNE=900,),
        INFO=1,)


  Débogage SDVERI demandé
   
   !-------------------------------------------------------------------------------------------!
   ! <I> <SUPERVIS_22>                                                                         !
   !                                                                                           !
   !    Les mots-clés facteurs CODE et DEBUG dans DEBUT/POURSUITE sont réservés aux cas-tests. !
   !    Il ne faut pas les utiliser dans les études car ils modifient certaines valeurs par    !
   !    défaut des commandes DEBUT/POURSUITE qui ont des conséquences sur le comportement      !
   !    en cas d'erreur ou sur les performances.                                               !
   !-------------------------------------------------------------------------------------------!
   

  Valeur initiale du temps CPU maximum =   60 secondes
  Valeur du temps CPU maximum passé aux commandes =   50 secondes
  Réserve CPU prévue = 10 secondes

  Ouverture en écriture du fichier ./glob.1

  Ouverture en écriture du fichier ./vola.1
   
   !----------------------------------------------------!
   ! <F> <JEVEUX_12>                                    !
   !                                                    !
   !  Fichier associé à la base  ELEMBASE n'existe pas. !
   !  Nom du fichier :  ./elem.1                        !
   ! Ce message est un message d'erreur développeur.    !
   ! Contactez le support technique.                    !
   !                                                    !
   !                                                    !
   ! Cette erreur est fatale. Le code s'arrête.         !
   !----------------------------------------------------!
   
Traceback returned by GNU libc (last 25 stack frames):
/opt/aster/14.4/bin/aster(print_trace_+0x1f) [0x558e7a5ab57f]
/opt/aster/14.4/bin/aster(utmess_core_+0xa38) [0x558e7b7e51a8]
/opt/aster/14.4/bin/aster(utmess_+0x5ec) [0x558e7b7e432c]
/opt/aster/14.4/bin/aster(jxlir1_+0x321) [0x558e7afb66a1]
/opt/aster/14.4/bin/aster(jeinif_+0x1d56) [0x558e7af95526]
/opt/aster/14.4/bin/aster(ibcael_+0x7d) [0x558e7b5f5e3d]
/opt/aster/14.4/bin/aster(ibcatc_+0x71) [0x558e7ac65501]
/opt/aster/14.4/bin/aster(ibcata_+0x606) [0x558e7b5f65c6]
/opt/aster/14.4/bin/aster(debut_+0x1a9) [0x558e7b5f2009]
/opt/aster/14.4/bin/aster(+0xc6297) [0x558e7a5a2297]
/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0(_PyCFunction_FastCallDict+0x1bb) [0x7f357e1ff77b]
/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0(+0x17c44c) [0x7f357e16844c]
/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0(_PyEval_EvalFrameDefault+0x4ec3) [0x7f357e16e563]
/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0(+0x17bc6f) [0x7f357e167c6f]
/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0(PyEval_EvalCodeEx+0x3e) [0x7f357e16872e]
/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0(+0x23c076) [0x7f357e228076]
/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0(PyObject_Call+0x48) [0x7f357e2539a8]
/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0(_PyEval_EvalFrameDefault+0x3de5) [0x7f357e16d485]
/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0(+0x17bc6f) [0x7f357e167c6f]
/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0(_PyFunction_FastCallDict+0x13d) [0x7f357e167eed]
/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0(_PyObject_FastCallDict+0x131) [0x7f357e253211]
/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0(_PyObject_Call_Prepend+0xcd) [0x7f357e25393d]
/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0(PyObject_Call+0x48) [0x7f357e2539a8]
/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0(+0x1f4afd) [0x7f357e1e0afd]
/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0(PyObject_Call+0x48) [0x7f357e2539a8]

 La mémoire demandée au lancement est surestimée, elle est de 506.00 Mo.
 Le pic mémoire utilisée est de 185.66 Mo.

   
   !----------------------------------------------------!
   ! <F> <CATAMESS_55>                                  !
   !                                                    !
   ! Appels récursifs de messages d'erreur ou d'alarme. !
   !                                                    !
   !                                                    !
   ! Cette erreur est fatale. Le code s'arrête.         !
   !----------------------------------------------------!
   

 La mémoire demandée au lancement est surestimée, elle est de 506.00 Mo.
 Le pic mémoire utilisée est de 185.91 Mo.

Aborted (core dumped)
EXECUTION_CODE_ASTER_EXIT_2844=134
<INFO> Exécution Code_Aster terminée, diagnostic : <F>_ERROR

--------------------------------------------------------------------------------
 Copie des résultats


<F>_ERROR          Exécution de Code_Aster terminée


 
 ---------------------------------------------------------------------------------
                                            cpu    système    cpu+sys     écoulé
 ---------------------------------------------------------------------------------
   Préparation de l'environnement          0.00       0.00       0.00       0.00
   Copie des données                       0.02       0.00       0.02       0.06
   Exécution de Code_Aster                 0.62       0.04       0.66       6.32
   Copie des résultats                     0.00       0.00       0.00       0.00
 ---------------------------------------------------------------------------------
   Total                                   0.71       0.05       0.76       6.54
 ---------------------------------------------------------------------------------

as_run 2019.0

------------------------------------------------------------
--- DIAGNOSTIC JOB : <F>_ERROR
------------------------------------------------------------


EXIT_CODE=4

I tested it on Ubuntu 16.04 and then 18.04. I give here the log and dbg files of ubuntu 18.04 installation, but the error is the same with ubuntu 16. Is there something wrong with the prerequisites I have installed ?

Has anyone had the same issues ?

Thanks a lot for any help you can provide.
Regards,

Nicolas


Attachments:
setup files.zip, Size: 387.2 KiB, Downloads: 112

Offline

#2 2020-02-28 09:09:15

Well
Member
Registered: 2020-02-28
Posts: 1

Re: Install Code_Aster 14.4.0 ok but libmed.so.11 cannot be loaded

Hi Nicolas, have your problem solved?
I also meet the same error, ended with some libpython3.6m.so.1.0..... anyway, the logs is just the same as you posted.
I guess it relevant with the python version.

Offline

#3 2020-11-23 22:10:35

SimonT
Member
Registered: 2020-10-19
Posts: 2

Re: Install Code_Aster 14.4.0 ok but libmed.so.11 cannot be loaded

Hi Nicolas, hi Well.

I would like to know if you solved your problems. I'm stuck with this error, I tried with Python3.6 but now I doesnt manage to install Code Aster completely.. if you solved it, this could be great !

Thank you a lot for your help.

Regards,
Simon

Offline

#4 2020-11-24 07:07:46

sameer21101970
Member
Registered: 2019-09-06
Posts: 281

Re: Install Code_Aster 14.4.0 ok but libmed.so.11 cannot be loaded

sudo python3 setup.py install --prefix=$HOME/aster

always try with sudo command, re-install.

this has helped me , it may help you too.

Offline

#5 2020-12-19 15:52:55

srouquette
Member
Registered: 2016-11-25
Posts: 23

Re: Install Code_Aster 14.4.0 ok but libmed.so.11 cannot be loaded

hi guys

Did anyone solved this problem? of shared library?

i installed CA14.6 on ubuntu18.04 and 20.04 (2 computers). The installation was ok for both computers.

When i launched as_run, i've got the same error:
/home/seb/aster/14.6/bin/aster: error while loading shared libraries: libmed.so.11: cannot open shared object file: No such file or directory
EXECUTION_CODE_ASTER_EXIT_13322=127

What is it about!?

Offline

#6 2020-12-20 07:24:49

srouquette
Member
Registered: 2016-11-25
Posts: 23

Re: Install Code_Aster 14.4.0 ok but libmed.so.11 cannot be loaded

hello CA fellows

This problem disappeared... but i don't really know exactly why? i re-installed CA, firstly i removed the previous install of 14.6, secondly i modified two lines in the "setup.cfg" file. I specified where was the path to find libboost as follows:

# Boost Python installation
HOME_BOOST = "/usr/lib/x86_64-linux-gnu"
LIBNAME_BOOST = "libboost_python3"

Of course, you have to set YOUR PATH to your libboost library. These lines were commented so i uncommented it!

I think that it is likely the beginner's luck AS i'm not an expert in linux or setting up application on ubuntu!!!

It worked for my 2 computers (one workig under ubuntu18.04 and the other under 20.04).

Let's try for you

Sebastien

Happy Xmas and New year

Offline

#7 2020-12-28 18:07:16

tiaschaer
Member
Registered: 2020-12-28
Posts: 2

Re: Install Code_Aster 14.4.0 ok but libmed.so.11 cannot be loaded

Hi everyone,
I might have a related error on Arch Linux after today´s system update.
I am running Salome-Meca 2019.0.3-2 successfully installed through the AUR package salome-meca-bin. Shaper, Geometry, Mesh and AsterStudy modules were running as expected before today´s update.
After the update, everything seems to work fine till I start the simulation with code_aster. No matter which model I open (all of them were running before the system update), I always get the following error in the log file:

# ------------------------------------------------------------------------------------------

  Ouverture en écriture du fichier ./vola.1

 <INFO> Démarrage de l'exécution.
                                                                                
                                                                                
              -- CODE_ASTER -- VERSION:  EXPLOITATION (stable) --               
                                                                                
                       Modified 14.4.0 version 21/08/2019                       
                the revision 2708712c2a40 - branch  v14.4_smeca                 
                        Copyright EDF R & D 1991 - 2020                         
                                                                                
                    Exécution of:  Mon Dec 28 16:49:25 2020                     
                         Name of the machine:  arch-tia                         
                               Structure:  64bit                                
                               CPU type:  x86_64                                
            Operating system:  Linux-5.9.14-arch1-1-x86_64-with-arch            
                     Language of the messages:  en (UTF-8)                      
                                                                                
                             Python version: 3.6.5                              
                             NumPy version: 1.15.1                              
                             Parallelism MPI: idle                              
                           OpenMP parallelism: Nombre                           
                          credit of processes used:  1                          
                      Version of the HDF5 library : 1.10.3                      
/opt/salome_meca/V2019.0.3_universal/tools/Code_aster_stable-v144_smeca/bin/aster: symbol lookup error: /opt/salome_meca/V2019.0.3_universal/tools/Code_aster_stable-v144_smeca/bin/aster: undefined symbol: MEDlibraryNumVersion
EXECUTION_CODE_ASTER_EXIT_1549-0001-arch-tia=127
<INFO> Code_Aster run ended, diagnostic : <F>_ABNORMAL_ABORT

--------------------------------------------------------------------------------

More information in the attached files: stderr_command_salome.log, L952-968

I am pretty convinced that this has to do with some changes in a library that has been updated.
Any idea how to solve this?


Attachments:
stderr_command_salome.log, Size: 154.57 KiB, Downloads: 17

Offline

#8 2021-01-03 11:08:51

seirov
Member
Registered: 2020-12-24
Posts: 13

Re: Install Code_Aster 14.4.0 ok but libmed.so.11 cannot be loaded

@tiaschaer
I have the same problem, I updated from 2017 to 2019.0.3 and now I can't load code aster. I have tested it with a case I already run successfully in other computer, and checking the log I have seen that line

Version of the MED library : 4.0.0

is missing. So, it is something related with med, as also indicated in the output:

undefined symbol: MEDlibraryNumVersion

I have alreayd installed med 4.1.0-3 in manjaro, and I have tried re-installing it, but it still doesn't work. Have you found any solution?
Thanks.

Offline

#9 2021-01-03 17:09:45

seirov
Member
Registered: 2020-12-24
Posts: 13

Re: Install Code_Aster 14.4.0 ok but libmed.so.11 cannot be loaded

I answer myself. In my opinion, I installed salome 2019.0.3 after tiaschaer, so I already had in my system the update that broke tiaschaer's salome. So, my first installation of salome 2019.0.3 didn't even work. This make me think that the problem might be med, and not salome itself... et voilà. I downgraded med to version 4.0.0, launch a calculation and it worked. The exact solution for manjaro is (as root):

export DOWNGRADE_FROM_ALA=1
downgrade med

Offline

#10 2021-01-17 19:28:58

tiaschaer
Member
Registered: 2020-12-28
Posts: 2

Re: Install Code_Aster 14.4.0 ok but libmed.so.11 cannot be loaded

Dear seirov,
Thank you very much for your help, downgrading the med package to version med-4.0.0-8 solved the issue! Starting from version med-4.1.0-1, CodeAster computations are not working.
Thank you very much again!

P.S.: Not sure if our posts should be moved to a separate topic.

Offline