Personal tools
You are here: Home Forum Install & build trouble installing Salome on Linuxmint

trouble installing Salome on Linuxmint

Up to Install & build

trouble installing Salome on Linuxmint

Posted by Joseph Bielecki at July 11. 2020

I have tried to install latest Salome 9.4 for Ubuntu 18.04 on linuxmint assuming it is compatible. this what I get when I download extract and place in a /salome directory in /home:

 

runSalome running on JoePC

Searching for a free port for naming service: 2812 - OK

Searching Naming Service +omniNames: (0) 2020-07-11 00:45:41.979266: -ORBendPoint option overriding default endpoint.

found in 0.1 seconds

SALOME_Session_Server: error while loading shared libraries: libOpenGL.so.0: cannot open shared object file: No such file or directory

Traceback (most recent call last):

File "/home/salome/SALOME-9.4.0-UB18.04-SRC/BINARIES-UB18.04/KERNEL/bin/salome/orbmodule.py", line 181, in waitNSPID

os.kill(thePID,0)

ProcessLookupError: [Errno 3] No such process


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

File "/home/salome/SALOME-9.4.0-UB18.04-SRC/BINARIES-UB18.04/KERNEL/bin/salome/runSalome.py", line 679, in useSalome

clt = startSalome(args, modules_list, modules_root_dir)

File "/home/salome/SALOME-9.4.0-UB18.04-SRC/BINARIES-UB18.04/KERNEL/bin/salome/runSalome.py", line 624, in startSalome

session=clt.waitNSPID("/Kernel/Session",mySessionServ.PID,SALOME.Session)

File "/home/salome/SALOME-9.4.0-UB18.04-SRC/BINARIES-UB18.04/KERNEL/bin/salome/orbmodule.py", line 183, in waitNSPID

raise RuntimeError("Process %d for %s not found" % (thePID,theName))

RuntimeError: Process 48154 for /Kernel/Session not found

Searching /Kernel/Session in Naming Service


--- Error during Salome launch ---

joseph@JoePC:/home/salome/SALOME-9.4.0-UB18.04-SRC$ Warning, no type found for resource "localhost", using default value "single_machine"

 

