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

You are not logged in.

#1 2018-12-06 19:48:22

VincentMcB
Member
Registered: 2018-12-06
Posts: 3

Installation Salome 2016 on Ubuntu 18.04 LTS

Hi everyone,

I try to install Salome meca V2016 on a virtual computer equiped of Ubuntu 18.04 LTS

One of my contact should me to install first salome meca 2018

So i get SM V2018

For this i have install python2.7 and netstat (now net-tools) using " sudo apt-get install <appli>"

After some trials (like adding underscore on 3 datas (those who contain libstdc++) in folder /V2018/prequisites/lib) , i succesful install V2018 and run it without problems (and without running Aster module because i don't know how to use this last version of Salome meca)

So after that, i install V2016 and i can't run it without using root user !

I have to use 'sudo ./salome' in /appliV2016 else the terminal return me :

runSalome running on vincent-VM
Searching for a free port for naming service: 2812 - OK
Searching Naming Service + found in 0.1 seconds
Searching /Kernel/Session in Naming Service +++Warning: this type (Study,objref) already exists, it will be ignored.
+Traceback (most recent call last):
  File "/home/vincent/salome_meca/appli_V2016/bin/salome/runSalome.py", line 620, in useSalome
    clt = startSalome(args, modules_list, modules_root_dir)
  File "/home/vincent/salome_meca/appli_V2016/bin/salome/runSalome.py", line 565, in startSalome
    session=clt.waitNSPID("/Kernel/Session",mySessionServ.PID,SALOME.Session)
  File "/home/vincent/salome_meca/V2016/modules/KERNEL_V7_8_0/bin/salome/orbmodule.py", line 174, in waitNSPID
    raise RuntimeError, "Process %d for %s not found" % (thePID,theName)
RuntimeError: Process 12459 for /Kernel/Session not found

--- Error during Salome launch ---

If anyone can help me !
I have to do some work on it in a few times so every day pass without a correct running of salome meca 2016 would be wasting time !

Thanks

PS : I'm french

Offline

#2 2018-12-07 08:52:57

jeanpierreaubry
Guru
From: nantes (france)
Registered: 2009-03-12
Posts: 3,261

Re: Installation Salome 2016 on Ubuntu 18.04 LTS

hello


After some trials (like adding underscore on 3 datas (those who contain libstdc++) in folder /V2018/prequisites/lib)

do you really understand what you did with that?

running Salome-meca as root will probably ruin some configuration files and the worst can be expected after that
this concerns the omniORB setup

what i would do (without any guarantee of success)

delete the directory $HOME/.config/salome make a copy before

look if there is a directory root/.config/salome if yes do the same

delete altogether your fancy SM2018 installation

see if SM2016 works then

reinstall SM2018 without modifying what is in the directory

and first tell us who you are in the adhoc section of the forum

jean pierre aubry

Offline

#3 2018-12-08 11:12:22

VincentMcB
Member
Registered: 2018-12-06
Posts: 3

Re: Installation Salome 2016 on Ubuntu 18.04 LTS

Thanks Mr Aubry for your reply,
I introduce myself in the right section.

So now back to my issue :

I have uninstall all files which you have named.
I also uninstall all files concerning all salome's versions of my disk

After all, i have only " tar zxvf SALOME2016" ./SMECA_V2016_LGPL.run " 

Results :

===========================================
Self Extracting salome_meca V2016 Installer
===========================================

Enter the salome_meca install directory [default=/home/vincent/salome_meca] :
The directory /home/vincent/salome_meca/V2016 already exists, install anyway ? [y/N] y
salome_meca is in English, do you want to be in French ? [y/N] : n
Installation of salome_meca V2016 in /home/vincent/salome_meca/V2016 ...
Verifying archive integrity...
All good.
Done                                                                           
Creating salome_meca application in /home/vincent/salome_meca/appli_V2016 ...
Installing the CatalogResources file in /home/vincent/salome_meca/appli_V2016/CatalogResources.xml
salome_meca post-installation ...
Adjusting the file : /home/vincent/salome_meca/appli_V2016/SalomeApp.xml
Traceback (most recent call last):
  File "./salome_hpc_visu_porthos.py", line 2, in <module>
    import rlcompleter,readline
ImportError: libreadline.so.6: cannot open shared object file: No such file or directory
The salome_meca application was successfully created.
To run the application:
$ /home/vincent/salome_meca/appli_V2016/salome
Adjusting wishexecutable /home/vincent/salome_meca/V2016/tools/Code_aster_frontend-20160/etc/codeaster/profile.sh
Initialize terminal and editor for Code_aster
Creating symlink in /home/vincent/salome_meca/V2016/tools/Code_aster_frontend-20160/outils : salome -> /home/vincent/salome_meca/appli_V2016/salome
Make link in /home/vincent/salome_meca/V2016/tools/Code_aster_frontend-20160/outils : homard -> ../../Homard_aster-117_aster/ASTER_HOMARD/homard
Make link in /home/vincent/salome_meca/V2016/tools/Code_aster_frontend-20160/outils : gibi -> ../../Gibi-20008/gibi_aster.py
Make link in /home/vincent/salome_meca/V2016/tools/Code_aster_frontend-20160/outils : gmsh -> ../../../prerequisites/Gmsh_bin-2120Linux64/bin/gmsh
Make links in /home/vincent/salome_meca/V2016/tools/Code_aster_frontend-20160/outils : gpmetis
Make links in /home/vincent/salome_meca/V2016/tools/Code_aster_frontend-20160/outils : kmetis, pmetis, onmetis
Make links in /home/vincent/salome_meca/V2016/tools/Code_aster_frontend-20160/outils : eficas,eficasQt
replace /home/vincent/salome_meca/appli_V2016/runAppli with /home/vincent/salome_meca/appli_V2016/salome
replace /home/vincent/salome_meca/appli_V2016//CatalogResources.xml

After, i went to /salome_meca/appli_V2016/    to run "./salome" :

runSalome running on vincent-VM
INFO:MainThread:Problem loading PortManager file: /home/vincent/salome_meca/appli_V2016/USERS/.omniORB_PortManager.cfg
INFO:PortManager:Problem loading PortManager file: /home/vincent/salome_meca/appli_V2016/USERS/.omniORB_PortManager.cfg
Searching for a free port for naming service: 2810 - OK
Searching Naming Service + found in 0.1 seconds
Searching /Kernel/Session in Naming Service ++++Warning: this type (Study,objref) already exists, it will be ignored.
found in 2.0 seconds
Start SALOME, elapsed time :   2.2 seconds

A short window appear few seconds before disappear.

I'm totally lost in which files or command doesn't make the software running ...

Offline

#4 2018-12-08 16:34:12

jeanpierreaubry
Guru
From: nantes (france)
Registered: 2009-03-12
Posts: 3,261

Re: Installation Salome 2016 on Ubuntu 18.04 LTS

2016 is quite an old version and i do not have it on my computer right know
in the old days the command to launch salome-meca was "runAppli" not "salome"
i am not sure about 2016

why not trying to install 2018, it installed fine on my opensuse

my main advice
do not try to invent anything and follow strictly the instruction

last point
try to find out if libreadline.so.6 is installed on your system, if not install it

Offline

#5 2018-12-08 18:20:04

Volker
Member
From: Chemnitz
Registered: 2016-05-23
Posts: 65

Re: Installation Salome 2016 on Ubuntu 18.04 LTS

Hi all,
I had a look in my old start script for versione 2016:
The main purpose of the script was to get a bash terminal with all messages from SALOME which will not disappear suddenly:

#!/bin/sh
gnome-terminal -e "bash -c 'cd /home/vincent/salome_meca && cd appli_V2016 &&  ./salome 2>&1 && exec $SHELL'"

Offline

#6 Yesterday 10:41:46

jeanpierreaubry
Guru
From: nantes (france)
Registered: 2009-03-12
Posts: 3,261

Re: Installation Salome 2016 on Ubuntu 18.04 LTS

hello

#!/bin/sh
gnome-terminal -e "bash -c 'cd /home/vincent/salome_meca && cd appli_V2016 &&  ./salome 2>&1 && exec $SHELL'"

i never had to do that sort of tweaking on any salome meca install
and that since the very first version around 10 years ago
strictly following the instruction did the job

is that typical of ubuntu ?
as all the installation problem posts in here refer to ubuntu
what is so special with ubuntu ?

jean pierre aubry

Offline

Board footer