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

You are not logged in.

#1 2018-12-10 13:55:19

jackshen2018
Member
Registered: 2018-12-10
Posts: 2

installation problem of salome-meca-2018 on centos7.5 (libstdc++.so.6)

Dear Expert,

I am new to salome-meca(SM) and code-aster(CA), and I am trying to install SM2018 to my server runing centos 7.5 for simulation of metal processing (heat treatment and additive manufacturing).

I followed the official instruction  to start the installation. However, error occurred after the installation mainly due to the issue of "libstdc++.so.6", part of the errors are listed as follows:

'''
runSalome running on localhost.localdomain
Searching for a free port for naming service: 2812 - OK
Searching Naming Service + found in 0.1 seconds
Searching /Kernel/Session in Naming Service +SALOME_ConnectionManagerServer: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /root/salome_meca/appli_V2018.0.1_public/lib/salome/libSalomeContainer.so)
SALOME_ConnectionManagerServer: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /root/salome_meca/appli_V2018.0.1_public/lib/salome/libSalomeNS.so)
SALOME_ConnectionManagerServer: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /root/salome_meca/appli_V2018.0.1_public/lib/salome/libSalomeHDFPersist.so)
SALOME_LauncherServer: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by SALOME_LauncherServer)
SALOME_ConnectionManagerServer: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /root/salome_meca/appli_V2018.0.1_public/lib/salome/libSALOMEBasics.so)
SALOME_LauncherServer: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /root/salome_meca/appli_V2018.0.1_public/lib/salome/libLauncher.so)
SALOME_LauncherServer: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /root/salome_meca/V2018.0.1_public/tools/Libbatch-V2_4_0/lib/libbatch.so)
SALOME_Session_Server: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /root/salome_meca/V2018.0.1_public/prerequisites/Paraview-v541p2/lib/paraview-5.4/libvtkFiltersPoints-pv5.4.so.1)
SALOME_Session_Server: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /root/salome_meca/V2018.0.1_public/prerequisites/Paraview-v541p2/lib/paraview-5.4/libvtkxdmf2-pv5.4.so.1)
Traceback (most recent call last):
  File "/root/salome_meca/appli_V2018.0.1_public/bin/salome/runSalome.py", line 633, in useSalome
    clt = startSalome(args, modules_list, modules_root_dir)
  File "/root/salome_meca/appli_V2018.0.1_public/bin/salome/runSalome.py", line 578, in startSalome
    session=clt.waitNSPID("/Kernel/Session",mySessionServ.PID,SALOME.Session)
  File "/root/salome_meca/V2018.0.1_public/modules/KERNEL_V8_5_0/bin/salome/orbmodule.py", line 174, in waitNSPID
    raise RuntimeError, "Process %d for %s not found" % (thePID,theName)
RuntimeError: Process 6186 for /Kernel/Session not found
'''

Can anybody help me with this problem?
Thanks in advance.
Best regards!

Jack Shen

Offline

#2 2018-12-28 02:10:43

kaengo
Member
From: Germany - Schleswig-Holstein
Registered: 2016-11-25
Posts: 26

Re: installation problem of salome-meca-2018 on centos7.5 (libstdc++.so.6)

Similar Problem:

CentOS Linux release 7.6.1810 (Core)
Kernel: Linux 4.20.0-1.el7.elrepo.x86_64

I googled a bit. It looks so, that there is no chance of installing SM18 on CentOS, because you can't update the glibc
without the risk of breaking your system.

