I am trying to import a package called pyarrow. And meet a problem:
import pyarrow.lib as _lib
ImportError: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found(required by /usr/workspace/lei5/myenv/pytorch/lib/python3.8/site-packages/pyarrow/lib.cpython-38-powerpc64le-linux-gnu.so)
I thought this should because of the env variant. Then I use
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/workspace/lei5/myenv/pytorch/lib
to import the correct env variant. I checked the libstdc++.so.6 file within this /usr/workspace/lei5/myenv/pytorch/lib path by using:
strings /usr/workspace/lei5/myenv/pytorch/lib/libstdc++.so.6 | grep CXXABI
It does contains libstdc++.so.6: version `CXXABI_1.3.9. And in order to make sure the env variant correctly set, I use
echo $LD_LIBRARY_PATH
It only contains /usr/workspace/lei5/myenv/pytorch/lib. I then run my bash file again and the error is the same..... I also checked the RUNPATH and RPATH by using:
readelf -d /usr/workspace/lei5/myenv/pytorch/lib/python3.8/site-packages/pyarrow/lib.cpython-38-powerpc64le-linux-gnu.so | grep RUNPATH
readelf -d /usr/workspace/lei5/myenv/pytorch/lib/python3.8/site-packages/pyarrow/lib.cpython-38-powerpc64le-linux-gnu.so | grep RPATH
There is no output for the RUNPATH and the output for the RPATH is
[$ORIGIN/../../..:$ORIGIN:/usr/workspace/lei5/myenv/pytorch/lib/python3.8/site-packages/pyarrow]
And I can not update /lib64/libstdc++.so.6 because I don't have sudo access...
In this HPC machine, the newest gcc version is 8.3.1, it does not include 9.2.0
Is there any suggestions? Thanks for all the help!