Bug #3117
closed![Author: Muhammad Rahman](https://www.gravatar.com/avatar/a9e9a4b49649b5ea9c6f0749d1d7da41?rating=PG&size=50&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
![Assignee: O'Neil Delpratt](https://www.gravatar.com/avatar/a0bc1766b412d8fecb16f7d304916359?rating=PG&size=22&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
Unable to load libsaxoneec. with missing .so extension
100%
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
- 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
Please register to edit this issue