I want to build vim from source so that I can compile --enable-termtruecolor to 
try out 24bit colors in terminal vim. However, the configure step is never able 
to find my ncurses library.  

Searching the internet shows several other people having the same problem: 
http://molecularclouds.blogspot.com/2012/01/compiling-vim.html
https://github.com/Homebrew/homebrew/issues/32066

Unfortunately, none of their solutions have been useful to me. 

I am able to successfully compile 7.4.488 from source via `brew install vim`.  
This makes it clear that my inability to build vim from source on my own, 
without HomeBrew, is purely a configuration problem.  

So, I tried to completely replicate the HomeBrew configuration: 
I get the same source that HomeBrew uses: 
http://ftp.debian.org/debian/pool/main/v/vim/vim_7.4.488.orig.tar.gz

export CPATH=/usr/local/include
export CXXFLAGS="-Os -w -pipe -march=native -mmacosx-version-min=10.10"
export CFLAGS="-Os -w -pipe -march=native -mmacosx-version-min=10.10"
export LDFLAGS="-L/usr/local/lib -F/usr/local/Frameworks 
-Wl,-headerpad_max_install_names"

export 
PATH="/usr/local/opt/python/bin:/Users/admin/.gem/bin:/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/opt/ruby/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/Library/ENV/scm"

./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/HEAD/share/man 
--enable-multibyte --with-tlib=ncurses --enable-cscope --with-features=huge 
--with-compiledby=Homebrew --enable-perlinterp --enable-pythoninterp 
--enable-rubyinterp --enable-gui=no --without-x

No avail.  The configure step exits with: 
checking --with-tlib argument... ncurses
checking for linking with ncurses library... configure: error: FAILED

I don't understand how it couldn't possibly find it with all of these settings 
identical to a working HomeBrew source build. What else does HomeBrew do 
differently?  Any other ideas what I might be doing incorrectly?

Thank you!

-- 
-- 
You received this message from the "vim_mac" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_mac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to