Project

Profile

Help

Bug #3117

closed

Unable to load libsaxoneec. with missing .so extension

Added by Muhammad Rahman almost 8 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
High
Category:
PHP API
Start date:
2017-01-26
Due date:
% Done:

100%

Estimated time:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
Fixed in version:
1.1.0
SaxonC Languages:
SaxonC Platforms:
SaxonC Architecture:

Description

Hi,

I am following to install the php saxon in the following manner. I am going to paste the dockerfile to reproduce the bug easily. But unfortunately when I try to test the php code, its keeps on telling me,

"Unable to load /usr/lib64/libsaxoneec.

Error: : Inappropriate ioctl for device

"

Here is my dockerfile. We are going to buy the license but we need to make sure it works for our purpose. Therefore I put the priority to high.


FROM php:5.5-apache

  1. ca-certificates is required to download from github

RUN apt-get -yq update \

&& apt-get install --assume-yes --no-install-recommends \

    tar zip unzip vim ssh git rsync libssl-dev ftp wget \

    php5-dev g++ apache2 gcj-jdk

RUN apt-get install -y libbz2-dev \

&& docker-php-ext-install bz2

WORKDIR /saxonica/

RUN cd /saxonica

RUN wget "http://www.saxonica.com/saxon-c/libsaxon-EEC-setup64-v1.0.2.zip" && unzip libsaxon-EEC-setup64-v1.0.2.zip

RUN yes "" | ./libsaxon-EEC-setup64-v1.0.2

RUN ln -s /usr/lib/ /usr/lib64

RUN ln -s /saxonica/Saxonica/Saxon-EEC1.0.2/libsaxoneec.so /usr/lib/libsaxoneec.so

RUN ln -s /saxonica/Saxonica/Saxon-EEC1.0.2/rt/ /usr/lib/rt

RUN ln -s /saxonica/Saxonica/Saxon-EEC1.0.2/saxon-data/ /usr/lib/saxon-data

RUN export LD_LIBRARY_PATH=/usr/lib/rt/lib/amd64:$LD_LIBRARY_PATH

COPY docker/copy/jetvm.conf /etc/ld.so.conf.d/jetvm.conf

RUN ldconfig

RUN cd Saxonica/Saxon-EEC1.0.2/Saxon.C.API/ && phpize && ./configure --enable-saxon && make && make install

RUN echo extension=saxon.so >> /usr/local/etc/php/conf.d/saxon.ini

RUN php5enmod saxon

RUN echo export LD_LIBRARY_PATH=/usr/lib/rt/lib/amd64:$LD_LIBRARY_PATH >> /etc/apache2/envvars

CMD ["apachectl", "-DFOREGROUND"]

RUN php -m


Thank you very much for your time.


Related issues

Related to SaxonC - Bug #2691: longer custom path to ClosedO'Neil Delpratt2016-03-31

Actions

Please register to edit this issue

Also available in: Atom PDF