Bug #3699
closedUnable to load /usr/lib/libsaxonhec64.so on centos7 httpd
0%
Description
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."
Related issues
Updated by O'Neil Delpratt almost 7 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.
Still investigating...
Updated by O'Neil Delpratt almost 7 years ago
- Status changed from New to In Progress
Updated by O'Neil Delpratt almost 7 years ago
- 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
Updated by O'Neil Delpratt almost 7 years ago
I suspect that this is a environment path problem. In phpinfo I cannot find the LD_LIBRARY_PATH variable.
Updated by O'Neil Delpratt almost 7 years ago
Found this on changes in centos7 to do with setting environment variables under apache:
https://bugs.centos.org/view.php?id=8321
Still getting same error Unable to load /usr/lib/libsaxonhec64.so, but at least the LD_LIBRARY_PATH is correctly being picked up now.
Updated by O'Neil Delpratt over 1 year ago
- Description updated (diff)
- Status changed from In Progress to Closed
Closing this old bug issue as we have moved forward to use GraalVM as an alternative to Excelsior Jet.
Please register to edit this issue