build_emacs_on_macos
差别
这里会显示出您选择的修订版和当前版本之间的差别。
| 两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 | ||
| build_emacs_on_macos [2022/03/22 12:36] – [参考链接] jiaji | build_emacs_on_macos [2026/01/09 02:09] (当前版本) – [测试] jiaji | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | # Build emacs on macOS | + | # Build Emacs on macOS |
| ## 步骤 | ## 步骤 | ||
| - | |||
| ### 下载源码 | ### 下载源码 | ||
| ``` | ``` | ||
| git clone git:// | git clone git:// | ||
| + | |||
| + | # 或者 git clone --depth 1 https:// | ||
| + | |||
| cd emacs | cd emacs | ||
| git checkout emacs-28 # 以emacs 28为例,你可以切换到其他的branch | git checkout emacs-28 # 以emacs 28为例,你可以切换到其他的branch | ||
| ``` | ``` | ||
| - | |||
| ### 下载依赖 | ### 下载依赖 | ||
| ``` | ``` | ||
| - | brew install libgccjit | + | # 使用 Homebrew 安装依赖 |
| + | brew install | ||
| + | brew install gcc libgccjit | ||
| ``` | ``` | ||
| ### 编译 | ### 编译 | ||
| ``` | ``` | ||
| + | |||
| + | cd workspace_opensource/ | ||
| + | |||
| + | # 清理之前的构建 | ||
| + | make distclean 2>/ | ||
| + | |||
| + | # 生成配置脚本 | ||
| ./ | ./ | ||
| ./configure \ | ./configure \ | ||
| - | --without-xpm \ | + | --with-ns \ |
| - | --with-imagemagick | + | |
| - | --without-gsettings | + | --without-dbus \ |
| - | --without-selinux | + | --without-gconf \ |
| - | --with-json \ | + | --without-gsettings \ |
| - | --with-native-compilation | + | --without-pop |
| - | --with-xwidgets | + | --without-mailutils |
| + | --without-sound \ | ||
| + | | ||
| + | --without-webp | ||
| - | make -j4 | + | make -j$(sysctl -n hw.ncpu) |
| - | make install | + | make install |
| - | ``` | + | |
| - | ### 测试 | + | echo " |
| + | ``` | ||
| + | ### 安装 | ||
| ``` | ``` | ||
| - | # 直接打开 Emacs | ||
| - | open nextstep/ | ||
| # 在 Finder 中打开 Emacs,方便拖到 / | # 在 Finder 中打开 Emacs,方便拖到 / | ||
| open -R nextstep/ | open -R nextstep/ | ||
| + | mv nextSteps/ | ||
| + | |||
| ``` | ``` | ||
build_emacs_on_macos.1647952579.txt.gz · 最后更改: (外部编辑)
