我在用着:
- 亚马逊 Linux - 2012.09
- RVM v1.19.1
- Ruby ruby-1.9.3-p362(通过 RVM)
- 系统红宝石 1.8.7
- Thrift v0.7.0(我知道有一个更新的版本删除了 C 依赖,但是,我有一个需要 v0.7.0 的依赖)
我正在运行以下命令,它会愉快地安装 gems,直到在节俭时崩溃:
/usr/local/rvm/bin/rvm ruby-1.9.3-p362 exec bundle install
这会产生错误:
Installing thrift (0.7.0)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-1.9.3-p362/bin/ruby extconf.rb
checking for strlcpy() in string.h... no
creating Makefile
make
compiling compact_protocol.c
compiling struct.c
struct.c:28:1: error: static declaration of ‘strlcpy’ follows non-static declaration
/usr/local/rvm/rubies/ruby-1.9.3-p362/include/ruby-1.9.1/ruby/missing.h:198:20: note: previous declaration of ‘strlcpy’ was here
make: *** [struct.o] Error 1
我可以看到很多关于这个主题的讨论,但是,没有真正的解决方案 - 任何帮助将不胜感激。
谢谢