Woongba
(Sibaek Yi)
March 27, 2024, 8:51am
1
I installed the paraview v5.12.0 on centos stream 8. When I tried to run paraview, I encountered an error below.
“./bin/paraview: error while loading shared libraries: libtbb.so.12: cannot open shared object file: No such file or directory.”
Actually, I tried to link libtbb.so.12 to libtbb.so.2. It worked but another error occurred like
“./bin/paraview: symbol lookup error: /root/paraview_build/bin/…/lib64/libvtkParallelMPI4Py-pv5.12.so.1: undefined symbol: PyExc_ImportError”
So, I just unlinked it because I don’t know what I did is right and the second error also include the “12.so” similar to the first error. Does any one who has a clue about the problem?
Thanks in advance.
mwestphal
(Mathieu Westphal (Kitware))
March 27, 2024, 8:51am
2
Do you have LD_LIBRARY_PATH
set in your env vars ?
Woongba
(Sibaek Yi)
March 27, 2024, 9:00am
3
Thank you for reply. I don’t understand your question properly. Should I add something to LD_LIBRARY_PATH to run paraview?
mwestphal
(Mathieu Westphal (Kitware))
March 27, 2024, 9:03am
4
The symptom you are having shows that the wrong lib are being picked up, so you may want to ensure “LD_LIBRARY_PATH” is NOT set.
I installed the paraview v5.12.0 on centos stream 8.
How did you install it ?
Woongba
(Sibaek Yi)
March 27, 2024, 9:17am
5
Mostly, I just followed the link “https://gitlab.kitware.com/paraview/paraview/blob/master/Documentation/dev/build.md ” for centos 7.
First, I installed packages like
sudo dnf install python3-devel openmpi-devel mesa-libGL-devel libX11-devel libXt-devel qt5-qtbase-devel qt5-qtx11extras-devel qt5-qttools-devel qt5-qtxmlpatterns-devel tbb-devel git
After that I just followed the link like
git clone https://gitlab.kitware.com/paraview/paraview.git
mkdir paraview_build
cd paraview
git checkout v5.12.0
git submodule update --init --recursive
cd …/paraview_build
cmake -GNinja -DPARAVIEW_USE_PYTHON=ON -DPARAVIEW_USE_MPI=ON -DVTK_SMP_IMPLEMENTATION_TYPE=TBB -DCMAKE_BUILD_TYPE=Release …/paraview
finally I didn’t use ninja but make like
make -j 16
The above is all what I did. After make, I just tried to run paraview but it failed.
mwestphal
(Mathieu Westphal (Kitware))
March 27, 2024, 9:37am
6
Any specific reason for you to build ParaView instead of using the paraview binary release from https://paraview.org/download ?
Woongba
(Sibaek Yi)
March 28, 2024, 1:29am
7
There was no specific reason. I just thought that they are just different ways to install it.
What is the difference between them?
Woongba
(Sibaek Yi)
March 28, 2024, 1:37am
8
I downloaded binary you said before building it. I just tar it and I can run it without any problem. Thank you very much for your help Mathieu.