(OK, I'm not allowed to post links, but you may google at the centos-forum)

Only way would be to build new binaries, but where are the sources of sm18?
But it is anyway a to big job for me.
So, I installed SM 17 ....:-( and will wait.

Greetings,
Holger

Below my log:


[holger@localhost ~]$ /opt/salomemeca/appli_V2018.0.1_public/salome %f
ERROR:salomeContext:Unexpected error:
Traceback (most recent call last):
  File "/opt/salomemeca/V2018.0.1_public/modules/KERNEL_V8_5_0/bin/salome/salomeContext.py", line 262, in _startSalome
    res = getattr(self, command)(options) # run appropriate method
  File "/opt/salomemeca/V2018.0.1_public/modules/KERNEL_V8_5_0/bin/salome/salomeContext.py", line 317, in _runAppli
    import setenv
  File "/opt/salomemeca/V2018.0.1_public/modules/KERNEL_V8_5_0/bin/salome/setenv.py", line 26, in <module>
    import orbmodule
  File "/opt/salomemeca/V2018.0.1_public/modules/KERNEL_V8_5_0/bin/salome/orbmodule.py", line 31, in <module>
    from omniORB import CORBA
  File "/opt/salomemeca/V2018.0.1_public/prerequisites/Omniorbpy-36/lib/python2.7/site-packages/omniORB/__init__.py", line 254, in <module>
    import _omnipy
ImportError: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by /opt/salomemeca/V2018.0.1_public/prerequisites/debianForSalome/lib/libstdc++.so.6)

I did the installation as prescribed.

Best regards,
H.Steffen
(and merry christmas afterwards and a happy new year ....;-)

Last edited by kaengo (2018-12-28 17:19:21)

Offline

#3 2019-01-02 14:49:22

kaengo
Member
From: Germany - Schleswig-Holstein
Registered: 2016-11-25
Posts: 26

Re: installation problem of salome-meca-2018 on centos7.5 (libstdc++.so.6)

I found a (maybe) solution at linux questions from knudfl from 9.2.2015.
(sorry, not able to link).

I citate:

Not "glibc" : G..LIBCXX.. means "gnu libc++", which we know as libstdc++, a gcc library.

GLIBCXX_3.4.20 is an object from the gcc-4.9.x libstdc++.so.6.0.20

The trick is to find a libstdc++-4.9.x, which is compiled with <=glibc-2.17 :

knudfl also has posted the link, where to get the library.

Unpack the package in a new folder :
$ rpm2cpio gcc-libstdc++-4.9.1-1.ram0.99.x86_64.rpm | cpio -idmv
... and copy libstdc++.so.6.0.20 to /usr/lib64/
Next : 1) $ cd /usr/lib64/
2) # rm libstdc++.so.6
3) # ln -s libstdc++.so.6.0.20 libstdc++.so.6
... and you can use applications requiring "GLIBCXX_3.4.20".
( Tested OK on one of my CentOS 7 installs.)


Sorry, I myself use my CentOS for generating benefit and have no extra machine now to try,
at this time I use salome-meca only for learning, so I don't take the risk of breaking my system ....
But maybe, you have the chance to try.

Greetings and a happy new year,
Kaengo

Offline

#4 2019-09-27 15:43:46

saad
Member
Registered: 2019-09-27
Posts: 5

Re: installation problem of salome-meca-2018 on centos7.5 (libstdc++.so.6)

Hello Kaengo,

I would like to try the solution but where can I find this package gcc-libstdc++-4.9.1-1.ram0.99.x86_64.rpm I have tried rpm finder but they do not have it there.

Offline

#5 2019-09-28 12:19:35

kaengo
Member
From: Germany - Schleswig-Holstein
Registered: 2016-11-25
Posts: 26

Re: installation problem of salome-meca-2018 on centos7.5 (libstdc++.so.6)

Sorry, long time,
I have not stored the link, and neither google find it, nor the search engine of linuxquestions.org.
Now CentOS 8 has come, I will try to install the next weeks (I must use centos, because I also use ANSYS).

Greetings,
Holger

Offline

#6 2019-10-01 08:03:42

saad
Member
Registered: 2019-09-27
Posts: 5

Re: installation problem of salome-meca-2018 on centos7.5 (libstdc++.so.6)

I was able to install

I am running Salome using the following command

LD_PRELOAD='/usr/local/lib64/libstdc++.so.6' DISPLAY=:0 ./salome

When I tried that the first time I ran into a couple of shared library issues which were resolved by the following

yum install libGLU
yum install centos-release-scl
yum install devtoolset-7-gcc*

Last edited by saad (2019-10-01 08:07:40)

Offline