introduction
Macを購入したらまず初めにEmacsをビルドします。M1 MacBook Airを買ってもとーぜん。。。
environment
- macOS: M1, Intel
- xcode
- MacPorts: autoconf, texinfo
build
#!/bin/sh
EMACSDIR=Emacs
JOBS=4
if test ! -e /opt/local/bin/autoconf; then
echo "sudo port install autoconf"
exit 0
fi
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/opt/local/bin
cd /tmp
git clone --depth 1 https://git.savannah.gnu.org/git/emacs.git $EMACSDIR
cd /tmp/$EMACSDIR
sh autogen.sh
mkdir build
cd build
../configure --with-ns --without-makeinfo --with-gnutls=no
make -j $JOBS || (echo "falure exit" ; exit)
make install
open /tmp/$EMACSDIR/build/nextstep
exit 0
Note
Trumpで相手がmacOSのァイルを開けないのは何故だろう。
Raspberry Pi (Ubuntu)相手なら開けるのに。
ここではGnuTLSを使ってないけど、--with-gnutlsでもダメ。
どうすれば解決しますかね。
C-x C-f /ssh:hostname: