pythonのOmni completionを有効化できない。
先日からcoLinux+debian etchな環境を構築してて、
apt-get install vim
で入れたvimだと--enable-pythoninterpされてない(する方法あるのかな?)ので自前でソースからインストールしてる。(ついでに--enable-rubyinterpでrubyも)
wget ftp://ftp.vim.org/pub/vim/unix/vim-7.1.tar.bz2 tar jxf vim-7.1.tar.bz2 mkdir -p /opt/vim/vim71 cd vim71/ sudo ./configure --enable-multibyte --enable-xim --enable-fontset --enable-rubyinterp --enable-pythoninterp --enable-ctags --with-features=big --with-tlib=ncurses --prefix=/opt/vim/vim71
でやると出来たかと思いきや
% ./src/vim --version VIM - Vi IMproved 7.1 (2007 May 12, compiled Aug 31 2007 13:09:14) Compiled by maedana@debian Big version without GUI. Features included (+) or not (-): +arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent -clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments +cryptv +cscope +cursorshape +dialog_con +diff +digraphs -dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path +find_in_path +folding -footer +fork() -gettext -hangul_input +iconv +insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap +menu +mksession +modify_fname +mouse -mouseshape +mouse_dec -mouse_gpm -mouse_jsbterm +mouse_netterm +mouse_xterm +multi_byte +multi_lang -mzscheme -netbeans_intg -osfiletype +path_extra -perl +postscript +printer -profile -python +quickfix +reltime +rightleft -ruby +scrollbind +signs +smartindent -sniff +statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title -toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp -xterm_clipboard -xterm_save system vimrc file: "$VIM/vimrc" user vimrc file: "$HOME/.vimrc" user exrc file: "$HOME/.exrc" fall-back for $VIM: "/opt/vim/vim71/share/vim" Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 Linking: gcc -L/usr/local/lib -o vim -lncurses
で-pythonのままだった。ログをおいかけてみると
checking --enable-pythoninterp argument... yes checking for python... (cached) /usr/bin/python checking Python version... (cached) 2.4 checking Python is 1.4 or better... yep checking Python's install prefix... (cached) /usr checking Python's execution prefix... (cached) /usr (cached) checking Python's configuration directory... (cached) can't find it!
などといわれてて、なんかディレクトリがないらしい。ちなみにdreamhostで似たようなことやったときは何も問題なくて
checking --enable-pythoninterp argument... yes checking for python... (cached) /home/ikoa/root/bin/python checking Python version... (cached) 2.5 checking Python is 1.4 or better... yep checking Python's install prefix... (cached) /home/ikoa/root checking Python's execution prefix... (cached) /home/ikoa/root (cached) checking Python's configuration directory... (cached) /home/ikoa/root/lib/python2.5/config (cached) checking if -pthread should be used... yes||< とかなってた。
んー…coLinux側にも/usr/lib/python2.4/config/はあるんだけどなぁ…apt-getじゃなくてpythonもソースからインストールしたほうがいいのかなぁ。何が駄目なんだろう。
そして環境に時間かかりすぎて何一つやりたいことが出来てないという本末転倒な状態が続いてるし…かといって不便な環境で作業したくないし…ジレンマ。
追記
コメントを頂いたように、
apt-get install vim-python