MacPortsのemacsをインストール
以下のコマンドにより、emacsをインストールした。
$ sudo port install emacs
しかし、emacsは、carbon版を使用したいため、+carbonのものをインストールしたい。
$ sudo port install emacs +carbon
Error: Target org.macports.activate returned: Image error: Another version of this port (emacs @22.2_0) is already active.
Error: Status 1 encountered during processing.
以前インストールしたものがあるため、インストールできないようだ。
「already active」とあるので、activeでない状態にすればよいのではないかな。
$ sudo port deactivate emacs
- > Deactivating emacs
$ sudo port install emacs +carbon
予想通り。
起動してみる。
$ emacs
2008-06-29 12:09:25.406 Emacs[96530:613] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x1e03, name = 'org.gnu.Emacs.ServiceProvider'
See /usr/include/servers/bootstrap_defs.h for the error codes.
起動はできたがエラーがでている。
あとで、原因を調査する。
...
carbonEmacs既に起動してる状態でもう一個起動すると
コンソールに
2008-01-30 15:22:54.538 Emacs[597:10b] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x1e03, name = 'org.gnu.Emacs.ServiceProvider'
See /usr/include/servers/bootstrap_defs.h for the error codes.って出る
大丈夫なの?
ということなので、finkのEmacsを終了して、MacPortsのものを起動する。
すると、エラーが出力されなくなった。
.emacsを修正することもなく、いまのところ問題なく作業できている。