cmigemo でちょっとハマッたのでメモ。
ダウンロードして、インストールしようとしたら
===
clothoid@debian:~/app$ wget http://cmigemo.googlecode.com/files/cmigemo-default-src-20110227.zip
clothoid@debian:~/app$ unzip cmigemo-default-src-20110227.zip
clothoid@debian:~/app$ cd cmigemo-default-src
clothoid@debian:~/tmp/cmigemo-default-src$ ./configure
-bash: ./configure: 許可がありません
===
って言われ、
===
clothoid@debian:~/app/cmigemo-default-src$ chmod +x configure
clothoid@debian:~/app/cmigemo-default-src$ ./configure
clothoid@debian:~/app/cmigemo-default-src$ make gcc
===
としたら、
===
src/wordbuf.c:118: error: ' INT_MAX ' undeclared (first use in this function)
src/wordbuf.c:118: error: (Each undeclared identifier is reported only once
src/wordbuf.c:118: error: for each function it appears in.)
===
と言われ、しかたないので
===
clothoid@debian:~/app/cmigemo-default-src$ cp src/wordbuf.c src/wordbuf.c.orig
clothoid@debian:~/app/cmigemo-default-src$ cp src/wordbuf.c src/wordbuf.c.orig
clothoid@debian:~/app/cmigemo-default-src$ /usr/local/bin/emacs src/wordbuf.c
===
として、
===
*** /home/clothoid/app/cmigemo-default-src/src/wordbuf.c.orig 2012-12-16 02:41:54.000000000 +0000
--- /home/clothoid/app/cmigemo-default-src/src/wordbuf.c 2012-12-16 02:43:23.000000000 +0000
***************
*** 10,15 ****
--- 10,16 ----
#include <stdlib.h>
#include <string.h>
#include "wordbuf.h"
+ #include <limits.h>
#define WORDLEN_DEF 64
===
と編集し、
===
clothoid@debian:~/app/cmigemo-default-src$ make gcc
clothoid@debian:~/app/cmigemo-default-src$ make gcc-dict
clothoid@debian:~/app/cmigemo-default-src$ cd dict/
clothoid@debian:~/app/cmigemo-default-src/dict$ make utf-8
clothoid@debian:~/app/cmigemo-default-src/dict$ cd ..
clothoid@debian:~/app/cmigemo-default-src$ sudo paco -D make gcc-install
===
で、インストールして、さらに、
===
clothoid@debian:~/app/cmigemo-default-src$ su
root@debian:/home/clothoid/app/cmigemo-default-src# emacs /etc/ld.so.conf.d/User-Library.conf
===
を
===
/path/to/lib
===
として、
===
root@debian:/home/clothoid/app/cmigemo-default-src# ldconfig
root@debian:/home/clothoid/app/cmigemo-default-src# exit
===
をやっておき、
===
clothoid@debian:~/app/cmigemo-default-src$ cd ~/.emacs.d/
clothoid@debian:~/.emacs.d$ mkdir migemo
clothoid@debian:~/.emacs.d$ cd migemo/
clothoid@debian:~/.emacs.d/migemo$ wget https://bitbucket.org/sakito/dot.emacs.d/raw/cf8e4c175a9e9c7d46b9a55b23ce1f35784d5267/local-lisp/migemo.el
===
と持ってきて、 init.el を
===
(add-to-list 'load-path
"~/.emacs.d/migemo")
(setq migemo-command "cmigemo")
(setq migemo-options '("-q" "--emacs"))
(setq migemo-dictionary "/usr/local/share/migemo/utf-8/migemo-dict")
(setq migemo-user-dictionary nil)
(setq migemo-regex-dictionary nil)
(setq migemo-coding-system 'utf-8-unix)
(load-library "migemo")
===
とした。
以下、使用環境。
[client]
===
# uname -a
CYGWIN_NT-6.1 D257-A71C 1.7.16(0.262/5/3) 2012-07-20 22:55 i686 Cygwin
# mintty --version
mintty 1.1.2
# ssh -v
openssh_6.1p1, openssl 1.0.1c 10 may 2012
# ~/bin/cocot.exe -v
cocot, version 20100903
# ~/bin/cocot.exe -t CP932 -p UTF-8 ssh IPアドレス
===
[server]
===
clothoid@debian:~$ uname -a
linux debian 2.6.33.7-co-0.7.9 #1 preempt sat apr 9 20:30:51 utc 2011 i686 gnu/linux
clothoid@debian:~$ emacs --version
GNU Emacs 24.2.1
===
0 件のコメント:
コメントを投稿