服务PHP无法构建Docker

时间:2020-03-25 15:45:45

标签: docker docker-compose dockerfile

我尝试构建docker,但出现此错误

configure: error: Package requirements (oniguruma) were not met:

No package 'oniguruma' found

Consider adjusting the `PKG_CONFIG_PATH` environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables ONIG_CFLAGS
and ONIG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
ERROR: Service 'php' failed to build: The command '/bin/sh -c docker-php-ext-install pdo pdo_mysql mysqli mbstring zip gd intl' returned a non-zero code: 1

1 个答案:

答案 0 :(得分:0)

尝试将libonig-dev添加到系统依赖项,即apt-get install libonig-dev