- xml - AJAX/Jquery XML 解析
- 具有多重继承的 XML 模式
- .net - 枚举序列化 Json 与 XML
- XML 简单类型、简单内容、复杂类型、复杂内容
我正在使用 mac os,我想使用 ruby 驱动程序连接到 sql server。我想使用 tiny_tds,但它给出了缺少 free_tds 的错误,但它已经安装了。怎么能过这个?
~ brew install freetds
Warning: freetds-0.91.112 already installed
~ sudo gem install tiny_tds
Building native extensions. This could take a while...
ERROR: Error installing tiny_tds:
ERROR: Failed to build gem native extension.
完整日志如下:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -r ./siteconf20151013-22489-7z3h0n.rb extconf.rb
checking for sybfront.h... yes
checking for sybdb.h... yes
checking for tdsdbopen() in -lsybdb... no
Extracting freetds-0.91.112.tar.gz into tmp/x86_64-apple-darwin14/ports/freetds/0.91... OK
Running git apply with /Library/Ruby/Gems/2.0.0/gems/tiny_tds-0.7.0/ports/patches/freetds/0.91/Makefile.in.diff...
Running 'patch' for freetds 0.91... OK
Running git apply with /Library/Ruby/Gems/2.0.0/gems/tiny_tds-0.7.0/ports/patches/freetds/0.91/dblib-30-char-username.diff...
Running 'patch' for freetds 0.91... OK
Running 'configure' for freetds 0.91... OK
Running 'compile' for freetds 0.91... OK
Running 'install' for freetds 0.91... OK
Activating freetds 0.91 (from /Library/Ruby/Gems/2.0.0/gems/tiny_tds-0.7.0/ports/x86_64-apple-darwin14)...
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.
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=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
--help
--enable-lookup
--disable-lookup
--with-freetds-dir
--without-freetds-dir
--with-freetds-include
--without-freetds-include=${freetds-dir}/include
--with-freetds-lib
--without-freetds-lib=${freetds-dir}/
--with-sybdblib
--without-sybdblib
--enable-system-freetds
--disable-system-freetds
--enable-system-iconv
--disable-system-iconv
--enable-system-openssl
--disable-system-openssl
--with-freetds-dir
--without-freetds-dir
--with-freetds-include
--without-freetds-include=${freetds-dir}/include
--with-freetds-lib
--without-freetds-lib=${freetds-dir}/
--with-sybdblib
--without-sybdblib
extconf failed, exit code 1
最佳答案
这是为我修复的:
brew install freetds
sudo ARCHFLAGS="-arch x86_64" gem install tiny_tds
关于ruby - 安装 tiny_tds 在 mac os 10.10.5 上出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33102569/
首先声明我不是 Ruby 开发人员。我只是想在 Windows x64 上安装 Redmine。我在这里发现了类似的问题,我稍后会链接到。但由于我不是 Ruby 开发人员,所以我不理解答案,也无法将它
今天,tiny_tds 突然不接受多个execute 并返回: C:\>ruby test_use.rb one two C:/test_use.rb:15:in `execute': Attempt
这与此类似 question .然而,answer发布在那个问题上,对我不起作用。我已经在我的 Mac 上安装了 freetds。我在 GemFile 中指定了以下内容。 gem 'tiny_tds'
我正在尝试设置一个新的 mac,但一直无法编译 tiny_tds。我正在运行 OSX Mojave (10.14.6) 并通过 asdf 安装了 ruby 2.4.5。当我尝试捆绑时,安装 tin
在这里,我试图从 MS-SQL Server 2008 获取数据到我在 Ubuntu 10 上的 Rails 应用程序。但是我无法安装 tiny_tds。我按照 github 上给出的步骤进行操作。但
这个问题让我找到了 this question . 我希望能解决我的问题,那里的几个答案详细说明了一些可以帮助安装的配置参数。这些路径不太适合我,所以我修改了它们并最终得到了这个: gem insta
当我运行时: gem install tiny_tds 输出告诉我需要安装 FreeTDS。接下来,它向我展示了一些配置选项,我可能需要一个选项。选项如下: --with-opt-dir
在数据导入脚本中: client = TinyTds.Client.new(...) insert_str = "INSERT INTO [...] (...) VALUE (...)" cli
错误 $ sudo gem install tiny_tds Building native extensions. This could take a while... ERROR: Error i
关闭。 这个问题不符合 Stack Overflow guidelines 。它目前不接受答案。 这个问题似乎与 a specific programming problem, a softwar
require "rubygems" require "tiny_tds" client = TinyTds::Client.new(:username => 'sa', :password => '
我使用 Ruby v2 和 Rails v4 开发了一个 Rails Web 项目。它在我当前的系统中运行良好,当我尝试在另一台 Linux 机器 (Ubuntu 12.4) 中运行该项目时,出现 T
互联网,我不知道该做什么。升级到 Yosemite 后我无法安装 tiny_tds $ gem install tiny_tds Building native extensions. This c
我正在使用 mac os,我想使用 ruby 驱动程序连接到 sql server。我想使用 tiny_tds,但它给出了缺少 free_tds 的错误,但它已经安装了。怎么能过这个? ~ bre
我们试图让 rails 与 Azure 上的 sqlserver 数据库对话,我们使用 openssl 和 libiconv 安装 freeTDS: ./configure --prefix=/usr
我一直在尝试在 OSX 10.6 的 Macbook 上安装 TinyTDS gem。我成功安装了免费 TDS - 通过以下方式确认它可以正常工作: tsql -H SERVER -p 1433 -U
我正在尝试弄清楚如何从数据库中提取数据,而无需在每个 ruby 文件的顶部放置连接字符串。 我正在通过我正在组装的一个 Sinatra 小应用程序学习 ruby 的基础知识,该应用程序可以从
我的问题 我可以采取哪些万无一失的步骤来 100% 使它正常工作?我需要真正的指导,而不是简单的答案或对过程的模糊概念描述。 让我们深入了解一下。似乎某处存在冲突,并且我在 GitHub 上得到了 g
我是一名优秀的程序员,十分优秀!