FROM php:7-jessie
RUN apt-get update && apt-get install -y \
apt-get install librabbitmq-dev \
pecl install amqp
CMD ["bash"]
Can't find librabbitmq due to php-config's --prefix=/usr/local. It works when --prefix=/usr
@tugrul
you have to install the libssh-dev package.
FROM php:7-jessie
RUN apt-get update \
&& apt-get install -y \
librabbitmq-dev \
libssh-dev \
&& pecl install amqp \
&& docker-php-ext-enable amqp
And you should install the packages bcmath and sockets too.
FROM php:7-jessie
RUN apt-get update \
&& apt-get install -y \
librabbitmq-dev \
libssh-dev \
&& docker-php-ext-install \
bcmath \
sockets \
&& pecl install amqp \
&& docker-php-ext-enable amqp
@pschirch thank you for the information.
@pschirch thank you! It was extremely not obvious :(
Most helpful comment
@tugrul
you have to install the
libssh-devpackage.And you should install the packages
bcmathandsocketstoo.