问题描述
自己想在docker中搭建php5.6环境,在尝试安装yaf扩展时候报错
下面是我的Dockerfile文件内容
FROM php:5.6-fpm
COPY src/ /var/www/html/
COPY ext /php_ext #下载好的pecl包
问题出现的环境背景及自己尝试过哪些方法
执行build命令生成镜像之后启动镜像,进入bash下执行
apt-get update -y && apt-get upgrade -y
这一步没有问题,然后执行
pecl install /php_ext/yaf-2.3.5.tgz
到这一步在make的时候就报错了
错误详情
..............
cc -I. -I/tmp/pear/temp/yaf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuserhG7Egy/yaf-2.3.5/include -I/tmp/pear/temp/pear-build-defaultuserhG7Egy/yaf-2.3.5/main -I/tmp/pear/temp/yaf -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/yaf/yaf_config.c -fPIC -DPIC -o .libs/yaf_config.o
/bin/bash /tmp/pear/temp/pear-build-defaultuserhG7Egy/yaf-2.3.5/libtool --mode=compile cc -I. -I/tmp/pear/temp/yaf -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuserhG7Egy/yaf-2.3.5/include -I/tmp/pear/temp/pear-build-defaultuserhG7Egy/yaf-2.3.5/main -I/tmp/pear/temp/yaf -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/yaf/configs/yaf_config_ini.c -o configs/yaf_config_ini.lo
/tmp/pear/temp/pear-build-defaultuserhG7Egy/yaf-2.3.5/libtool: line 1283: configs/yaf_config_ini.loT: No such file or directory
mkdir configs/.libs
mkdir: cannot create directory 'configs/.libs': No such file or directory
Makefile:192: recipe for target 'configs/yaf_config_ini.lo' failed
make: *** [configs/yaf_config_ini.lo] Error 1
ERROR: `make' failed
预期目标
想要将php5.6的yaf扩展安装成功
1 回答
- 1 回答
- 0 关注
- 895 浏览
添加回答
举报
0/150
提交
取消