Alpine系统php安装apcu-5.1.18版本
1、下载地址 wget https://pecl.php.net/get/apcu-5.1.18.tgz
2、解压 tar zxvf apcu-5.1.18.tgz
3、cd apcu-5.1.18
4、生成configure文件,执行
/usr/local/bin/phpize
5、配置编译参数
./configure --with-php-config=/usr/local/bin/php-config
报错解决方法
/usr/lib/php7/modules # [13-Jul-2020 14:32:21] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library 'apcu.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20180731/apcu.so (Error relocating /usr/local/lib/php/extensions/no-debug-non-zts-20180731/apcu.so: pcre2_match_data_create_from_pattern_8: symbol not found), /usr/local/lib/php/extensions/no-debug-non-zts-20180731/apcu.so.so (Error relocating /usr/local/lib/php/extensions/no-debug-non-zts-20180731/apcu.so.so: pcre2_match_data_create_from_pattern_8: symbol not found)) in Unknown on line 0
Alpine系统C compiler cannot create executables问题解决方法
(https://aq2.cn/211.html)
6、编译并安装
make && make install
apcu-5.1.18版本下载地址