dockerfile 安装swoole拓展报错

PHP Warning:  PHP Startup: Unable to load dynamic library 'swoole.so' (tried: /usr/lib64/php/modules/swoole.so (libnghttp2.so.14: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/swoole.so.so (/usr/lib64/php/modules/swoole.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

dockerfile 文件部分内容

RUN cd /www && git clone https://github.com/swoole/swoole-src.git \
&& cd /www/swoole-src \
&& phpize && ./configure --with-php-config=/usr/bin/php-config \
--enable-debug-log \
--enable-trace-log \
--enable-sockets \
--enable-openssl \
--enable-http2 \
--enable-mysqlnd \
--enable-debug \
&& make clean \
&& make \
&& make install \
&& echo "extension=swoole.so">>/etc/php.d/swoole.ini
RUN php -v
RUN php -m

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