These are chat archives for rails-sqlserver/activerecord-sqlserver-adapter

15th
Mar 2018
Dov s
@Dohv
Mar 15 2018 15:14
Hi, I am a beginner programmer and new to ruby on rails. I am trying to deploy a ruby on rails app with sql server using tiny_tds. It works locally using an azure sql server db but I am unable to deploy to an azure web app with tiny_tds. It seems as though the freetds library needs to be on the azure web app before installing the tiny_tds gem. This is the error I get when I push to azure: remote: Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
remote:
remote: current directory: /tmp/bundle/gems/tiny_tds-2.1.1/ext/tiny_tds
remote: /usr/local/.rbenv/versions/2.3.3/bin/ruby -r ./siteconf20180314-3087-2d24bj.rb
remote: extconf.rb
remote: checking for sybfront.h... yes
remote: checking for sybdb.h... yes
remote: checking for tdsdbopen() in -lsybdb... yes
remote: checking for dbanydatecrack() in -lsybdb... no
remote: Failed! Do you have FreeTDS 0.95.80 or higher installed?
remote: extconf.rb failed
remote: Could not create Makefile due to some reason, probably lack of necessary
remote: libraries and/or headers. Check the mkmf.log file for more details. You may
remote: need configuration options.
remote:
remote: Provided configuration options:
remote: --with-opt-dir
remote: --without-opt-dir
remote: --with-opt-include
remote: --without-opt-include=${opt-dir}/include
remote: --with-opt-lib
remote: --without-opt-lib=${opt-dir}/lib
remote: --with-make-prog
remote: --without-make-prog
remote: --srcdir=.
remote: --curdir
remote: --ruby=/usr/local/.rbenv/versions/2.3.3/bin/$(RUBY_BASE_NAME)
remote: --help
remote: --with-freetds-dir
remote: --without-freetds-dir
remote: --with-freetds-include
remote: --without-freetds-include=${freetds-dir}/include
remote: --with-freetds-lib
remote: --without-freetds-lib=${freetds-dir}/lib
remote: --with-freetds-dir
remote: --without-freetds-dir
remote: --with-freetds-include
remote: --without-freetds-include=${freetds-dir}/include
remote: --with-freetds-lib
remote: --without-freetds-lib=${freetds-dir}/lib
remote: --with-sybdblib
remote: --without-sybdblib
remote: --with-sybdblib
remote: --without-sybdblib
remote:
remote: To see why this extension failed to compile, please check the mkmf.log which can
remote: be found here:
remote:
remote: /tmp/bundle/extensions/x86_64-linux/2.3.0-static/tiny_tds-2.1.1/mkmf.log
remote:
remote: extconf failed, exit code 1
remote:
remote: Gem files will remain installed in /tmp/bundle/gems/tiny_tds-2.1.1 for
remote: inspection.
remote: Results logged to
remote: /tmp/bundle/extensions/x86_64-linux/2.3.0-static/tiny_tds-2.1.1/gem_make.out
remote:
remote: An error occurred while installing tiny_tds (2.1.1), and Bundler cannot
remote: continue.
remote: Make sure that gem install tiny_tds -v '2.1.1' succeeds before bundling.
remote: An error has occurred during web site deployment.
remote: bundler failed