找不到正确版本的Ruby for Vim without Cream

时间:2013-01-03 01:09:06

标签: ruby vim

我从这里http://sourceforge.net/projects/cream/files/Vim/得到了没有奶油7.3.744的Vim。 当我查看:help ruby-dynamic时,它说:

You need to install the right version of Ruby for this to
work.  You can find the package to download from:
http://www.garbagecollect.jp/ruby/mswin32/en/download/release.html
Currently that is ruby-1.9.1-p429-i386-mswin32.zip

Currently the name is "msvcrt-ruby191.dll".

The name of the DLL must match the Ruby version Vim was
compiled with.  Currently the name is "msvcrt-ruby191.dll".
That is for Ruby 1.9.1.  To know for sure edit "gvim.exe" and
search for "ruby\d*.dll\c".

但它不适用于ruby-1.9.1-p429-i386-mswin32.zip,:echo has('ruby')返回0。

当我查看gvim.exe时,它表示dll为msvcrt-ruby19.dll,请注意19.dll而不是191.dll。但我找不到包含该文件的Ruby版本。甚至Ruby 1.9.0也有一个名为msvcrt-ruby190.dll的dll。我尝试重命名dll,但它只会导致另一个错误,即:

LoadError: incompatible library version - 
C:/Program Files/Ruby19/lib/ruby/1.9.1/i386-mingw32/socket.so

在哪里可以找到正确版本的Ruby?或者我可以通过其他方式解决这个问题吗?

1 个答案:

答案 0 :(得分:1)

我接触了没有Vim的Cream开发者,他说:

  

抱歉,仔细查看并用变量值修正了所有这些   调整。请尝试最新版本并确认是否修复了您的版本   问题:

     

http://sourceforge.net/projects/cream/files/Vim/7.3.762/

它似乎有效。虽然出于某种原因,当我尝试使用使用Ruby的vim-foreplay,使用官方安装程序的Ruby 1.9时,这个新版本的Vim with Cream with Ruby 1.9比使用Vim而没有Cream的Ruby 1.8慢得多7.3.289。使用带有最后提到的版本的vim-foreplay是即时的,而其他两个使用eval代码需要1秒,并且设置连接需要2秒。