Project

Profile

Help

Bug #3699

Unable to load /usr/lib/libsaxonhec64.so on centos7 httpd

Added by O'Neil Delpratt over 2 years ago. Updated over 2 years ago.

Status:
In Progress
Priority:
Normal
Category:
Linux
Start date:
2018-02-23
Due date:
% Done:

0%

Estimated time:
Found in version:
1.1
Fixed in version:

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

Related to Saxon/C - Bug #2907: php saxon.so is looking for libsaxonhec.so without so extension in both /usr/lib64 and /usr/lib and failingClosed2016-08-26

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

History

#1 Updated by O'Neil Delpratt over 2 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...

#2 Updated by O'Neil Delpratt over 2 years ago

  • Status changed from New to In Progress

#3 Updated by O'Neil Delpratt over 2 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

#4 Updated by O'Neil Delpratt over 2 years ago

I suspect that this is a environment path problem. In phpinfo I cannot find the LD_LIBRARY_PATH variable.

#5 Updated by O'Neil Delpratt over 2 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.

Please register to edit this issue

Also available in: Atom PDF