-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.13.pre doesn't load on win10 #465
Comments
Hm, I can't reproduce.
Can you try running this script (copy/paste to something like require 'tiny_tds'
puts TinyTds::VERSION
c = TinyTds::Client.new({
host: 'localhost',
username: 'replace_with_yours',
password: 'replace_with_yours',
timeout: 5,
login_timeout: 5,
})
connected_servername = c.execute("select @@servername servername, db_name() db_name").to_a
puts connected_servername |
FWIW: win10, git-for-windows 2.26.0, ruby+devkit 2.7.1-1-x64
tested using SSPI and explicit username/password. Interestingly I have had problems installing rake with bundler, had to use |
Using irb I have the following results: X:>irb I realize that it is trying to load some dlls. Should those dlls be in I tried loading both dlls with regsvr32 and got the error "The specified module could not be found". Are these dlls trying to load something else? |
I am also unable to repro as my project successfully runs and connects to the database, here are my specifics: Win 10 Pro Build 1903 Also FWIW @a30004475 I had that same issue until I ran the following command at an elevated prompt |
I'm also unable to repro as my test with scratch.rb work fine. ruby scratch.rb And I did not need to run gem update |
I just spent some time revisiting this issues. I uninstalled ruby and installed 2.6.3 32bit. Install tiny_tds 2.1.3.pre. This resulted in me getting the same error as before with unable to load ting_tds.so. I have ruby 2.6.3 64bit install and have no problems running. |
Since you are mentioning bit versions FWIW I am using: Had to download a weekly build version of the toolkit because I ran into an issue keeping MSYS up to date error here msys2/MSYS2-packages#1298 downloaded at https://www.msys2.org/ at the top of the page. |
Hm, maybe it's only an issue with 32bit? @mfancy-mm can you run Also, what is the contents of your this folder: |
@mfancy-mm If you have a moment can you provide any updated information requested? |
Sorry for the delay getting back to you. Here is the info requested. gem environment
gem info tiny_tds *** LOCAL GEMS *** tiny_tds (2.1.3.pre)
dir c:\Ruby26\lib\ruby\gems\2.6.0\gems\tiny_tds-2.1.3.pre-x86-mingw32\lib\tiny_tds\2.6 Directory of c:\Ruby26\lib\ruby\gems\2.6.0\gems\tiny_tds-2.1.3.pre-x86-mingw32\lib\tiny_tds\2.6 06/08/2020 11:05 AM .06/08/2020 11:05 AM .. 06/08/2020 11:05 AM 31,232 tiny_tds.so 1 File(s) 31,232 bytes |
Can you provide an update for next steps @aharpervc ? |
The next steps are for someone to figure out why 2.1.3.pre doesn't seem to load with 32bit ruby 2.6. I myself don't know why this is happening. I think this is a blocker for publishing the final release, because if we publish a broken release that will create a lot of pain for people, which I think we'd all prefer to avoid. We're all open to ideas! One thing I thought of is if someone with this environment can build their own copy of the gem and it works, then maybe we can compare it to the current gem and see what's up. |
This looks to be a problem with the
|
@mfancy-mm can you provide an update? Thanks! |
I agree its the freetds installation. It appears my msys2 is messed up. Any thoughts? ridk.cmd exec pacman -S mingw-w64-i686-freetds |
I ran into this same issue recently and is documented at https://www.msys2.org/news/#2020-06-29-new-packagers |
This is fighting my every inch off they way. ridk.cmd exec pacman -S mingw-w64-i686-freetds Packages (6) mingw-w64-i686-ca-certificates-20190110-1 mingw-w64-i686-libffi-3.3-1 mingw-w64-i686-libtasn1-4.16.0-1 mingw-w64-i686-openssl-1.1.1.g-1 mingw-w64-i686-p11-kit-0.23.20-2 mingw-w64-i686-freetds-1.1.42-1 Total Installed Size: 89.74 MiB :: Proceed with installation? [Y/n] y |
Looks to me you have a corrupt package download in the cache. Try removing the package and retrying the above steps. As a last resort you can also clear all the pacman cache by issuing a # pacman -Scc You could also try a newer installation package at https://www.msys2.org/wiki/MSYS2-installation/ |
Finally got tiny_tds working in 2.6.3 32 bit version. Once freetds was installed everything just started to work. I had to go thought some hoops to get freetds installed. This now leaves me with the question is there a bug in tiny_tds 32 bit version? |
I don't believe so, but perhaps @aharpervc can give the specifics? |
Does that mean your original question is resolved? Can you run the scratch script I posted above? Does it work without error? #465 (comment) If that works, then I think that means that 2.1.3.pre is fine, and this issue no longer blocks it's release, and we can get that final version published. |
@mfancy-mm can you provide an update? Thanks! |
The day I got this working was on a new system. My steps were
Thus on a clean system installing tiny_tds for the first time doesn't install freetds correctly. I did have issue install freetds manual due to VPNs, firewalls. Maybe tiny_tds ran into the same issue. Then again my old system installed 64 bit with out an issue. |
Looks like this issue is closed and we can proceed to push a release version of 2.1.3? |
I think so, yes... I'll try to look into it this or next week unless someone else cuts the release first |
Closing this, since it looks like it wasn't an issue with tiny_tds itself |
I on Windows 10 running ruby 2.6.3p62 (2019-04-16 revision 67580) [i386-mingw32]
I have tiny_tds (2.1.3.pre x86-mingw32) installed
When I try to execute me code I get
C:/Ruby26/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': 126: The specified module could not be found. - C:/Ruby26/lib/ruby/gems/2.6.0/gems/tiny_tds-2.1.3.pre-x86-mingw32/lib/tiny_tds/2.6/tiny_tds.so (LoadError)
C:/Ruby26/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- tiny_tds/tiny_tds (LoadError)
I would have expected this to work.
The text was updated successfully, but these errors were encountered: