tiny_tds gem installation issue on Rails 5

905 Views Asked by At

I have tried to install gem tiny_tds on Rails 5, but not able to install. I have googled it and tried all the solution. But there is no solution. Can you please suggest me to install it. Below are the solutions I have tried,

Rails 4: Error when installing tiny_tds gem?

sudo apt-get install freetds-dev

3

There are 3 best solutions below

0
On

tiny_tds gem can be easily installed from terminal using following command:

$ gem install tiny_tds

If any other issue you are facing with tiny_tds gem you can refer the documentation of gem: https://github.com/rails-sqlserver/tiny_tds

0
On

Debian 10
Rails: 5.2
Ruby 2.5

How to Install FreeTDS:

Use the Terminal with Root or Sudo permissions to run the following commands:

wget ftp://ftp.freetds.org/pub/freetds/stable/freetds-1.00.27.tar.gz
tar -xzf freetds-1.00.27.tar.gz
cd freetds-1.00.27
./configure --prefix=/usr/local --with-tdsver=7.3
make
sudo make install
cd ..
gem install tiny_tds

This should get you started.

0
On

Make sure you have freetds library installed in case of MacOS

brew install freetds