Bug #3117
closedUnable 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