Any help will be appreciated. I am guessing from reading other struggles that I may need to get-install a library like libOpenG but some step by step would help because i am a little rusty with unix based shell commands (graduate in the '90s).

p { margin-bottom: 0.1in; line-height: 115%; background: transparent }

Re: trouble installing Salome on Linuxmint

Posted by Joseph Bielecki at July 12. 2020
Apparently, linuxmint is using
 
joseph@JoePC:/home/salome/SALOME-9.4.0-UB18.04-SRC$ gcc --version
gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
If this helps someone help me get Salome running on my machine. Thanks,\
 

Re: trouble installing Salome on Linuxmint

Posted by Joseph Bielecki at July 12. 2020
Apparently, linuxmint is using
 
joseph@JoePC:/home/salome/SALOME-9.4.0-UB18.04-SRC$ gcc --version
gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
If this helps someone help me get Salome running on my machine. Thanks,\

Previously Joseph Bielecki wrote:

 

Re: trouble installing Salome on Linuxmint

Posted by Joseph Bielecki at July 12. 2020
Apparently, linuxmint is using
 
joseph@JoePC:/home/salome/SALOME-9.4.0-UB18.04-SRC$ gcc --version
gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
If this helps someone help me get Salome running on my machine. Thanks,\

Previously Joseph Bielecki wrote:

 

Re: trouble installing Salome on Linuxmint

Posted by Nabil Ghodbane at July 12. 2020

not familiar with Linux mint, but from the error message, you need to install the missing external library. To do that, use apt-file

sudo apt-get install apt-file
sudo apt-file update
apt-file find libOpenGL.so

 

Re: trouble installing Salome on Linuxmint

Posted by Joseph Bielecki at July 13. 2020

Thanks Nabil, but this is what happened:


joseph@JoePC:/home/salome$ sudo apt-get install apt-file

[sudo] password for joseph:      
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following additional packages will be installed:
  libregexp-assemble-perl
The following NEW packages will be installed:
  apt-file libregexp-assemble-perl
0 upgraded, 2 newly installed, 0 to remove and 7 not upgraded.
Need to get 105 kB of archives.
After this operation, 296 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu focal/universe amd64 libregexp-assemble-perl all 0.36-1 [77.5 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal/universe amd64 apt-file all 3.2.2 [27.6 kB]
Fetched 105 kB in 11s (9,314 B/s) 
Selecting previously unselected package libregexp-assemble-perl.
(Reading database ... 289286 files and directories currently installed.)
Preparing to unpack .../libregexp-assemble-perl_0.36-1_all.deb ...
Unpacking libregexp-assemble-perl (0.36-1) ...
Selecting previously unselected package apt-file.
Preparing to unpack .../apt-file_3.2.2_all.deb ...
Unpacking apt-file (3.2.2) ...
Setting up libregexp-assemble-perl (0.36-1) ...
Setting up apt-file (3.2.2) ...
The system-wide cache is empty. You may want to run 'apt-file update'
as root to update the cache.
Processing triggers for man-db (2.9.1-1) ...
joseph@JoePC:/home/salome$ sudo apt-file update

Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]     
Ign:2 http://packages.linuxmint.com ulyana InRelease                          
Hit:3 http://packages.linuxmint.com ulyana Release                            
Hit:4 http://archive.canonical.com/ubuntu focal InRelease                     
Hit:5 http://archive.ubuntu.com/ubuntu focal InRelease                       
Get:7 http://archive.ubuntu.com/ubuntu focal-updates InRelease [111 kB]
Get:8 http://packages.linuxmint.com ulyana/main i386 Contents (deb) [513 kB]  
Get:9 http://archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB]    
Get:10 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [21.2 kB]
Get:11 http://packages.linuxmint.com ulyana/main amd64 Contents (deb) [513 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal i386 Contents (deb) [32.2 MB]   
Get:13 http://security.ubuntu.com/ubuntu focal-security i386 Contents (deb) [3,002 kB]
Get:14 http://packages.linuxmint.com ulyana/upstream i386 Contents (deb) [36.6 kB]
Get:15 http://packages.linuxmint.com ulyana/upstream amd64 Contents (deb) [57.4 kB]
Get:16 http://packages.linuxmint.com ulyana/import i386 Contents (deb) [1,751 B]
Get:17 http://packages.linuxmint.com ulyana/import amd64 Contents (deb) [13.5 kB]
Get:18 http://packages.linuxmint.com ulyana/backport i386 Contents (deb) [22.2 kB]
Get:19 http://packages.linuxmint.com ulyana/backport amd64 Contents (deb) [48.4 kB]
Get:20 http://security.ubuntu.com/ubuntu focal-security amd64 Contents (deb) [6,584 kB]
Get:21 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [35.6 kB]
Get:22 http://archive.ubuntu.com/ubuntu focal amd64 Contents (deb) [40.9 MB]  
Get:23 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [166 kB]
Get:24 http://archive.ubuntu.com/ubuntu focal-updates amd64 Contents (deb) [8,375 kB]
Get:25 http://archive.ubuntu.com/ubuntu focal-updates i386 Contents (deb) [4,598 kB]
Get:26 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [173 kB]
Get:27 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [2,468 B]
Get:28 http://archive.ubuntu.com/ubuntu focal-backports amd64 Contents (deb) [3,377 B]
Get:29 http://archive.ubuntu.com/ubuntu focal-backports i386 Contents (deb) [1,975 B]
Get:30 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 DEP-11 Metadata [1,976 B]
Fetched 97.5 MB in 32s (3,013 kB/s)                                           
Reading package lists... Done
Building dependency tree      
Reading state information... Done
7 packages can be upgraded. Run 'apt list --upgradable' to see them.
joseph@JoePC:/home/salome$ apt-file find libOpenGL.so

libopengl-dev: /usr/lib/x86_64-linux-gnu/libOpenGL.so
libopengl0: /usr/lib/x86_64-linux-gnu/libOpenGL.so.0
libopengl0: /usr/lib/x86_64-linux-gnu/libOpenGL.so.0.0.0

joseph@JoePC:/home/salome$ ls
SALOME-9.4.0-UB18.04-SRC
joseph@JoePC:/home/salome$ ./salome
bash: ./salome: No such file or directory
joseph@JoePC:/home/salome$ cd SALOME-9.4.0-UB18.04-SRC
joseph@JoePC:/home/salome/SALOME-9.4.0-UB18.04-SRC$ ls
ARCHIVES          install_bin.sh  salome                          SOURCES
BINARIES-UB18.04  mesa_salome     SALOME_9_4_0_Release_Notes.pdf
binsalome         PROJECT         salomeTools
env_launch.sh     README          sat

joseph@JoePC:/home/salome/SALOME-9.4.0-UB18.04-SRC$ ./salome
runSalome running on JoePC
INFO:MainThread:/home/salome/SALOME-9.4.0-UB18.04-SRC/BINARIES-UB18.04/KERNEL/bin/salome/PortManager.py[158]Problem loading PortManager file: /tmp/.salome_PortManager.cfg
INFO:PortManager:Problem loading PortManager file: /tmp/.salome_PortManager.cfg
Searching for a free port for naming service: 2810 - OK
Searching Naming Service  +omniNames: (0) 2020-07-13 13:05:50.378989: -ORBendPoint option overriding default endpoint.
 found in 0.1 seconds
Searching /Kernel/Session in Naming Service  +SALOME_Session_Server: error while loading shared libraries: libOpenGL.so.0: cannot open shared object file: No such file or directory
Warning, no type found for resource "localhost", using default value "single_machine"
Traceback (most recent call last):
  File "/home/salome/SALOME-9.4.0-UB18.04-SRC/BINARIES-UB18.04/KERNEL/bin/salome/orbmodule.py", line 181, in waitNSPID
    os.kill(thePID,0)
ProcessLookupError: [Errno 3] No such process

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/salome/SALOME-9.4.0-UB18.04-SRC/BINARIES-UB18.04/KERNEL/bin/salome/runSalome.py", line 679, in useSalome
    clt = startSalome(args, modules_list, modules_root_dir)
  File "/home/salome/SALOME-9.4.0-UB18.04-SRC/BINARIES-UB18.04/KERNEL/bin/salome/runSalome.py", line 624, in startSalome
    session=clt.waitNSPID("/Kernel/Session",mySessionServ.PID,SALOME.Session)
  File "/home/salome/SALOME-9.4.0-UB18.04-SRC/BINARIES-UB18.04/KERNEL/bin/salome/orbmodule.py", line 183, in waitNSPID
    raise RuntimeError("Process %d for %s not found" % (thePID,theName))
RuntimeError: Process 5639 for /Kernel/Session not found


--- Error during Salome launch ---
joseph@JoePC:/home/salome/SALOME-9.4.0-UB18.04-SRC$

Still seems to be looking for this libOpen. any further help is appreciated.

 

Re: trouble installing Salome on Linuxmint

Posted by Nabil Ghodbane at July 13. 2020
apt-file tells you which package contains the required library. In your case, libopengl0. You need to install libopengl0

                 apt-get install libopengl0

HTH

Re: trouble installing Salome on Linuxmint

Posted by Nabil Ghodbane at July 13. 2020

In the same manner, you will hit another issue about tbb. Install it as sudo with apt-file/apt as you did for libopengl.so.

Use apt-file to find which package contains the libtbb.so

apt-file find libtbb.so

apt-get install .....

 

Powered by Ploneboard
Document Actions