-
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
Please prepare tiny_tds gem for Ruby v3.0 on Windows #503
Comments
@aharpervc Since you were so helpful last time, any chance you can assist in getting the right resources to comment on this? Thanks! |
Copying in anyone in the @ preview list (I apologize if you are copied and have no authority in this gem)...we rely on this gem and this is stopping our Ruby 3.0 upgrade. Is there any plans to upgrade compatibility? @metaskills @jeremyevans @ebryn @luislavena |
Add Ruby 3.0 to CI and cross compile list. This also drops any rubies below 2.6 from CI and cross compile since they are now EOL. This is based on the changes in rails-sqlserver#456 to add Ruby 2.7 Closes: rails-sqlserver#503
Devs that committed to this project...could anyone make any comments on this ticket or the proposed PR? @bvogelzang @aharpervc @wpolicarpo @larskanis |
Monthly Check in @metaskills @coderjoe @bvogelzang @aharpervc thanks! |
Since i have no working knowledge of AppVeyor I cannot contribute much to it. But looking at the log error: '/var/cache/pacman/pkg/zstd-1.4.7-1-x86_64.pkg.tar.xz': invalid or corrupted package (PGP signature) It looks like the environment itself has issues. https://help.appveyor.com/discussions/problems/27815-build-failing-due-to-key-error and https://www.msys2.org/news/#2020-06-29-new-packagers |
I figured it out thanks to stackoverflow posts, by looking at the freetds windows zipfile and the installed pacman package. It's probably looking for the include folder headers at C:\Ruby31-x64\msys64\ucrt64\include
I don't know how to fix that in the gem. I however confirmed that this workaround is working with Ruby+Devkit 3.1.2-1 How to make sure bundle install works: |
@Largo Not for me :( $ gem install tiny_tds -- --with-freetds-include=C:\Ruby31-x64\msys64\ucrt64\include\freetds
C:/Ruby31-x64/bin/ruby.exe -I C:/Ruby31-x64/lib/ruby/3.1.0 -r ./siteconf20220526-4204-uuh2f.rb extconf.rb --with-freetds-include=C:Ruby31-x64msys64ucrt64includefreetds
Provided configuration options: To see why this extension failed to compile, please check the mkmf.log which can be found here: C:/Ruby31-x64/lib/ruby/gems/3.1.0/extensions/x64-mingw-ucrt/3.1.0/tiny_tds-2.1.5/mkmf.log extconf failed, exit code 1 Gem files will remain installed in C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/tiny_tds-2.1.5 for inspection. |
Which shell/terminal are you using? with-freetds-include=C:Ruby31-x64msys64ucrt64includefreetds |
When looking at https://rubygems.org/ it looks like ; tiny_tds 2.1.5-x64-mingw32 -> REQUIRED RUBY VERSION: >= 2.4, < 2.8.DEV Does this work at all on ruby 3.x ? @Largo or @ecentell-CPF I'm currently using Chef Infra Client, version 17.9.52 which is using ruby 3.x if I'm not mistaken. Beside the usual install I've also tried the following ;
See below the output when installing normally and with the actions as mentioned above. <OUTPUT 1: Normal without actions mentioned above>
<OUTPUT 2: with steps mentioned above>
|
TL;DR: I installed Ruby+Devkit 3.1.2-1 (x64) but use MINGW64 bash as configured within Visual Studio Code's Terminal:
Looking at extconf.rb the tiny_tds/ext/tiny_tds/extconf.rb Lines 39 to 41 in e3e79a0
With a bit of further fiddling (
|
Can you please explain which *.exe files you mean exactly? I have the problem (Win 11 with Ruby 3.1.3p185), that the build of the gems works fine. Even With |
As per #530 this is working in 3.0 |
Windows 10 Pro 2004
ERROR: Error installing tiny_tds:
tiny_tds-2.1.5-x64-mingw32 requires ruby version < 2.8.dev, >= 2.4, which is
incompatible with the current version, ruby 3.0.2p107
This is using the pre-compiled Windows gem on Rubygems.org
Please advise. Thanks!
The text was updated successfully, but these errors were encountered: