Unable to install ddtrace on Debian Bookworm
Closed this issue · 0 comments
TomKeur commented
Version of install-php-extensions
latest
Error description
When running php:8.2.11-fpm-bookworm
we're seeing issues with ddtrace
.
error: package `regex v1.10.0` cannot be built because it requires rustc 1.65 or newer, while the currently active rustc version is 1.63.0
Either upgrade to rustc 1.65 or newer, or use
cargo update -p regex@1.10.0 --precise ver
where `ver` is the latest version of `regex` supporting rustc 1.63.0
strip: '/tmp/pear/temp/pear-build-defaultusernTOPAo/datadog_trace-0.89.0/target/debug/libddtrace_php.a': No such file
make: *** [Makefile:211: /tmp/pear/temp/pear-build-defaultusernTOPAo/datadog_trace-0.89.0/target/debug/libddtrace_php.a] Error 1
ERROR: `make -j10' failed
------
failed to solve: process "/bin/sh -c set -xe && install-php-extensions ddtrace did not complete successfully: exit code: 1
Is there anything we can do to fix this? Seems like this all started when the ddtrace
extension needed cargo
.
Docker image
php:8.2.11-fpm-bookworm
Minimal Dockerfile
FROM php:8.2.11-fpm-bookworm AS base
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN set -xe \
&& install-php-extensions ddtrace