I am trying to run a singularity container on a CentOS7 host, which contains an application with Qt5 dependencies.
I am experiencing a error where libQt5Core.so.5 can not be used because of an incompatibility with the linux kernel version of CentOS7:
uname -r
3.10.0-1160.76.1.el7.x86_64
The error given is: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory.
Searching online, various posts (e.g.) conclude the solution is to execute the following command in order to impose compatability with older kernels:
strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
However executing the command returns the error:
strip: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: could not create temporary file to hold stripped copy: cause of error unknown
I have confirmed:
- the container works on systems with a newer kernel
- I am running the container with the
--writableflag, and assudo - I have the correct path:
whereis libQt5Core.so.5libQt5Core.so.5: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
I am at a dead end as to why the strip command is not working, and would deeply appreciate any suggestions!