PHP7 阿尔卑斯山未加载库.我怀疑版本不正确



我正在尝试让 laravel dusk 在 bitbucket 管道中运行。我找到了关于这样做的讨论,但这些步骤对我不起作用。

https://community.atlassian.com/t5/Bitbucket-questions/Running-Laravel-Dusk-in-BitBucket-Pipelines/qaq-p/621910

我只是想达到在我的项目中安装作曲家的地步。

我可以获取码头工人映像:

docker run --privileged -ti angelomaragna/networld-dusk /bin/sh

然后我更新存储库

/var/www # apk update
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
WARNING: This apk-tools is OLD! Some packages might not function properly.
v3.7.0-5225-gf676af6ec9 [http://dl-cdn.alpinelinux.org/alpine/edge/main]
v3.7.0-5224-g88cb5720c4 [http://dl-cdn.alpinelinux.org/alpine/edge/community]
OK: 9623 distinct packages available

并添加一些作曲家抱怨他们缺少的额外依赖项

/var/www # apk add php7-xmlwriter php7-pdo_mysql php7-session php7-ctype
WARNING: This apk-tools is OLD! Some packages might not function properly.
(1/6) Installing php7-ctype (7.2.5-r0)
(2/6) Installing php7-pdo (7.2.5-r0)
(3/6) Installing php7-mysqlnd (7.2.5-r0)
(4/6) Installing php7-pdo_mysql (7.2.5-r0)
(5/6) Installing php7-session (7.2.5-r0)
(6/6) Installing php7-xmlwriter (7.2.5-r0)
OK: 314 MiB in 151 packages
/var/www #
/var/www # (5/6) Installing php7-session (7.2.5-r0)
/bin/sh: syntax error: unexpected word
/var/www #
/var/www # (5/6) Installing php7-session (7.2.5-r0)
/bin/sh: syntax error: unexpected word

安装作曲家:这是出错的地方。我怀疑我需要低于 7.2 的库版本,但我不知道如何获得它们

/var/www # curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
PHP Warning:  PHP Startup: ctype: Unable to initialize module
Module compiled with module API=20170718
PHP    compiled with module API=20160303
These options need to match
in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php7/modules/pdo.so' - Error relocating /usr/lib/php7/modules/pdo.so: zend_strpprintf: symbol not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php7/modules/session.so' - Error relocating /usr/lib/php7/modules/session.so: zend_empty_string: symbol not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php7/modules/xmlwriter.so' - Error relocating /usr/lib/php7/modules/xmlwriter.so: zend_empty_string: symbol not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php7/modules/mysqlnd.so' - Error relocating /usr/lib/php7/modules/mysqlnd.so: zend_vspprintf: symbol not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php7/modules/pdo_mysql.so' - Error relocating /usr/lib/php7/modules/pdo_mysql.so: mysqlnd_allocator: symbol not found in Unknown on line 0
All settings correct for using Composer
Downloading...

如何找到以前的版本以及哪个版本对应于模块 API 20160303

找到了答案。我需要将存储库从边缘更改为 v3.7,然后运行apk update

/etc/apk/repository:

http://dl-cdn.alpinelinux.org/alpine/v3.7/main
http://dl-cdn.alpinelinux.org/alpine/v3.7/community

相关内容

  • 没有找到相关文章

最新更新