{"action":"opened","issue":{"url":"https://api.github.com/repos/oneclick/rubyinstaller2/issues/146","repository_url":"https://api.github.com/repos/oneclick/rubyinstaller2","labels_url":"https://api.github.com/repos/oneclick/rubyinstaller2/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/oneclick/rubyinstaller2/issues/146/comments","events_url":"https://api.github.com/repos/oneclick/rubyinstaller2/issues/146/events","html_url":"https://github.com/oneclick/rubyinstaller2/issues/146","id":427150979,"node_id":"MDU6SXNzdWU0MjcxNTA5Nzk=","number":146,"title":"gem install tiny_tds --platform ruby","user":{"login":"vais","id":77592,"node_id":"MDQ6VXNlcjc3NTky","avatar_url":"https://avatars1.githubusercontent.com/u/77592?v=4","gravatar_id":"","url":"https://api.github.com/users/vais","html_url":"https://github.com/vais","followers_url":"https://api.github.com/users/vais/followers","following_url":"https://api.github.com/users/vais/following{/other_user}","gists_url":"https://api.github.com/users/vais/gists{/gist_id}","starred_url":"https://api.github.com/users/vais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vais/subscriptions","organizations_url":"https://api.github.com/users/vais/orgs","repos_url":"https://api.github.com/users/vais/repos","events_url":"https://api.github.com/users/vais/events{/privacy}","received_events_url":"https://api.github.com/users/vais/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-03-29T19:45:23Z","updated_at":"2019-03-29T19:45:23Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"This project is for Ruby version 2.4 and newer.\r\nFor Ruby versions < 2.4 please file an issue [here]( https://github.com/oneclick/rubyinstaller/issues/new ).\r\n\r\n## What problems are you experiencing?\r\nI successfully installed tiny_tds gem with `gem install tiny_tds --platform ruby` and was able to use it, but after moving the installation to another computer that does not have msys64, `require 'tiny_tds'` no longer worked. I have done this with multiple other C extension gems in the past, and this is the first one that has this problem.\r\n\r\nI narrowed down the problem to simply renaming the msys64 directory on my computer. Using the trusty sysinternals process monitor utility I was able to see that ruby is looking for `libsybdb-5.dll` in the ruby `bin` directory. Manually copying `libsybdb-5.dll` from `msys64\\mingw32\\bin` to `utilities\\ruby\\bin` solves the problem.\r\n\r\nI would like to help tiny_tds project resolve this issue, but I don't know where to begin, and I'm posting this issue here because it looks like on the tiny_tds side there is not much expertise with building gems to work with rubyinstaller2 - i.e. their pre-built tiny_tds fat gem installed by default (without `--platform ruby`) does not work at all.\r\n\r\nIs there a way to modify tiny_tds to make it vendor this dll as it does with the rest of freetds? I mean it supposedly statically links freetds into their C extension, but somehow this one dll is left out? Thanks in advance for any pointers...\r\n\r\n## Steps to reproduce\r\n```\r\ngem install tiny_tds --platform ruby\r\nruby -e \"require 'tiny_tds'\" #=> no problem\r\nmove C:\\msys64 C:\\x-msys64\r\nruby -e \"require 'tiny_tds'\"\r\nC:/Ruby/rubyinstaller-2.4.5-1-x86/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': 126: The specified module could not be found.   - C:/Ruby/rubyinstaller-2.4.5-1-x86/lib/ruby/gems/2.4.0/gems/tiny_tds-2.1.2/lib/tiny_tds/tiny_tds.so (LoadError)\r\n        from C:/Ruby/rubyinstaller-2.4.5-1-x86/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'\r\n        from C:/Ruby/rubyinstaller-2.4.5-1-x86/lib/ruby/gems/2.4.0/gems/tiny_tds-2.1.2/lib/tiny_tds.rb:46:in `rescue in block in <top (required)>'\r\n        from C:/Ruby/rubyinstaller-2.4.5-1-x86/lib/ruby/gems/2.4.0/gems/tiny_tds-2.1.2/lib/tiny_tds.rb:43:in `block in <top (required)>'\r\n        from C:/Ruby/rubyinstaller-2.4.5-1-x86/lib/ruby/gems/2.4.0/gems/tiny_tds-2.1.2/lib/tiny_tds.rb:37:in `block in <top (required)>'\r\n        from C:/Ruby/rubyinstaller-2.4.5-1-x86/lib/ruby/gems/2.4.0/gems/tiny_tds-2.1.2/lib/tiny_tds.rb:42:in `<top (required)>'\r\n        from C:/Ruby/rubyinstaller-2.4.5-1-x86/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `require'\r\n        from C:/Ruby/rubyinstaller-2.4.5-1-x86/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `rescue in require'\r\n        from C:/Ruby/rubyinstaller-2.4.5-1-x86/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:39:in `require'\r\n        from -e:1:in `<main>'\r\n```\r\n\r\n## What's the output from `ridk version`?\r\n```\r\n---\r\nruby:\r\n  path: C:/Ruby/rubyinstaller-2.4.5-1-x86\r\n  version: 2.4.5\r\n  platform: i386-mingw32\r\nruby_installer:\r\n  package_version: 2.4.5-1\r\n  git_commit: 16e7aa4\r\nmsys2:\r\n  path: c:\\msys64\r\n  title: MSYS2 64bit\r\n  version: '20161025'\r\ncc: i686-w64-mingw32-gcc (Rev1, Built by MSYS2 project) 7.2.0\r\nsh: GNU bash, version 4.4.12(1)-release (x86_64-pc-msys)\r\nos: Microsoft Windows [Version 10.0.17134.648]\r\n```"}}
{"actor":{"display_login":"vais"}}