rails-sqlserver / tiny_tds

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

[URGENT] An error occurred while installing tiny_tds (2.1.7), and Bundler cannot continue in Ruby-3.2.1 #555

Closed sdey-mdsol closed 5 months ago

sdey-mdsol commented 5 months ago

Hi Team I am trying to install tiny_tds (2.1.7) with Ruby-3.2.1 but its getting failed: An error occurred while installing tiny_tds (2.1.7), and Bundler cannot continue. Even trying to install separately its getting below error: gem install tiny_tds Building native extensions. This could take a while... ERROR: Error installing tiny_tds: ERROR: Failed to build gem native extension.

current directory: /.rvm/gems/ruby-3.2.1/gems/tiny_tds-2.1.7/ext/tiny_tds

/.rvm/rubies/ruby-3.2.1/bin/ruby -I /.rvm/rubies/ruby-3.2.1/lib/ruby/3.2.0 extconf.rb looking for freetds headers in the following directories:

Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/.rvm/rubies/ruby-3.2.1/bin/$(RUBY_BASE_NAME) --help --with-freetds-dir --without-freetds-dir --with-freetds-include --without-freetds-include=${freetds-dir}/include --with-freetds-lib --without-freetds-lib=${freetds-dir}/lib --with-sybdb-dir --without-sybdb-dir --with-sybdb-include --without-sybdb-include=${sybdb-dir}/include --with-sybdb-lib --without-sybdb-lib=${sybdb-dir}/lib --with-sybdblib --without-sybdblib --with-sybdblib --without-sybdblib

To see why this extension failed to compile, please check the mkmf.log which can be found here:

/.rvm/gems/ruby-3.2.1/extensions/x86_64-darwin-22/3.2.0/tiny_tds-2.1.7/mkmf.log

extconf failed, exit code 1

Its blocking in Production env for Ruby-3.2.1 up-gradation, please check.

andyundso commented 5 months ago

the error message states quite clearly what you need to do to fix this error:

Failed! Do you have FreeTDS 0.95.80 or higher installed?

since it appears that you are on Mac, you can get it from homebrew: brew install freetds.