|
[Sponsors] |
July 23, 2020, 18:01 |
The persistence (GLIBCXX_3.4.26 not found)
|
#1 |
New Member
Hamza
Join Date: Jul 2020
Posts: 2
Rep Power: 0 |
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 |
|
July 24, 2020, 08:07 |
|
#2 |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,286
Rep Power: 34 |
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. |
|
July 24, 2020, 08:14 |
precompiled memcpy
|
#3 |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,286
Rep Power: 34 |
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 ) |
|
July 24, 2020, 15:37 |
|
#4 | |
New Member
Hamza
Join Date: Jul 2020
Posts: 2
Rep Power: 0 |
Quote:
-Hamza |
||
July 25, 2020, 11:48 |
|
#5 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,286
Rep Power: 34 |
Quote:
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. |
||
|
|
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 |