dyld: lazy symbol binding failed: Symbol not found: _rb_encdb_declare Referenced from: /Users/sa125/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin10.8.0/enc/encdb.bundle Expected in: flat namespace
dyld: Symbol not found: _rb_encdb_declare Referenced from: /Users/sa125/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin10.8.0/enc/encdb.bundle Expected in: flat namespace Vim: Caught deadly signal SEGV
Hi,
I've built vim on my MacbookPro (running OSX 10.6.8), and trying to get Command-T to work. The ruby on my system is provided by RBENV, and I've used the following simple script to build and install vim:
#!/bin/bash
make distclean
./configure --with-features=huge \
--enable-rubyinterp=yes \
--with-ruby-command=`rbenv which ruby` \
--enable-pythoninterp \
--enable-perlinterp \
--enable-cscope=yes \
make
make install
Vim compiles and everything works, except Command-T. I re-installed Command-T by cloning the repo, and running rake make && make
inside the root folder, while ensuring the same ruby version (1.9.3-p194) was used to compile vim and Command-T. When I run vim and load Command-T, it crashes with the following error:
dyld: lazy symbol binding failed: Symbol not found: _rb_encdb_declare
Referenced from: /Users/sa125/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin10.8.0/enc/encdb.bundle
Expected in: flat namespace
dyld: Symbol not found: _rb_encdb_declare
Referenced from: /Users/sa125/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin10.8.0/enc/encdb.bundle
Expected in: flat namespace
Vim: Caught deadly signal SEGV
I've tried building both with a different ruby version (1.9.2-p320), but the outcome was the same. If all else fails, I'll use CtrlP
(which is also great), but I'd like to give it another go and at least find out what's killing it, so any ideas will help. thanks.
$ mvim -m filename
or add an alias:alias vim='mvim -m'
. Compiling Vim by hand on Mac OS X is totally useless.