You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
alpine的php83编译安装swoole-v6版本出现make: *** No rule to make target '/home/bingcool/swoole-src-6.0.0/thirdparty/php830/pdo_pgsql/pgsql_driver.c', needed by 'thirdparty/php830/pdo_pgsql/pgsql_driver.lo'. Stop
#5629
Open
bingcool opened this issue
Dec 19, 2024
· 3 comments
Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.enable_library => On => On
swoole.enable_fiber_mock => Off => Off
swoole.enable_preemptive_scheduler => Off => Off
swoole.display_errors => On => On
swoole.use_shortname => On => On
swoole.unixsock_buffer_size => 8388608 => 8388608
What is your machine environment used (show your uname -a & php -v & gcc -v) ?
/home/bingcool/swoole-src-6.0.0/thirdparty/php83/pdo_pgsql # uname -a
Linux 37d10e6fa2a4 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 Linux
/home/bingcool/swoole-src-6.0.0/thirdparty/php83/pdo_pgsql # php -v
PHP 8.3.14 (cli) (built: Nov 21 2024 08:27:36) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.14, Copyright (c) Zend Technologies
with Zend OPcache v8.3.14, Copyright (c), by Zend Technologies
Please answer these questions before submitting your issue.
#依赖扩展阶段:构建扩展阶段
FROM alpine:3.20.3 as ext-build
#根据实际构建来设置环境变量
ENV SWOOLE_VERSION=6.0.0
PHP_VERSION=83
ENV TZ=Asia/Shanghai
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
&& /bin/sh -c set -ex
&& apk update
&& apk add --no-cache --virtual .build-deps
# build-base包含基础工具和库gcc、g++、make等集合,构建阶段需要依赖编译swoole
build-base
curl make wget tar xz
curl-dev
c-ares-dev
librdkafka-dev
openssl-dev
postgresql-dev
sqlite-dev
libpq-dev
php${PHP_VERSION}-dev
php${PHP_VERSION}
php${PHP_VERSION}-openssl
php${PHP_VERSION}-sockets
php${PHP_VERSION}-pdo
php${PHP_VERSION}-pdo_pgsql
php${PHP_VERSION}-pgsql
php${PHP_VERSION}-mysqlnd
&& wget https://github.com/swoole/swoole-src/archive/refs/tags/v${SWOOLE_VERSION}.tar.gz -O - -q | tar -xz
&& cd swoole-src-${SWOOLE_VERSION} && phpize${PHP_VERSION} && ./configure --with-php-config=/usr/bin/php-config${PHP_VERSION}
--enable-mysqlnd
--enable-openssl
--enable-sockets
--enable-swoole_curl
--enable-swoole-pgsql
--enable-swoole-sqlite
&& make && make install
&& apk del --purge -dev
&& apk del .build-deps
&& rm -rf /var/cache/apk/ /tmp/* /usr/share/man /usr/share/doc /usr/share/php${PHP_VERSION}
编译安装成功
What did you see instead?
What version of Swoole are you using (show your
php --ri swoole
)?/home/bingcool/swoole-src-6.0.0/thirdparty/php83/pdo_pgsql # php --ri swoole
swoole
Swoole => enabled
Author => Swoole Team [email protected]
Version => 5.1.6
Built => Dec 18 2024 02:07:46
coroutine => enabled with boost asm context
epoll => enabled
eventfd => enabled
signalfd => enabled
spinlock => enabled
rwlock => enabled
sockets => enabled
openssl => OpenSSL 3.3.2 3 Sep 2024
dtls => enabled
http2 => enabled
json => enabled
curl-native => enabled
zlib => 1.3.1
brotli => E16781312/D16781312
mutex_timedlock => enabled
pthread_barrier => enabled
mysqlnd => enabled
async_redis => enabled
coroutine_pgsql => enabled
coroutine_sqlite => enabled
Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.enable_library => On => On
swoole.enable_fiber_mock => Off => Off
swoole.enable_preemptive_scheduler => Off => Off
swoole.display_errors => On => On
swoole.use_shortname => On => On
swoole.unixsock_buffer_size => 8388608 => 8388608
uname -a
&php -v
&gcc -v
) ?/home/bingcool/swoole-src-6.0.0/thirdparty/php83/pdo_pgsql # uname -a
Linux 37d10e6fa2a4 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 Linux
/home/bingcool/swoole-src-6.0.0/thirdparty/php83/pdo_pgsql # php -v
PHP 8.3.14 (cli) (built: Nov 21 2024 08:27:36) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.14, Copyright (c) Zend Technologies
with Zend OPcache v8.3.14, Copyright (c), by Zend Technologies
/home/bingcool/swoole-src-6.0.0/thirdparty/php83/pdo_pgsql # gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-alpine-linux-musl/13.2.1/lto-wrapper
Target: x86_64-alpine-linux-musl
Configured with: /home/buildozer/aports/main/gcc/src/gcc-13-20240309/configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --build=x86_64-alpine-linux-musl --host=x86_64-alpine-linux-musl --target=x86_64-alpine-linux-musl --enable-checking=release --disable-cet --disable-fixed-point --disable-libstdcxx-pch --disable-multilib --disable-nls --disable-werror --disable-symvers --enable-__cxa_atexit --enable-default-pie --enable-default-ssp --enable-languages=c,c++,d,objc,go,fortran,ada --enable-link-serialization=2 --enable-linker-build-id --disable-libssp --disable-libsanitizer --enable-shared --enable-threads --enable-tls --with-bugurl=https://gitlab.alpinelinux.org/alpine/aports/-/issues --with-system-zlib --with-linker-hash-style=gnu --with-pkgversion='Alpine 13.2.1_git20240309'
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 13.2.1 20240309 (Alpine 13.2.1_git20240309)
The text was updated successfully, but these errors were encountered: