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."
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.
- Status changed from New to In Progress
- Related to Bug #2907: php saxon.so is looking for libsaxonhec.so without so extension in both /usr/lib64 and /usr/lib and failing added
I suspect that this is a environment path problem. In phpinfo I cannot find the LD_LIBRARY_PATH variable.
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
Also available in: Atom