rails-sqlserver / tiny_tds

TinyTDS - Simple and fast FreeTDS bindings for Ruby using DB-Library.
Other
607 stars 189 forks source link

Working only with Ruby < 2.6 #458

Closed lflucasferreira closed 3 years ago

lflucasferreira commented 4 years ago

I don't know if this project is still under development, but I believe it could be updated in order to work with to the stable version, I mean 2.6.4.

$ gem install tiny_tds Fetching tiny_tds-2.1.2-x64-mingw32.gem ERROR: Error installing tiny_tds: The last version of tiny_tds (>= 0) to support your Ruby & RubyGems was 2.1.2. Try installing it with gem install tiny_tds -v 2.1.2 tiny_tds requires Ruby version >= 2.0, < 2.6. The current ruby version is 2.6.4.104.

aharpervc commented 4 years ago

Dupe of https://github.com/rails-sqlserver/tiny_tds/issues/434, being worked on here https://github.com/rails-sqlserver/tiny_tds/pull/456

cshtdd commented 4 years ago

I got tiny_tds working with ruby 2.6.5 on MacOS and CentOS7

I followed the steps described here

https://stackoverflow.com/questions/7525109/ror-unable-to-install-tiny-tds

It seems like there's a dependency on the freetds package

Castone22 commented 4 years ago

This only mostly applies to windows, since the gem tries to distribute tiny tds binaries when it's building on mingw based systems. On unix flavors it seems to work fine in 2.6+ as long as the freetds library is available, though the version of the gem that installs is version 2.0.0, which is a tad outdated, be advised. @cshtdd

aharpervc commented 4 years ago

I have pushed 2.1.3-pre to rubygems for testing. Interested parties should install it & verify it works in ruby 2.6 with their app

aharpervc commented 3 years ago

2.1.3 has now been released