Wednesday, January 22, 2020

ruby msvcrt-ruby270.dll

Hi,

Under windows 10, 
Gvim.8.2 1-140 patches 32-bit GUI version
FLAGS=RUBY=C:/Ruby27 DYNAMIC_RUBY=yes RUBY_VER=27 RUBY_API_VER_LONG=2.7.0 WINVER=0x600
make -f Make_ming.mak ${FLAGS} DEBUG=no


According to the steps below, giving msvcrt-ruby270.dll path to &rtp and &path, 
I don't understand why Gvim tries again to find msvcrt-ruby270.dll in $VIMRUNTIME path and fails.


Trying to get ruby 2.7 dynamically :ruby p 'hell' returns 
E370: Could not load library D:ogiciels/Vim/vim82/
Nota: downloaded dll is win32.




Step 1/ According to the help
MS-Windows ~
You need to install the right version of Ruby for this to work.  You can find
the package to download from:
http://rubyinstaller.org/downloads/
Currently that is rubyinstaller-2.2.5.exe
To use the Ruby interface the Ruby DLL must be in your search path.  In a
console window type "path" to see what directories are used.  The 'rubydll'
option can be also used to specify the Ruby DLL.
The name of the DLL must match the Ruby version Vim was compiled with.
Currently the name is "msvcrt-ruby220.dll".  That is for Ruby 2.2.X.  To know
for sure edit "gvim.exe" and search for "ruby\d*.dll\c". <=OK -DDYNAMIC_RUBY_DLL="msvcrt-ruby270.dll"
If you want to build Vim with RubyInstaller 1.9 or 2.X using MSVC, you need
some tricks.  See the src/INSTALLpc.txt for detail.
If Vim is built with RubyInstaller 2.4 or later, you may also need to add
"C:\Ruby<version>\bin\ruby_builtin_dlls" to the PATH environment variable. 


Step 2/ According to that lines in _vimrc:
   " Ruby
  if isdirectory(expand('$vim/extensions/ruby'))
let &rtp.=','.expand('$vim/extensions/ruby')
let &path.=','.expand('$vim/extensions/ruby')
  endif
  if isdirectory(expand('$vim/extensions/ruby/ruby_builtin_dlls'))
let &rtp.=','.expand('$vim/extensions/ruby/ruby_builtin_dlls')
let &path.=','.expand('$vim/extensions/ruby/ruby_builtin_dlls')
  endif

  " Ruby 2.7
  set rubydll=msvcrt-ruby270.dll



Step 3/ According to the return of let dlls=globpath(&rtp, "*.dll")

D:/Logiciels/Vim/vim82/7za.dll
D:/Logiciels/Vim/vim82/gvimext.dll
D:/Logiciels/Vim/vim82/libgcc_s_dw2-1.dll
D:/Logiciels/Vim/vim82/libgmp-10.dll
D:/Logiciels/Vim/vim82/libiconv-2.dll
D:/Logiciels/Vim/vim82/libstdc++-6.dll
D:/Logiciels/Vim/vim82/libwinpthread-1.dll
D:/Logiciels/Vim/vim82/ucrtbase.dll
D:/Logiciels/Vim/vim82/winpty.dll
D:/Logiciels/Vim/extensions/ruby/msvcrt-ruby270.dll
D:/Logiciels/Vim/extensions/ruby/ruby_builtin_dlls/libcrypto-1_1.dll
D:/Logiciels/Vim/extensions/ruby/ruby_builtin_dlls/libffi-6.dll
D:/Logiciels/Vim/extensions/ruby/ruby_builtin_dlls/libgcc_s_dw2-1.dll
D:/Logiciels/Vim/extensions/ruby/ruby_builtin_dlls/libgdbm-6.dll
D:/Logiciels/Vim/extensions/ruby/ruby_builtin_dlls/libgdbm_compat-4.dll
D:/Logiciels/Vim/extensions/ruby/ruby_builtin_dlls/libgmp-10.dll
D:/Logiciels/Vim/extensions/ruby/ruby_builtin_dlls/libiconv-2.dll
D:/Logiciels/Vim/extensions/ruby/ruby_builtin_dlls/libintl-8.dll
D:/Logiciels/Vim/extensions/ruby/ruby_builtin_dlls/libssl-1_1.dll
D:/Logiciels/Vim/extensions/ruby/ruby_builtin_dlls/libssp-0.dll
D:/Logiciels/Vim/extensions/ruby/ruby_builtin_dlls/libwinpthread-1.dll
D:/Logiciels/Vim/extensions/ruby/ruby_builtin_dlls/libyaml-0-2.dll
D:/Logiciels/Vim/extensions/ruby/ruby_builtin_dlls/zlib1.dll





--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/34bd85cb-e45a-4cff-9877-d073a77859db%40googlegroups.com.

No comments: