编译Emacs for Windows

2019-07-19修订:新增Emacs-26.2版编译方法

 

1. 使用mingw-get-inst-20120426.exe安装编译工具MinGW,下载:http://sourceforge.net/projects/mingw/files/MinGW/

2. 下载Emacs源码,解压,到这里选择你想要的版本:http://ftp.gnu.org/gnu/emacs/

编译Emacs 26.2

从MinGW安装目录启动C:\MinGW\msys\1.0\msys.bat

$ cd /d/emacs-26.2/
$ ./configure --prefix=/d/emacs-26.2 --without-imagemagick --without-dbus --with-gnutls=no
make -j4
make install prefix=/c/somewhere

 

编译Emacs 24.2

启动cmd,设置PATH

set PATH=D:\MinGW\bin;D:\MinGW\include;D:\MinGW\lib;D:\MinGW\MSYS\1.0\bin;%PATH%
cd your-path-of-emacs\nt
configure.bat
mingw32-make bootstrap
mingw32-make info
mingw32-make install INSTALL_DIR=where-you-want-to-install

 

 

 

 

  

 

转载于:https://www.cnblogs.com/gamesun/archive/2013/02/11/2910148.html

在 macOS 上编译 Emacs 29 需要进行以下步骤: 1. 安装 Xcode:在 macOS 上编译 Emacs 需要安装 Xcode 开发工具。你可以在 App Store 上下载并安装 Xcode。 2. 安装 Homebrew:Homebrew 是一个非常流行的 macOS 包管理器,你可以使用它来安装必要的依赖项。你可以在终端中输入以下命令来安装 Homebrew: ``` /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ``` 3. 安装依赖项:在终端中输入以下命令来安装 Emacs 编译所需的依赖项: ``` brew install autoconf automake texinfo gtk+3 gnutls libxml2 librsvg imagemagick@6 ``` 4. 克隆 Emacs 29 代码库:在终端中输入以下命令来克隆 Emacs 29 代码库: ``` git clone --depth 1 --branch feature/native-comp https://github.com/emacs-mirror/emacs.git ``` 这将会在当前目录下创建一个名为 emacs 的目录,并且只克隆最新的代码。 5. 配置和编译 Emacs:在终端中进入 emacs 目录,并执行以下命令来配置和编译 Emacs: ``` cd emacs ./autogen.sh ./configure --with-native-compilation --with-modules --with-harfbuzz=no --with-cairo=no --with-json=no --with-xwidgets --with-imagemagick --with-jpeg --with-png --with-rsvg --with-tiff --with-xml2 --with-gnutls --with-gpm=no --without-gconf --without-gsettings --without-makeinfo --without-pop --without-mailutils make -j4 ``` 这将会进行 Emacs 的配置和编译。这可能需要一些时间,具体时间取决于你的机器性能。 6. 安装 Emacs:在终端中输入以下命令来安装 Emacs: ``` sudo make install ``` 这将会将 Emacs 安装到 /usr/local/bin 目录下。 完成以上步骤后,你就可以在终端中输入 emacs 命令来启动 Emacs 29 了。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值