vim7をコードからインストール

./configure --enable-multibyte --enable-xim --enable-fontset --without-x --enable-rubyinterp --with-features=big

checking for C compiler default output file name... configure: error: C compiler cannot create executables

ハマる。
apt-get install gcc g++
で解決。
次。

checking for tgetent in -lcurses... no
no terminal library found
checking for tgetent()... configure: error: NOT FOUND!
You need to install a terminal library; for example ncurses.
Or specify the name of the library with --with-tlib.

とのことなので、
apt-get install ncurses-dev
その後、
./configure --enable-multibyte --enable-xim --enable-fontset --without-x --enable-rubyinterp --with-features=big
make
sudo make install
で完了
(makeもapt-get しなきゃいけなかったんだけど、インストール時で入ってないってのがどうも設定ミスったのかなぁ?)