Hi @jariza, thanks for the response.
Hate to say it, but this doesn't seem to resolve the issue for tiny_tds version 0.7.0.
If I follow your instructions (after apt-get install freetds-bin freetds-dev), tiny_tds still attempts to compile it's own freetds version and fails with
undefined reference to 'libiconv'.
If I use
gem install tiny_tds -v '0.7.0' -- --enable-system-freetds it can't detect the system FreeTDS (maybe because the Bitnami Rubystack paths are interfering?).
If I use the flag --disable-system-iconv, to force tiny_tds to compile it's own iconv BEFORE compiling it's own FreeTDS, the iconv compile fails with:
In file included from progname.c:26:0:
./stdio.h:1010:1: error: ‘gets’ undeclared here (not in a function)
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
If I go to a clean Ubuntu install, install RVM and Ruby 2.0, then do the following:
sudo apt-get install build-essential patch freetds-bin freetds-dev
gem install tiny-tds -v '0.7.0'
It all just works and everything is happy.
Should I be trying to override the PATH system variable to force tiny_tds to use the system freetds install? Anything else you can think of?