Unable to load /usr/lib/libsaxonhec64.so on centos7 httpd
Reported by user:
Trying to install Saxon/C 1.1 on PHP 7.2 I get the following error in /var/log/httpd/error_log:
[core:notice] [pid 4996] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
Unable to load /usr/lib/libsaxonhec64.so
Error: : Invalid argument
(Before creating a system link, I got "Error: Resource temporarily unavailable", so PHP tries at least to do something with the file.)
If I try to execute the file I get "Segmentation fault."
#1 Updated by O'Neil Delpratt almost 4 years ago
Update on investigation:
I have been able to reproduce the problem. Initial thoughts were we have seen this problem. Having looked at the troubleshooting section: https://www.saxonica.com/saxon-c/index.xml#troubleshooting
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/saxon.so' - libsaxonhec.so: cannot enable executable stack as shared object requires: Permission denied in Unknown on line 0
But this problem is different. Although I executed the commands mentioned.
Usual setup check is to make sure we have set the environment variable LD_LIBRARY_PATH with the correct details and to make sure this is set in the apache server via editing the file: /etc/sysconfig/httpd (applicable to centos server).
Having done followed the installation guide the problem still persists.
#5 Updated by O'Neil Delpratt almost 4 years ago
Found this on changes in centos7 to do with setting environment variables under apache:
Still getting same error Unable to load /usr/lib/libsaxonhec64.so, but at least the LD_LIBRARY_PATH is correctly being picked up now.
Please register to edit this issue