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

You are not logged in.

#1 Re: Salome-Meca installation » Salome_Meca V2019.0.3_Ubuntu 18.04 Installation Issues » 2020-02-03 14:16:30

Hi,

I have the same trouble on CentOS 7.4 when installing salome_meca-2019.0.3-1-universal.

The file create_appli.sh that is used by the installer sets SALOMEDIR:
if test -z "$SALOMEDIR"; then
  SALOMEDIR=`python -c "import os; print os.path.normpath(os.path.dirname(os.path.abspath(os.path.realpath('$0'))))" 2>/dev/null`
fi

This python command return an empty value for SALOMEDIR when Python 3.6.8 is used:
[soft@fusion V2019.0.3_universal]$ python -c "import os; print os.path.normpath(os.path.dirname(os.path.abspath(os.path.realpath('$0'))))" 2>/dev/null
SALOMEDIR = ' '

Thus some files are not found by the installer:
./create_appli.sh: ligne108: /salome_prerequisites_root.sh: Aucun fichier ou dossier de ce type
./create_appli.sh: ligne109: /salome_modules.sh: Aucun fichier ou dossier de ce type
Creating salome_meca application in /gpfs/opt/softwares/salome_meca/2019-bis/appli_V2019.0.3_universal ...
sed: impossible de lire /.config_appli_template.xml: Aucun fichier ou dossier de ce type

With Python 2.7.5, SALOMEDIR is set to the right path:
[soft@fusion V2019.0.3_universal]$ python -c "import os; print os.path.normpath(os.path.dirname(os.path.abspath(os.path.realpath('$0'))))" 2>/dev/null
/gpfs/opt/softwares/salome_meca/2019/V2019.0.3_universal
SALOMEDIR = '/gpfs/opt/softwares/salome_meca/2019/V2019.0.3_universal'

but the installer looks for python3:
salome_post_install.py:#!/usr/bin/env python3 ?
/usr/bin/env: python3: Permission non accordée

Any ideas? Should we use python 3.6 or 2.7 for Salome_meca 2019?

Regards,
Anne-Sophie