jimeh / build-emacs-for-macos

Somewhat hacky script to automate building of Emac.app on macOS.
484 stars 50 forks source link

arch-dependent data dir 'Contents/MacOS/libexec/': No such file or directory #108

Closed tommythorn closed 4 months ago

tommythorn commented 4 months ago

I hope this is the right place to report this.

I installed "GNU Emacs 31.0.50" via Mac Home Brew on an M1 MacBook Air and I'm struggling to fix Warning: arch-dependent data dir 'Contents/MacOS/libexec/': No such file or directory

The README.md suggestion doesn't work on several levels:

  1. there is no /Applications/Emacs.app/Contents/MacOS/bin (there are multiple bin-* directories though)
  2. there is no emacs anywhere in under /Applications/Emacs.app/Contents/MacOS, but there is both an Emacs and an emacs-nw.
  3. Launching /Applications/Emacs.app/Contents/MacOS/Emacs or /Applications/Emacs.app/Contents/MacOS/emacs-nw both results in the above warning.

(AFAICT, this is the root cause of problems I have with extensions).

jimeh commented 4 months ago

Sounds like you've installed the emacs Cask from Homebrew, it uses binary builds of Emacs from https://emacsformacosx.com, which is unrelated to this project.

This project is for my custom build script to make it easier to build self contained Emacs applications for macOS. I do also maintain a nightly builds project that uses this script here: https://github.com/jimeh/emacs-builds (Note: Only stable and monthly builds offer Apple Silicon binaries, details are in the README)

For better or worse there's a number of different ways to install Emacs on macOS, both from source and also as pre-built applications.

If it helps, here's a brief summary of the options available off the top of my head:

tommythorn commented 4 months ago

My apologies and thanks for the wealth of information and links. I’ll try these options.

tommythorn commented 4 months ago

Installing directly from the releases of jimeh/emacs-builds works exactly as documented here (of course) and solved my problem. Thanks again!