You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Gintautas Miselis <na...@gmail.com> on 2015/12/26 21:02:42 UTC

Failed to compile PHP bindings

Hi,

I have tried to compile PHP bindings, but no matter what I did they weren't
compiled.

I used this Dockerfile:

FROM centos:6.7
RUN yum install -y php-cli php-common php-devel gcc cmake libuuid-devel
openssl-devel tar wget && yum clean all
RUN wget
http://archive.apache.org/dist/qpid/proton/0.11.0/qpid-proton-0.11.0.tar.gz
RUN mkdir -p qpid-proton/build && tar xzf qpid-proton-0.11.0.tar.gz -C
/qpid-proton --strip-components=1
WORKDIR qpid-proton/build
RUN cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DSYSINSTALL_BINDINGS=ON
-DSYSINSTALL_PHP=ON -DBUILD_JAVA=OFF && make all && make install
CMD ["/bin/bash"]


php-config returns that --extension-dir is /usr/lib64/php/modules  , so I
expected to see proton.so file there.

To get more information, I deleted content of the build directory and saved
all output to files:
rm -rf *
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DSYSINSTALL_BINDINGS=ON
-DSYSINSTALL_PHP=ON -DBUILD_JAVA=OFF > cmake_output
make all > make_all_output
make install > make_install_output


What have I missed?

Thanks,

Gintautas Miselis

Re: Failed to compile PHP bindings

Posted by Gordon Sim <gs...@redhat.com>.
On 12/26/2015 08:02 PM, Gintautas Miselis wrote:
> Hi,
>
> I have tried to compile PHP bindings, but no matter what I did they
> weren't compiled.
>
> I used this Dockerfile:
>
> FROM centos:6.7
> RUN yum install -y php-cli php-common php-devel gcc cmake libuuid-devel
> openssl-devel tar wget && yum clean all

Do you have swig installed by default? That is required for all the swig 
based bindings.

> RUN wget
> http://archive.apache.org/dist/qpid/proton/0.11.0/qpid-proton-0.11.0.tar.gz
> RUN mkdir -p qpid-proton/build && tar xzf qpid-proton-0.11.0.tar.gz -C
> /qpid-proton --strip-components=1
> WORKDIR qpid-proton/build
> RUN cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DSYSINSTALL_BINDINGS=ON
> -DSYSINSTALL_PHP=ON -DBUILD_JAVA=OFF && make all && make install
> CMD ["/bin/bash"]
>
>
> php-config returns that --extension-dir is /usr/lib64/php/modules  , so
> I expected to see proton.so file there.
>
> To get more information, I deleted content of the build directory and
> saved all output to files:
> rm -rf *
> cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DSYSINSTALL_BINDINGS=ON
> -DSYSINSTALL_PHP=ON -DBUILD_JAVA=OFF > cmake_output
> make all > make_all_output
> make install > make_install_output
>
>
> What have I missed?
>
> Thanks,
>
> Gintautas Miselis
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org