I am on Windows 8.1 and I use cream vim instead the one from here (
http://www.vim.org/download.php) because I find cream vim has support to
python, python3 and ruby, which are necessary for some plugins that I use.
unfortunately, when using ruby,I ran into errors:
E448: ... could not load rb_float_new_in_heap
E266: sorry, this command is disable...

I can see my cream vim was compiled with ruby support from :version as it
lists +ruby/dyn and
-DFEAT_RUBY -I /cygdrive/c/Ruby193/lib/ruby/1.9.1/i386-mingw32 -I
/cygdrive/c/Ruby193/include/ruby-1.9.1 -I
/cygdrive/c/Ruby193/include/ruby-1.9.1/i386-mingw32 -DDYNAMIC_RUBY
-DDYNAMIC_RUBY_DLL="msvcrt-ruby191.dll" -DDYNAMIC_RUBY_VER=*191 *

I googled a bit about the errors and found this page (
https://groups.google.com/forum/#!topic/vim_dev/N7oUbqFmOvw) which suggests
the correct RUBY_VER macro should have been 19 instead of 191. I also took
a look at vim source if_ruby.c and indeed its logic branches on RUBY_VER 19.
#  if *DYNAMIC_RUBY_VER* <= *19*
    {"rb_float_new", (RUBY_PROC*)&dll_rb_float_new},
#  else
    {"rb_float_new_in_heap", (RUBY_PROC*)&dll_rb_float_new},
#  endif

from the logic, it looks like rb_float_new should be used for RUBY_VER<=19,
and I can find that function in my msvcrt-ruby191.dll shipped with
ruby-1.9.1-p429-i386-mswin32.zip, but not rb_float_new_in_heap, which
explained the error.

my question is, doesn't anyone know a cream vim that supports
python/python3/ruby and does run without errors? Thanks. I tried to grab
the latest from http://cream.sourceforge.net/, which looks like  support
ruby and has RUBY_VER set to 18, but it doesn't have support for python3
for some reason and there is also no vim.exe after installation (i.e., only
gvim.exe) which is a big no no to me. Thanks for any comments or pointers.

Meng
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
_______________________________________________
cream-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cream-general

Reply via email to