Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apm-agent-php for arm64 architecture #564

Closed
nelsonflorez11 opened this issue Oct 14, 2021 · 12 comments
Closed

apm-agent-php for arm64 architecture #564

nelsonflorez11 opened this issue Oct 14, 2021 · 12 comments
Assignees
Milestone

Comments

@nelsonflorez11
Copy link

Hello team

I want to ask if the apm agent for php can be installed on arm64 architectures.

This agent
https://github.com/elastic/apm-agent-php/releases/download/v1.3/apm-agent-php_1.3_all.deb

Do we have to compile something to make it work on arm64?

@marckula
Copy link

marckula commented Dec 13, 2021

I am also curious about this. I've installed https://github.com/elastic/apm-agent-php/releases/download/v1.3.1/apm-agent-php_1.3.1_all.deb on an AWS graviton t4g instance and when the extension attempts to load I see the following logs:

Dec 12 20:10:08 bb-dev php: PHP Warning: PHP Startup: Unable to load dynamic library '/opt/elastic/apm-agent-php/extensions/elastic_apm-20190902.so' (tried: /opt/elastic/apm-agent-php/extensions/elastic_apm-20190902.so (/opt/elastic/apm-agent-php/extensions/elastic_apm-20190902.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902//opt/elastic/apm-agent-php/extensions/elastic_apm-20190902.so.so (/usr/lib/php/20190902//opt/elastic/apm-agent-php/extensions/elastic_apm-20190902.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

extension permissions are set appropriately

@nelsonflorez11
Copy link
Author

Hello, in order to make the apm agent work on arm64 architectures it was necessary to compile it on an ec2 arm64 with the following procedure
https://www.elastic.co/guide/en/apm/agent/php/current/setup.html

subtitle: build to source

@marckula
Copy link

@nelsonflorez11 that's what I ended up doing, got it working thanks!

@firecow
Copy link

firecow commented May 19, 2022

It would be awesome, if ARM64 was included in the deb and apk files 😄 😸

@Nigma1337
Copy link

+1, installing from a deb would be way easier.

@Lansoweb
Copy link

Same issue for rpm package from https://github.com/elastic/apm-agent-php/releases/download/v1.8.4/apm-agent-php-1.8.4-1.noarch.rpm

PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/elastic/apm-agent-php/extensions/elastic_apm-20200930.so' (tried: /opt/elastic/apm-agent-php/extensions/elastic_apm-20200930.so (/opt/elastic/apm-agent-php/extensions/elastic_apm-20200930.so: cannot open shared object file: No such file or directory), /usr/lib64/php/modules//opt/elastic/apm-agent-php/extensions/elastic_apm-20200930.so.so (/usr/lib64/php/modules//opt/elastic/apm-agent-php/extensions/elastic_apm-20200930.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

or trying to use the most recent lib editing the /etc/php.d/98-elastic-apm.ini:

PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/elastic/apm-agent-php/extensions/elastic_apm-20220829.so' (tried: /opt/elastic/apm-agent-php/extensions/elastic_apm-20220829.so (/opt/elastic/apm-agent-php/extensions/elastic_apm-20220829.so: cannot open shared object file: No such file or directory), /usr/lib64/php/modules//opt/elastic/apm-agent-php/extensions/elastic_apm-20220829.so.so (/usr/lib64/php/modules//opt/elastic/apm-agent-php/extensions/elastic_apm-20220829.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

@intuibase
Copy link
Contributor

Hey all
Indeed there are two problems. First is that we're not supporting ARM64 yet, second is that we have the wrong package naming.
We're rebuilding our build right now and we can consider building agent for an ARM64.

We will keep you posted soon
Pawel

@intuibase intuibase added this to the 8.11 milestone Sep 4, 2023
@intuibase intuibase self-assigned this Sep 4, 2023
@intuibase
Copy link
Contributor

Hey all,

You can try building on aarch64 with latest 1.10.0 release.
Please follow https://github.com/intuibase/apm-agent-php/blob/main/DEVELOPMENT.md

@intuibase
Copy link
Contributor

Improved package naming in this issue/PR: #1067

@intuibase intuibase modified the milestones: 8.11, 8.12 Oct 3, 2023
@patrikalienus
Copy link

patrikalienus commented Jun 24, 2024

Given how old this issue is, it's safe to assume that Elastic won't provide ready-made binaries for ARM?
Edit: I see some progress have been made on this, #1131

@intuibase
Copy link
Contributor

@patrikalienus We will provide experimental build for ARM64 soon

@intuibase
Copy link
Contributor

Hey all
We just released APM agent v1.14.0 with experimental support for ARM64. Please try it out and let us know it it works for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

7 participants