Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: how to build arm64 Perl

by 1nickt (Canon)
on Feb 14, 2021 at 20:49 UTC ( [id://11128375]=note: print w/replies, xml ) Need Help??


in reply to how to build arm64 Perl

Hi, I may be misinformed but IIUC Apple is simply dropping the supplied binaries for Python, Perl etc. Nothing I am aware of stops you from building your own Perl with Perlbrew (which has been recommended on MacOS for some time).

Hope this helps!


The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^2: how to build arm64 Perl
by Anonymous Monk on Feb 14, 2021 at 21:15 UTC
    Does perlbrew build for arm64? I already build for intel and embed it in my Cocoa App, guarding for the future when Apple supplied perl is no longer available. I want to build a Universal perl executable for embedding ...

      The steps to building Perl aren't complicated and they are outlined in the INSTALL file that comes with the Perl tarball.

      My suggestion is that you build Perl from that on an M1 Apple machine. If you don't have an ARM-based MacOS machine, you will have to find out how to cross-compile Perl. This is outlined in the same file, in the Cross-compilation section.

      Since the ARM-Macs are still *BSD-based, I have no reason to suspect that Perl would not build on them.

        Yes, I know how to build Perl. Out of the box it builds only for Intel, but there are switch(es) that I can use on C compiles to build for Intel and arm64, I just do not know how to incorporate them into the normal Configure machinations.This is the way Xcode builds fat/universal binaries. But, I will build on an M1 machine and see what happens! Thanks.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11128375]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-19 23:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found