小编wan*_*eur的帖子

Homebrew/TinyTDS/FreeTDS捆绑错误

我用homebrew(linux端口)来安装freeTDS,我正在尝试使用gem tinytds部署/捆绑安装我的应用程序.在进行bundle安装时我得到了这个错误输出

Installing tiny_tds (0.5.1) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /home/deployer/.rbenv/versions/1.9.2-p290/bin/ruby extconf.rb 

/usr/bin/ld: /opt/homebrew/lib/libsybdb.a(dblib.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC

/opt/homebrew/lib/libsybdb.a: could not read symbols: Bad value
Run Code Online (Sandbox Code Playgroud)

非常类似于此修复程序,但我没有在我的文件夹中引用的文件:https://stackoverflow.com/a/7119224/1130736

自制lib文件夹的内容:

/opt/homebrew/lib$ ls
libct.a  libsybdb.a
Run Code Online (Sandbox Code Playgroud)

完全错误转储:

full error dump:

Installing tiny_tds (0.5.1) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /home/deployer/.rbenv/versions/1.9.2-p290/bin/ruby extconf.rb 
checking for iconv_open() in iconv.h... yes
checking for …
Run Code Online (Sandbox Code Playgroud)

homebrew activerecord freetds tiny-tds

6
推荐指数
2
解决办法
3657
查看次数

标签 统计

activerecord ×1

freetds ×1

homebrew ×1

tiny-tds ×1