According to the arm64 newrelic php page there
is arm64 support for the php agent, if it is running Amazon Linux or CentOS Linux8, but not for Apple or M1.
However, when I pulled the latest tar.gz (v10.4.0.316 as of 2023/01/13) at https://github.com/newrelic/newrelic-php-agent/archive/refs/tags/v10.4.0.316.tar.gz
and tried to compile - it did nearly work.
The first tries of
make agent, will fail with missing
glibtoolize. This can be fixed by
brew install pcre for
brew install automake for
brew install libtool for
Then finally running
make agent ends up in:
util_hash.c:198:5: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
util_hash.c:198:5: note: insert '__attribute__((fallthrough));' to silence this warning
util_hash.c:198:5: note: insert 'break;' to avoid fall-through