Instructions for rebuilding Emacs the link error

This commit is contained in:
Howard Abrams 2022-10-01 22:05:17 -07:00
parent 62a9262f43
commit fbdcce4d96

View file

@ -6,10 +6,22 @@
These instructions originally came from [[https://jherrlin.github.io/posts/emacs-on-macos-monterey/][this essay]], as it runs Emacs as dæmon with LaunchAgent. Also fetch mails periodically with =mbsync= via LaunchAgent.
* Install
Best success comes from using the [[https://github.com/d12frosted/homebrew-emacs-plus][emacs-plus]] installation from [[https://brew.sh/][Homebrew]]. To begin, add the /cask/:
No longer need to install [[https://apps.apple.com/us/app/xcode/id497799835?mt=12][Apple XCode]], as these instructions require [[https://brew.sh][Homebrew]].
To get the native compilation for Emacs working, install:
#+begin_src sh
brew install libgccjit
#+end_src
Oh, and if we are still building with [[https://imagemagick.org/][ImageMagick]], install that first:
#+begin_src sh
brew install imagemagick
#+end_src
Best success comes from using the [[https://github.com/d12frosted/homebrew-emacs-plus][emacs-plus]] installation. To begin, add the /cask/:
#+begin_src sh
brew tap d12frosted/emacs-plus
#+end_src
I find that I need to … at least, on my work computer, install two different versions of Emacs that I use to distinguish one for “work” and the other for other activities, like IRC and [[file:ha-feed-reader.org][elfeed]]. To that end, I run the following commands to install Emacs:
#+begin_src sh
brew install emacs-plus@28 --with-native-comp --with-mailutils --with-imagemagick --with-elrumo2-icon
@ -18,9 +30,23 @@ And the following for “work”:
#+begin_src sh
brew install emacs-plus@29 --with-native-comp --with-elrumo1-icon
#+end_src
** Ouchie
Sometimes get the following error:
#+begin_example
ld: symbol(s) not found for architecture x86_64
#+end_example
And [[https://duckduckgo.com/?q=brew+ld%3A+symbol(s)+not+found+for+architecture+x86_64&t=ffab&ia=web][web searches]] yield mixed results. To solve, I:
* =brew uninstall emacs-plus@28=
* =brew update=
* =brew upgrade=
* =brew reinstall libgccjit=
(Oh, and I made sure that =brew doctor= was clean…enough)
* Supporting Packages
Now install all the extras:
#+begin_src sh
brew install git-delta
brew install libvterm
brew install mu
brew install isync
brew install gpg