Following this writeup…
The compiled binary seems to work fine, but the installed binary fails (when running make install).
It seems to be failing on this step:
...
generating help tags
/usr/local/bin/vim -u NONE -esX -c "helptags ++t ." -c quit
dyld: Symbol not found: _environ
Referenced from: /Users/neezer/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.1.9.1.dylib
Expected in: flat namespace
in /Users/neezer/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.1.9.1.dylib
make[2]: *** [vimtags] Trace/BPT trap
make[1]: [installrtbase] Error 2 (ignored)
I used this to configure:
./configure --prefix=/usr/local --enable-rubyinterp --enable-gui=no --disable-gpm
Like I said, I think it compiled correctly, because I can run ./src/vim after make just fine (no errors). But when I try to run the installed version after make install in /usr/local/bin/vim, I get this (mirrors above):
dyld: Symbol not found: _environ
Referenced from: /Users/neezer/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.1.9.1.dylib
Expected in: flat namespace
in /Users/neezer/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.1.9.1.dylib
[1] 13175 trace trap vim
Running which vim verifies that it is trying to load the new binary in /usr/local/bin/vim.
My current version of Ruby is ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.5.0] via RVM.
What’s happening here?
And no: I don’t want to just use MacVim instead…
Says right in the blog post:
There’s more information available in this ticket.
But in summary, you have to link against Ruby 1.8.7, which is the version that ships with Snow Leopard anyway.