Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which version of Ruby should I use with Vim 7.4 on Windows?

I have Ruby version "1.9.3p362 (2012-12-25) [i386-mingw32]" installed. It has msvcrt-ruby191.dll in the bin directory. Vim 7.3 could use that, at least has('ruby') returned 1. (Some plugins, like LustyJuggler did not work, but I don't know why.) But now with Vim 7.4, it does not work anymore. gvim.exe (in 7.4) references msvcrt-ruby192.dll (note the "192"). But even Ruby 1.9.3 has msvcrt-ruby191.dll in it, as I said.

I tried renaming msvcrt-ruby191.dll to msvcrt-ruby192.dll but that resulted in a LoadError: Incompatible library version.

I'm surprised I was not able to find people having this problem when I tried to look for solutions.

My goal is to get LustyJuggler to work.

like image 661
oskarkv Avatar asked Sep 10 '13 22:09

oskarkv


2 Answers

I read about the issue here http://hynek.me/articles/vim-7-3-on-win32/ and downloaded a version that was compiled for Ruby 2 from http://wyw.dcweb.cn/. Works great.

like image 117
oskarkv Avatar answered Oct 01 '22 10:10

oskarkv


I didn't find any better (or more easy) solution than to edit gvim.exe and replace all references to msvcrt-ruby192.dll to msvcrt-ruby191.dll. Now it works without any issues.

like image 42
Oleg Tsymbalyuk Avatar answered Oct 01 '22 08:10

Oleg Tsymbalyuk