我一直在尝试使用OSX 10.6在Macbook上安装TinyTDS gem.我成功安装了免费TDS - 确认它的工作原理是:
tsql -H SERVER -p 1433 -U username.
Run Code Online (Sandbox Code Playgroud)
我从gem install tiny_tds得到的错误是:
Building native extensions. This could take a while...
ERROR: Error installing tiny_tds:
ERROR: Failed to build gem native extension.
/Users/jason/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
checking for iconv_open() in iconv.h... no
checking for iconv_open() in -liconv... yes
checking for sybfront.h... yes
checking for sybdb.h... yes
checking for tdsdbopen() in -lsybdb... no
-----
freetds is missing.
-----
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Run Code Online (Sandbox Code Playgroud)
我已经尝试过指定TDS lib并且包含dirs(/ usr/local/lib和/ usr/local/include)而没有运气.我已尝试从源手动以及通过自制软件重新安装FreeTDS,但这没有任何区别.
我已经看到了一些类似的问题,但它们似乎引用了一个定位iconv库的问题,我似乎已经超越了它.
我可能忽略了任何建议或参考?提前致谢.
解决了Ubuntu 14.04上的同样问题:
sudo apt-get install freetds-dev
gem install tiny_tds
Run Code Online (Sandbox Code Playgroud)
日志输出:
Building native extensions. This could take a while...
/home/david/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/ext/builder.rb:73: warning: Insecure world writable dir /mnt/datapart/david in PATH, mode 040777
Successfully installed tiny_tds-0.6.1
Parsing documentation for tiny_tds-0.6.1
Installing ri documentation for tiny_tds-0.6.1
Done installing documentation for tiny_tds after 0 seconds
1 gem installed
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
2567 次 |
最近记录: |