Unable to Build vim on 10.10.1, can't find ncurses library

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Unable to Build vim on 10.10.1, can't find ncurses library

Alexander Dunn
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Unable to Build vim on 10.10.1, can't find ncurses library

Alexander Dunn
On Tuesday, December 30, 2014 6:21:13 PM UTC-8, Alexander Dunn wrote:

> 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!
I've tried forcing it to build with system Python and system Ruby as opposed to my HomeBrew installed Python and Ruby, even though HomeBrew builds fine with HomeBrew-installed Python and Ruby. No change.

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Unable to Build vim on 10.10.1, can't find ncurses library

Alexander Dunn
On Tuesday, December 30, 2014 6:24:06 PM UTC-8, Alexander Dunn wrote:

> On Tuesday, December 30, 2014 6:21:13 PM UTC-8, Alexander Dunn wrote:
> > 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!
>
> I've tried forcing it to build with system Python and system Ruby as opposed to my HomeBrew installed Python and Ruby, even though HomeBrew builds fine with HomeBrew-installed Python and Ruby. No change.
Since building latest vim source works through HomeBrew, I simply copied the vim.rb formula, replaced the HEAD repository URL with the fork I want to use, and then added the options I want to the configure step.  This worked to build vim from source with the configurations options I want.  

It would still be interesting to know why HomeBrew source build works and doing it myself doesn't work, but I have at least gotten past compiling.

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.