Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running Ubuntu 12.04.

I'm trying to a get a particular plugin for vim working and it requires that vim has ruby support enabled (the plugin is command-t).

People tell me that I must go into my vim directory and run

./configure --enable-rubyinterp

When i do this i get the following error:

    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.

Now I’ve checked and ncurses-base is installed.

What do I need to do?

share|improve this question
I think you should install a ncurses-dev library – epsilonhalbe Jul 1 '12 at 16:35
could you provide the contents of src/auto/config.log – epsilonhalbe Jul 1 '12 at 16:37
thank you epsilon, that solved it. Could you make that into answer so i can give you credit – Fawkes5 Jul 1 '12 at 17:22
up vote 15 down vote accepted

I think you should install a ncurses-dev library.

share|improve this answer

Run sudo apt-get build-dep vim to install all the packages that was used to build the vim package from the repositories.

share|improve this answer

if you don't have sudo access, the solution is as follows:

download the latest (or whichever) release of ncurses from

run these bash commands:

mkdir ~/usr/local
cd <path_to_ncurses>
tar xzvf <ncurses>.tar.gz # change the tar command if it is not a tar.gz
cd <ncurses>
./configure --prefix=$HOME/usr/local
make install
cd <path_to_vim>
LDFLAGS=-L$HOME/usr/local/lib ./configure # then add any options e.g. --prefix=$HOME/usr/local
make install

And there you go. It's not often that people don't have sudo access to a machine, but this was my case, and this thread didn't provide the information I needed :) Now it does

share|improve this answer
In my case, the above step is still not good enough. I need to add $HOME/usr/local/lib to LD_LIBRARY_PATH as well. – xiaobai May 2 at 20:57

Like epsilonhalbe said, you need a terminal library like ncurses. running sudo apt-get install libncurses5 worked for me.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.