Monday, August 15, 2011

Re: install error

On 2011-08-15, dundaryilmaz wrote:
> Hi,
> I am trying to install VIM to my HOME directory. I dont have root user
> privileges.
> When I try
> ./configure --prefix=$HOME
>
> I get this error:
>
> termcap library is not usable
> checking for tgetent in -lcurses... yes
> curses library is not usable
> 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.
>
>
> Is there any idea what is wrong?

It looks to me like the ncurses development package is not installed
on that system. The best solution is to have someone with root
privileges install it. If you can't do that, the second best
solution is to install it yourself under $HOME just as you are doing
with Vim. When you configure Vim, you will have to tell it where to
find ncurses.

I had to do that a while ago to build Vim 7.2 on a Solaris system.
From my notes, here are the commands I executed at the time.

export CPPFLAGS="-I$HOME/src/SunOS/ncurses-5.5/include"
export LDFLAGS="-L$HOME/src/SunOS/ncurses-5.5/lib"
./configure --prefix=$HOME/src/SunOS/vim-7.2 --with-tlib=ncurses

Note that I didn't install anything directly under my $HOME
directory, so you will have to modify those paths to conform to your
practice.

Since you know enough to do what you've done so far, you shouldn't
have any trouble installing ncurses. If you do, come back here and
I'll dig up my notes on that, too.

HTH,
Gary

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: