Cannot find terminfo entry for 'xterm-256color'

zshでタイトルのようなエラーがでた.
他にやることあったからしばらく放置してたけど(ぇ
screenでも同様のエラーがでたりputtyでつなぐと同じようなエラー出たりするので
いろいろ調べていじってみた.

$ sudo aptitude install ncurses
$ wget http://www.dekaino.net/screen/screen-4.0.3.tar.gz
$ tar zxvf screen-4.0.3.tar.gz
$ cd screen-4.0.3
$./configure --prefix=/usr/local --enable-colors256

ここでエラー

configure: error: !!! no tgetent - no screen

とりあえずぐぐって…

$ sudo aptitude install libncurses5-dev

したら無事makeできたけど・・・

$ make
$ sudo make install

emacs開こうとしたら・・・

emacs: Terminal type xterm-256color is not defined.
If that is not the actual type of terminal you have,
use the Bourne shell command `TERM=... export TERM' (C-shell:
`setenv TERM ...') to specify the correct type. It may be necessary
to do `unset TERMINFO' (C-shell: `unsetenv TERMINFO') as well.

というエラー・・・

sudo aptitude install ncurses-term

なんかいろいろやってたけどはじめからncurses-term入れればOKだったのか…?