How can I solve the Linux paraview problem? (OpenFOAM) - paraview

I'm using OpenFOAM in Linux(wsl2) and trying to see the result of the calculation via ParaView installed in Linux. However, I got some errors and Paraview doesn't work. this is what I've done.
I installed OpenFOAM following the site.
https://www.openfoam.com/download/openfoam-installation-on-windows-10
then, I installed paraview by
sudo apt install paraview
After calculation, trying to see the result by
paraFoam
but It didn't work I god this.
Invalid $PV_PLUGIN_PATH and -plugin-path= not defined
No supplementary ParaView/OpenFOAM reader modules
Using builtin reader: paraFoam -vtk
Created temporary 'steadyIsothermal.foam'
paraview: /home/nima/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/bin/../lib/x86_64-linux-gnu/libpqApplicationComponents-pv5.7.so.1)
paraview: /home/nima/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/bin/../lib/x86_64-linux-gnu/libvtkPVServerManagerCore-pv5.7.so.1)
paraview: /home/nima/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/bin/../lib/x86_64-linux-gnu/libvtksys-pv5.7.so.1)
paraview: /home/nima/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/bin/../lib/x86_64-linux-gnu/libvtkjsoncpp-pv5.7.so.1)
paraview: /home/nima/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/bin/../lib/x86_64-linux-gnu/libvtkCommonCore-pv5.7.so.1)
paraview: /home/nima/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/bin/../lib/x86_64-linux-gnu/libvtkRenderingOpenGL2-pv5.7.so.1)paraview: /home/nima/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/bin/../lib/x86_64-linux-gnu/libvtkFiltersExtraction-pv5.7.so.1)
paraview: /home/nima/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/bin/../lib/x86_64-linux-gnu/libvtkIOExport-pv5.7.so.1)
paraview: /home/nima/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/bin/../lib/x86_64-linux-gnu/libvtkIOVisItBridge-pv5.7.so.1)
paraview: /home/nima/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/bin/../lib/x86_64-linux-gnu/libvtkPVPythonAlgorithm-pv5.7.so.1)
paraview: /home/nima/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/bin/../lib/x86_64-linux-gnu/libvtkRenderingVolumeOpenGL2-pv5.7.so.1)
paraview: /home/nima/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/bin/../lib/x86_64-linux-gnu/libvtkIOPDAL-pv5.7.so.1)
paraview: /home/nima/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/bin/../lib/x86_64-linux-gnu/libvtkIOMotionFX-pv5.7.so.1)
paraview: /home/nima/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/bin/../lib/x86_64-linux-gnu/libvtkIOImport-pv5.7.so.1)
paraview: /home/nima/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/bin/../lib/x86_64-linux-gnu/libvtkIOGeometry-pv5.7.so.1)
paraview: /home/nima/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/bin/../lib/x86_64-linux-gnu/libvtkFiltersParallelDIY2-pv5.7.so.1)
paraview: /home/nima/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/bin/../lib/x86_64-linux-gnu/libvtkAcceleratorsVTKm-pv5.7.so.1)paraview: /home/nima/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/bin/../lib/x86_64-linux-gnu/libvisitcommon-pv5.7.so.1)
paraview: /home/nima/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/bin/../lib/x86_64-linux-gnu/libvtkxdmf3-pv5.7.so.1)
paraview: /home/nima/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/bin/../lib/x86_64-linux-gnu/libvtkxdmfcore-pv5.7.so.1)
paraview: /home/nima/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /lib/libpdal_base.so.9)
paraview: /home/nima/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /lib/libgdal.so.26)
paraview: /home/nima/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.25' not found (required by /lib/x86_64-linux-gnu/libopenmpt.so.0)
paraview: /home/nima/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /lib/x86_64-linux-gnu/libCharLS.so.2)
paraview: /home/nima/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /lib/x86_64-linux-gnu/libproj.so.15)
paraview: /home/nima/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /lib/x86_64-linux-gnu/libdap.so.25)
paraview: /home/nima/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /lib/x86_64-linux-gnu/libgeos-3.8.0.so)
then I coded
paraview
but i got the same.
How can I solve it?

