Cannot create a new site with fresh download of Local 6.5.1. for Apple Silicon on M1 Pro with macOs Ventura

Issue Summary

Cannot create a new site with fresh download of Local 6.5.1. for Apple Silicon on M1 Pro with macOs Ventura.

System Details

Uh-oh unable to provision site

Error: Error: spawn Unknown system error -86
at ChildProcess.spawn (internal/child_process.js:403:11)
at spawn (child_process.js:562:9)
at execFile (child_process.js:246:17)
at t.<computed> (electron/js2c/asar_bundle.js:5:2242)
at /Applications/Local.app/Contents/Resources/app.asar/main/_helpers/execFilePromise.js:1:582
at new Promise (<anonymous>)
at Object.<anonymous> (/Applications/Local.app/Contents/Resources/app.asar/main/_helpers/execFilePromise.js:1:534)
at Generator.next (<anonymous>)
at /Applications/Local.app/Contents/Resources/app.asar/main/_helpers/execFilePromise.js:1:330
at new Promise (<anonymous>)

and

Uh-oh could not update host file

Error: Error: spawn Unknown system error -86
at ChildProcess.spawn (internal/child_process.js:403:11)
at spawn (child_process.js:562:9)
at execFile (child_process.js:246:17)
at t.<computed> (electron/js2c/asar_bundle.js:5:2242)
at /Applications/Local.app/Contents/Resources/app.asar/main/_helpers/execFilePromise.js:1:582
at new Promise (<anonymous>)
at Object.<anonymous> (/Applications/Local.app/Contents/Resources/app.asar/main/_helpers/execFilePromise.js:1:534)
at Generator.next (<anonymous>)
at /Applications/Local.app/Contents/Resources/app.asar/main/_helpers/execFilePromise.js:1:330
at new Promise (<anonymous>)

Please advise. I was really pumped on their being a native localwp build for Apple Silicon. I guess it’s back to MAMP for the time being.

Hey @fedoraneckbeard - thanks for posting in the forums!

What version of PHP are you trying to build with?

There is an issue with the Apple Silicon build that we’re patching right now, but here is a fix - PHP v7.3.5 ONLY usable on Mac 10.13.6 (High Sierra) - #2 by austinwendt

Short-version:
Delete your ~/Library/Application Support/Local/lightning-services folder and relaunch Local and you should be good to go.

Sorry for the confusion!

Hi thanks for getting back to me!

I am using the preferred settings on Local (so PHP 8.1.9 right?).

I will give this a shot and then report back!

Thanks again!

Hi sorry that did not work as I do not have a Local/lightning-services in ~Library/Application Support. I should add that this is my first time installing LocalWP on my M1 as I was waiting for a native version. I did not have a Rosetta version prior to that.

Ahh, good to know! Do you have Rosetta installed on your machine? Local and all of the PHP versions are compiled natively, but there are some sub-processes that will still run Intel (to be re-compiled soon). If you’re missing Rosetta, Local could be throwing those errors above?

Thanks again for replying. As of right now I do not have Rosetta on my machine. Ok just to clarify, I would need to just have Rosetta installed on my machine? I do not need the Rosetta version of Local? I appreciate the help!

Yes, for now - install Rosetta 2 and you’ll be able to use the Apple Silicon version of Local.

I know that sounds backwards… working on fixing that one!

1 Like

I don’t want to have Rosetta on my device. I want to run Silicon based software/app so do you have a quick fix for that? I have the same problem. Rosetta really slows down the device sometimes, so I want to avoid any Intel-supported apps.

Hi @fahimm - no, no quick fix for this one. Rosetta is necessary to run Local on M1 machines at this time.

do we still need Rosetta installed after the release of 6.5.2 ?

Yes, only the PHP resources have been compiled for Apple Silicon. Apache, nginx, MySQL still require Rosetta until they are recompiled.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.