CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

The persistence (GLIBCXX_3.4.26 not found)

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By Hamza0

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 23, 2020, 18:01
Post The persistence (GLIBCXX_3.4.26 not found)
  #1
New Member
 
Hamza
Join Date: Jul 2020
Posts: 2
Rep Power: 0
Hamza0 is on a distinguished road
Hi all,

When I tried to open paraview from the terminal after I run simulations from the tutorial package in OpenFoam I got the below message:

__________________
File "/usr/lib/command-not-found", line 28, in <module>
from CommandNotFound import CommandNotFound
File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 19, in <module>
from CommandNotFound.db.db import SqliteDatabase
File "/usr/lib/python3/dist-packages/CommandNotFound/db/db.py", line 5, in <module>
import apt_pkg
ImportError: /home/hayyash/OpenFOAM/ThirdParty-v2006/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /lib/x86_64-linux-gnu/libapt-pkg.so.6.0)
__________________
I did the necessary updates for libstdc++6 and other updates as well.

I am running OpenFoam under Windows 10 environment using Ubuntu 20.04 LTS.

Thank you for your support.

-Hamza
qutadah.r and tianfang_ccri like this.
Hamza0 is offline   Reply With Quote

Old   July 24, 2020, 08:07
Default
  #2
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,286
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
This is happening due to the fact that someone in gnu compiler is forcing memcpy and memset to be used from newer versions of glibc.

Usually the program can use these from older versions too if the version from which code was compiled is not found in system. But someone had great idea to force them to be used from newer versions. This person has screwed things for many people around the world.

Now the solution I am not sure how you can do from the compiled code, but usually you can provide your own memcpy and memset and avoid the program to take it from system.

I did this when I deployed Wildkatze to some places since they did not have newer glibc.


Another way is if you yourself are compiling then to compile the code using older compiler.
arjun is offline   Reply With Quote

Old   July 24, 2020, 08:14
Default precompiled memcpy
  #3
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,286
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
I attach you my libmemcpy and this is how i am linking it to wildkatze using cmake.


add_executable ( wildkatze janus/janus.cpp ${SOURCES} )


target_link_libraries ( wildkatze

${FVUSUser_LIBRARY}
${CMAKE_THREAD_LIBS_INIT}
/home/savya/FVUS5/wildcat/wGlib/libmemcpy-2.14.so
/usr/lib/x86_64-linux-gnu/libdl.so
)
Attached Files
File Type: zip libmemcpy-2.14.zip (2.1 KB, 44 views)
arjun is offline   Reply With Quote

Old   July 24, 2020, 15:37
Default
  #4
New Member
 
Hamza
Join Date: Jul 2020
Posts: 2
Rep Power: 0
Hamza0 is on a distinguished road
Quote:
Originally Posted by arjun View Post
I attach you my libmemcpy and this is how i am linking it to wildkatze using cmake.


add_executable ( wildkatze janus/janus.cpp ${SOURCES} )


target_link_libraries ( wildkatze

${FVUSUser_LIBRARY}
${CMAKE_THREAD_LIBS_INIT}
/home/savya/FVUS5/wildcat/wGlib/libmemcpy-2.14.so
/usr/lib/x86_64-linux-gnu/libdl.so
)
Thank you for the valuable information. I am a bit new of linux-like environment and will appreciate if you can break things down more.

-Hamza
Hamza0 is offline   Reply With Quote

Old   July 25, 2020, 11:48
Default
  #5
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,286
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
Quote:
Originally Posted by Hamza0 View Post
Thank you for the valuable information. I am a bit new of linux-like environment and will appreciate if you can break things down more.

-Hamza



It was basically how I am connecting my own memcpy lib to my code so that it does not give me this glic warning. I am using cmake , a tool for compiling so for that you can also follow what i did and it shall be okay.



If you are not using cmake and compiling then you would have to find out how you can connect your own memcpy lib to it.

I posted to show you how you can do.
arjun is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gmsh installation on terminal help spitfire Main CFD Forum 4 July 27, 2017 16:11
injection problem Mark New FLUENT 0 August 4, 2013 02:30
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 08:21
Problems Installing OF 1.6 32 bit bucksfan OpenFOAM Installation 19 August 4, 2009 02:36
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 03:32


All times are GMT -4. The time now is 20:19.