gpt4 book ai didi

gem - 无法 `gem install tiny_tds` OS X Mavericks

转载 作者:行者123 更新时间:2023-12-03 18:11:58 30 4
gpt4 key购买 nike

错误

$ 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 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



家酿
上面的错误即使在

$ brew install freetds



手动安装

$ tar zxf freetds-stable.tgz

$ cd freetds-0.91

$ ./configure

$ make

$ sudo make install



/usr/local/lib/ 中似乎缺少以下文件:
  • libsybdb.so

  • 相反,我有以下文件:
  • libsybdb.a
  • libsybdb.dylib
  • libsybdb.la

  • 研究
  • https://github.com/Homebrew/homebrew/issues/24550
  • ROR + Unable to install tiny_tds
  • 最佳答案

    我通过明确指定 64 位架构解决了这个问题:

    $ brew install freetds
    $ sudo ARCHFLAGS="-arch x86_64" gem install tiny_tds

    原因是在gem构建过程中,mkmf会尝试寻找32位版本的freetds,该版本不可用。 mkmf.log 中的错误信息说过:
    ld: warning: ignoring file /usr/local/lib/libsybdb.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib/libsybdb.dylib
    Undefined symbols for architecture i386:
    "_tdsdbopen", referenced from:
    _t in conftest-a13287.o
    ld: symbol(s) not found for architecture i386

    关于gem - 无法 `gem install tiny_tds` OS X Mavericks,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24394476/

    30 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com