can't install latest ruby 64bit 2.4.2-2-x64.exe to windows 7

295 views
Skip to first unread message

Robert Phillips

unread,
Sep 22, 2017, 7:47:31 AM9/22/17
to RubyInstaller
Hi


Downloaded rubyinstaller-2.4.2-2-x64.exe

It extracted lots of files to   C:\Ruby24-x64

And it asked me to run   ridk install

I click finish

I go to my start menu and click a folder that says ruby 2.4.1-2 folder,  (which I suppose the 2.4.2-2 installer created), and I open the shortcut  "start command prompt with ruby"

I try typing ruby  test1.rb<ENTER>  or just ruby<ENTER> 

And I get this error 

C:\Ruby24-x64\bin>ruby
C:/Ruby24-x64/lib/ruby/site_ruby/2.4.0/ruby_installer/runtime/dll_directory.rb:8
3:in `add_dll_directory_winapi': AddDllDirectory failed for C:/msys64/mingw64/bi
n (RubyInstaller::Runtime::DllDirectory::WinApiError)
        from C:/Ruby24-x64/lib/ruby/site_ruby/2.4.0/ruby_installer/runtime/dll_d
irectory.rb:50:in `initialize'
        from C:/Ruby24-x64/lib/ruby/site_ruby/2.4.0/ruby_installer/runtime/msys2
_installation.rb:93:in `new'
        from C:/Ruby24-x64/lib/ruby/site_ruby/2.4.0/ruby_installer/runtime/msys2
_installation.rb:93:in `enable_dll_search_paths'
        from C:/Ruby24-x64/lib/ruby/site_ruby/2.4.0/ruby_installer/runtime/singl
eton.rb:27:in `enable_dll_search_paths'
        from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/defaults/operating_system.rb:
3:in `<top (required)>'
        from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems.rb:1346:in `require'
        from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems.rb:1346:in `<top (required)>'

        from <internal:gem_prelude>:4:in `require'
        from <internal:gem_prelude>:4:in `<internal:gem_prelude>'

C:\Ruby24-x64\bin>


I then try  ridk install and I get the same error

C:\Ruby24-x64\bin>ridk install
C:/Ruby24-x64/lib/ruby/site_ruby/2.4.0/ruby_installer/runtime/dll_directory.rb:8
3:in `add_dll_directory_winapi': AddDllDirectory failed for C:/msys64/mingw64/bi
n (RubyInstaller::Runtime::DllDirectory::WinApiError)
        from C:/Ruby24-x64/lib/ruby/site_ruby/2.4.0/ruby_installer/runtime/dll_d
irectory.rb:50:in `initialize'
        from C:/Ruby24-x64/lib/ruby/site_ruby/2.4.0/ruby_installer/runtime/msys2
_installation.rb:93:in `new'
        from C:/Ruby24-x64/lib/ruby/site_ruby/2.4.0/ruby_installer/runtime/msys2
_installation.rb:93:in `enable_dll_search_paths'
        from C:/Ruby24-x64/lib/ruby/site_ruby/2.4.0/ruby_installer/runtime/singl
eton.rb:27:in `enable_dll_search_paths'
        from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/defaults/operating_system.rb:
3:in `<top (required)>'
        from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems.rb:1346:in `require'
        from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems.rb:1346:in `<top (required)>'

        from <internal:gem_prelude>:4:in `require'
        from <internal:gem_prelude>:4:in `<internal:gem_prelude>'

C:\Ruby24-x64\bin>

I then try to run ridk install, from an administrative command prompt, same issue.


Lars Kanis

unread,
Sep 22, 2017, 8:39:15 AM9/22/17
to rubyin...@googlegroups.com
This most probably means that the directory "C:/msys64/mingw64/bin" is not available. This directory should be created as part of the MSYS2 installation. Maybe there is something wrong with it?
You should be able to work around this issue by running

md "C:/msys64/mingw64/bin"

on the command prompt.

--
Regards, Lars

Robert Phillips

unread,
Dec 29, 2017, 12:30:58 AM12/29/17
to RubyInstaller
Thanks..  I made and put msys/ming in that directory (I already had msys/ming installed just not there before), and it worked. 

 
Reply all
Reply to author
Forward
0 new messages