Even with WSL, it makes much more sense to use a native (windows) paraview instead. This should give you the best performance and the least number of headaches. Please don't be mislead by the idea that using paraFoam is necessary or even mandatory. It is simply a wrapper around paraview that helps set some environment variables etc.
However, at this point it makes more sense to defer to the two FAQs on the topic: Do I really need the paraview plugins? and paraview discourse FAQ.
With the upcoming paraview-5.10 release, there has been even more work on the native OpenFOAM reader in paraview/VTK which further reduces any reason not to use the standard issue version from KitWare.
merge-request 7273
merge-requests 7531
merge-request 7602
merge-requests 8030

Related

Cannot install zlib system headers for python packages

When installing python packages with poetry on Catalina OS I get this error for Pillow 6.2.1
The headers or library files could not be found for zlib,
a required dependency when compiling Pillow from source.
Even after I installed zlib with homebrew and added the relevant lines for the zshrc profile
export LDFLAGS="-L/usr/local/opt/zlib/lib"
export CPPFLAGS="-I/usr/local/opt/zlib/include"
I use python 3.8.0 which matches with the Pillow version I am trying to install.
I don't know what else to do.

paraview: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory

I installed OpenFOAM on Ubuntu (which is itself on WSL Windows Subsystem for Linux).
I have a problem when trying to launch paraFoam and I have this error :
Invalid $PV_PLUGIN_PATH and -plugin-path= not defined
No supplementary ParaView/OpenFOAM reader modules
Using builtin reader: paraFoam -vtk
paraview: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
It seems that it comes from paraview or Qt but I don't know what to do.
The file libQt5Core.so.5 does exist in the computer
When I type qmake --version I have
QMake version 3.1
Using Qt version 5.12.8 in /usr/lib/x86_64-linux-gnu
Since you are using WSL1, this issue is common. you can solve it by running the following command:
sudo strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
To solve the issue related to the GLIBCXX, try:
sudo cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /opt/OpenFOAM/ThirdParty-v2006/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6

install mongodb: /lib/x86_64-linux-gnu/libssl.so.10: version `libssl.so.10' not found

When i was trying to install the latest mongodb-3.4.1 with tar fils, i encountered the following error:
libssl.so.10: cannot open shared object file: No such file or directory
then I searched from the net and tried this solution: https://askubuntu.com/questions/339364/libssl-so-10-cannot-open-shared-object-file-no-such-file-or-directory, created the soft link for the file libssl.so.1.0.0 and libcrypto.so.1.0.0, but another error occurred like this:
$ bin/mongod --config=mongo.cfg
bin/mongod: /lib/x86_64-linux-gnu/libcrypto.so.10: version `libcrypto.so.10' not found (required by bin/mongod)
bin/mongod: /lib/x86_64-linux-gnu/libssl.so.10: version `libssl.so.10' not found (required by bin/mongod)
The error was still there even though i reinstalled the libssl1.0.0 by apt-get install

Yum broken while updating libcurl

On my Centos 6 server I updated curl using city-fan.repo but after installing I have issue with yum... I found ( after searching hours) that it was due to libssh2 older version so I removed it and downloaded again to recompile it, But to compile it GCC is not installed, When I try to ./configure libssh2-1.6.1-20150617 I have this error:
configure: error: no acceptable C compiler found in $PATH
, So I downloaded these packages from Centos repo as I am unable to use yum to install gcc:
cloog-ppl-0.15.7-1.2.el6.x86_64.rpm glibc-common-2.12-1.149.el6.x86_64.rpm kernel-headers-2.6.32-504.el6.x86_64.rpm
compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm gcc-4.4.7-11.el6.x86_64.rpm glibc-devel-2.12-1.149.el6.x86_64.rpm mpfr-2.4.1-6.el6.x86_64.rpm
cpp-4.4.7-11.el6.x86_64.rpm glibc-2.12-1.149.el6.x86_64.rpm glibc-headers-2.12-1.149.el6.x86_64.rpm ppl-0.10.2-11.el6.x86_64.rpm
When I try to install those I get this:
rpm -ivh *.rpm
Preparing... ########################################### [100%]
package glibc-common-2.12-1.149.el6_6.5.x86_64 (which is newer than glibc-common-2.12-1.149.el6.x86_64) is already installed
package glibc-2.12-1.149.el6_6.5.x86_64 (which is newer than glibc-2.12-1.149.el6.x86_64) is already installed
file /usr/sbin/build-locale-archive from install of glibc-common-2.12-1.149.el6.x86_64 conflicts with file from package glibc-common-2.12-1.149.el6_6.5.x86_64
file /usr/sbin/tzdata-update from install of glibc-common-2.12-1.149.el6.x86_64 conflicts with file from package glibc-common-2.12-1.149.el6_6.5.x86_64
file /lib64/ld-2.12.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
file /lib64/libc-2.12.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
file /lib64/libresolv-2.12.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
file /sbin/ldconfig from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
file /sbin/sln from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
file /usr/lib64/gconv/IBM1364.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
file /usr/lib64/gconv/IBM1371.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
file /usr/lib64/gconv/IBM1388.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
file /usr/lib64/gconv/IBM1390.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
file /usr/lib64/gconv/IBM1399.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
file /usr/lib64/gconv/IBM933.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
file /usr/lib64/gconv/IBM935.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
file /usr/lib64/gconv/IBM937.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
file /usr/lib64/gconv/IBM939.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
file /usr/sbin/glibc_post_upgrade.x86_64 from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
file /usr/sbin/iconvconfig from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
file /usr/sbin/iconvconfig.x86_64 from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
and if I run any yum command it is displaying me this error:
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
libssh2.so.1: cannot open shared object file: No such file or directory
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.6.6 (r266:84292, Jan 22 2014, 09:42:36)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
I am very novice to this...Any help? Thanks
You have majorly hosed your system.
You downloaded rpm packages that are older than the ones you already have installed (that's what that error message is telling you).
Get the rpm packages for the libssh2 and curl packages you removed and fix yum.
Then find a better way to do whatever you were trying to do in the first place. Anything that requires you to upgrade a core component of the operating system (like libcurl) in a way that the official packages can't handle is broken by design.
have you tried doing the following:
yum provides libssh2.so.1
then installing one of the providing packages
e.g. yum install libssh2 ?

How do I install an updated scipy on the dotCloud platform?

Adding "scipy" to my requirements.txt file results in a number of errors. What else do I need to do? I see things like:
Running setup.py egg_info for package scipy
10:19:24 [www] /home/dotcloud/env/build/scipy/scipy/__init__.py:97: UserWarning: Numpy 1.5.0 or above is recommended for this version of scipy (detected version 1.3.0)
10:19:24 [www] UserWarning)
10:19:24 [www] Running from scipy source directory.
10:19:24 [www] blas_opt_info:
10:19:24 [www] blas_mkl_info:
10:19:24 [www] libraries mkl,vml,guide not found in /home/dotcloud/env/lib
10:19:24 [www] libraries mkl,vml,guide not found in /usr/local/lib
10:19:24 [www] libraries mkl,vml,guide not found in /usr/lib64
10:19:24 [www] libraries mkl,vml,guide not found in /usr/lib
10:19:24 [www] NOT AVAILABLE
etc.
(this question and answer are being migrated from answers.dotcloud.com)
The problem is that the version of numpy installed on the dotCloud Python service is too old, so you need to add the following to your requirements.txt file before scipy to upgrade to a newer version.
numpy==1.6.1
scipy also requires some system packages that aren't installed by default libatlas-base-dev and gfortran in order to build it correctly. You can add these in a systempackages section of your dotcloud.yml file, like this:
systempackages:
- libatlas-base-dev
- gfortran
Once you scipy to your requirements.txt and the systempackages to `dotcloud.yml, repush. This should fix your issue, and scipy will be installed.
It is also important to note that it will take a little while to build all of those items so the first push might take a few minutes, so don't be surprised if it is taking longer then usual.
(original answer from Ken Cochrane)