On 2006-10-16, Anupam Srivastava <[EMAIL PROTECTED]> wrote:

> Allan Wind wrote:
> > On 2006-10-16T03:03:30+0200, Anupam Srivastava wrote:
> >> So, I have downloaded and compiled ncurses in my local directory. Now
> >> I want Vim to detect this new library. How to do it?
> > 
> > If you with library mean a .so, then including the path where it is
> > stored in LD_LIBRARY_PATH before starting vim should do.
> > 
> > 
> No I am asking about how to compile the Vim given my ncurses is
> installed in /some/path/in/my/home and not in /usr/ or /usr/local/
> 
> I suppose there is some variable which I can reset to this new path.
> What is that variable?

The variables are CPPFLAGS and LDFLAGS.  I have this situation on a
Sun machine.  I downloaded and installed ncurses under
/home/garyjohn/src/SunOS/ncurses-5.4.  Here is how I build vim:

    export CPPFLAGS="-I/home/garyjohn/src/SunOS/ncurses-5.4/include/ncurses"
    export LDFLAGS="-L/home/garyjohn/src/SunOS/ncurses-5.4/lib"
    ./configure --prefix=/home/garyjohn/src/SunOS/vim-7.0 --with-tlib=ncurses 
--enable-cscope
    make
    make install

HTH,
Gary

-- 
Gary Johnson                 | Agilent Technologies
[EMAIL PROTECTED]     | Wireless Division
                             | Spokane, Washington, USA

Reply via email to