can't install php agent in Alpine Linux 3.18 #13300
-
Install php agent according to https://skywalking.apache.org/docs/skywalking-php/next/en/setup/service-agent/php-agent/readme/ , I tried pecl and source code to install , they all make the same error. But Install in the same way as in alpine 3.18 and PHP 8.2.7, it failed.
Caused by: --- stderr error occurred in cc-rs: command did not execute successfully (status code exit status: 1): LC_ALL="C" "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-Wall" "-Wextra" "-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" "-o" "/tmp/skywalking-php/target/release/build/phper-sys-c1165c69716035fa/out/db3b6bfb95261072-php_wrapper.o" "-c" "php_wrapper.c" warning: build failed, waiting for other jobs to finish... |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
The error messages you provided are useless, and I had no problem compiling it inside a Check if you might have missed any dependencies or settings, like the one mentioned in the documentation: |
Beta Was this translation helpful? Give feedback.
-
I had set RUSTFLAGS, alpine version is 3.18 not 3.21 |
Beta Was this translation helpful? Give feedback.
-
Thanks, I tried to use php:8.2-alpine3.18 works just as well, but tried to use php:8.2.7-alpine3.18 got the same error |
Beta Was this translation helpful? Give feedback.
Thanks, I tried to use php:8.2-alpine3.18 works just as well, but tried to use php:8.2.7-alpine3.18 got the same error