OS X El Capitan 上での作業である.
$ sudo port selfupdate
$ sudo port -uv upgrade outdated
$ cd ~/src/emacs.HEAD/emacs
$ ./autogen.sh
$ ./configure --with-ns --without-x
$ git pull git://git.sv.gnu.org/emacs.git
$ make bootstrap
ところが
make bootstrap
を実行した段階で,
configure: creating ./config.status
./config.status: line 1672: 29677 Trace/BPT trap: 5 $AWK 'BEGIN { getline <"/dev/null" }' < /dev/null 2> /dev/null
config.status: creating src/emacs-module.h
dyld: Library not loaded: /opt/local/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/gawk
Reason: image not found
config.status: creating nextstep/Cocoa/Emacs.base/Contents/Info.plist
dyld: Library not loaded: /opt/local/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/gawk
Reason: image not found
config.status: creating nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings
dyld: Library not loaded: /opt/local/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/gawk
Reason: image not found
config.status: creating Makefile
dyld: Library not loaded: /opt/local/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/gawk
Reason: image not found
config.status: creating lib/gnulib.mk
dyld: Library not loaded: /opt/local/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/gawk
Reason: image not found
config.status: creating ./doc/man/emacs.1
dyld: Library not loaded: /opt/local/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/gawk
Reason: image not found
config.status: creating lib/Makefile
dyld: Library not loaded: /opt/local/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/gawk
Reason: image not found
config.status: creating lib-src/Makefile
dyld: Library not loaded: /opt/local/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/gawk
Reason: image not found
config.status: creating oldXMenu/Makefile
dyld: Library not loaded: /opt/local/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/gawk
Reason: image not found
config.status: creating doc/emacs/Makefile
dyld: Library not loaded: /opt/local/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/gawk
Reason: image not found
config.status: creating doc/misc/Makefile
dyld: Library not loaded: /opt/local/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/gawk
Reason: image not found
config.status: creating doc/lispintro/Makefile
dyld: Library not loaded: /opt/local/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/gawk
Reason: image not found
config.status: creating doc/lispref/Makefile
dyld: Library not loaded: /opt/local/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/gawk
Reason: image not found
config.status: creating src/Makefile
dyld: Library not loaded: /opt/local/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/gawk
Reason: image not found
config.status: creating lwlib/Makefile
dyld: Library not loaded: /opt/local/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/gawk
Reason: image not found
config.status: creating lisp/Makefile
dyld: Library not loaded: /opt/local/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/gawk
Reason: image not found
config.status: creating leim/Makefile
dyld: Library not loaded: /opt/local/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/gawk
Reason: image not found
config.status: creating nextstep/Makefile
dyld: Library not loaded: /opt/local/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/gawk
Reason: image not found
config.status: creating nt/Makefile
dyld: Library not loaded: /opt/local/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/gawk
Reason: image not found
config.status: creating test/Makefile
dyld: Library not loaded: /opt/local/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/gawk
Reason: image not found
config.status: creating admin/charsets/Makefile
dyld: Library not loaded: /opt/local/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/gawk
Reason: image not found
config.status: creating admin/unidata/Makefile
dyld: Library not loaded: /opt/local/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/gawk
Reason: image not found
config.status: creating admin/grammars/Makefile
dyld: Library not loaded: /opt/local/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/gawk
Reason: image not found
config.status: creating src/config.h
dyld: Library not loaded: /opt/local/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/gawk
Reason: image not found
./config.status: line 2287: 30197 Trace/BPT trap: 5 $AWK -f "$ac_tmp/defines.awk" 'src/config.in'
config.status: error: could not create src/config.h
make: *** [Makefile] Error 1
と立て続けにエラーが出てコンパイルが進まない.
調べるだけの気力は殆ど無かったが, 一応メッセージを読んでみる.
そうしたら全部同じ類のエラーだった. 発生しているのは, 以下の形式のエラーである.
config.status: creating ...
dyld: Library not loaded: /opt/local/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/gawk
Reason: image not found
これくらいだったら何とかなるかも知れない.
GNU awk:
/usr/local/bin/gawk
(これは MacPorts によってインストールされたもので /opt/local/bin/gawk
にリンクされている) が呼び出された時点で, ライブラリー /opt/local/lib/libreadline.7.dylib
が存在しないためにエラーとなっているようだ.実際にディレクトリー
/opt/local/lib
の readline 関連のライブラリーを確認すると,
$ ls -1 /opt/local/lib/libreadline.*
/usr/local/lib/libreadline.8.0.dylib
/usr/local/lib/libreadline.8.dylib
/usr/local/lib/libreadline.a
/usr/local/lib/libreadline.dylib
と出力され, 確かに
/opt/local/lib/libreadline.7.dyllib
は存在しない.そこで
$ sudo port upgrade gawk
を実行して GNU awk を El Capitan 対応の最新版にアップグレードする.
$ port installed gawk
gawk @4.2.1_0 # <- old version.
gawk @4.2.1_2 (active) # <- newly installed version.
GNU awk の新しいバージョンがインストールされたことが確認できる. 結果として, これで GNU awk は正常に動作するようになった.
Emacs のコンパイルに戻って
$ ./autogen.sh
$ ./configure --with-ns --without-x
$ git pull git://git.sv.gnu.org/emacs.git
$ make bootstrap
$ make check
$ make install
によってコンパイルを行う. エラー無しに終わる.
動作も確認できたのでシステムへのインストールを行って Emacs HEAD のアップデートは終了した.
そう言えば, Emacs を最新版に上げたのは今年になって初めてある.
やっと, こういう初歩のシステム管理ができるようになった, と言っていいのだろうか. まだ自信は無いが.
【このカテゴリーの最新記事】
- no image
- no image
- no image
- no image
- no image