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

Resulting binary is x86_64 on an M1 mac but should be arm64 #817

Open
mstratman opened this issue Sep 4, 2024 · 0 comments
Open

Resulting binary is x86_64 on an M1 mac but should be arm64 #817

mstratman opened this issue Sep 4, 2024 · 0 comments

Comments

@mstratman
Copy link

mstratman commented Sep 4, 2024

My perl binaries on an M1 mac are x86_64 which is preventing me from building DBD::Pg. I believe I need an arm64 binary.

~ $ file /Users/mstratman/perl5/perlbrew/perls/perl-5.40.0/bin/perl
/Users/mstratman/perl5/perlbrew/perls/perl-5.40.0/bin/perl: Mach-O 64-bit executable x86_64

I tried exporting ARCHFLAGS=-arch arm64, verifying it was set w/ env then perlbrew install .... and the resulting binary was still x86_64

~ $ env | grep ARCH
ARCHFLAGS=-arch arm64
~ $ perlbrew install --notest perl-5.38.2
Installing /Users/mstratman/perl5/perlbrew/build/perl-5.38.2/perl-5.38.2 into ~/perl5/perlbrew/perls/perl-5.38.2

This could take a while. You can run the following command on another shell to track the status:

  tail -f ~/perl5/perlbrew/build.perl-5.38.2.log

perl-5.38.2 is successfully installed.
~ $ file ~/perl5/perlbrew/perls/perl-5.38.2/bin/perl
/Users/mstratman/perl5/perlbrew/perls/perl-5.38.2/bin/perl: Mach-O 64-bit executable x86_64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant