首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用自制mac错误安装msgpack (0.5.8)

使用自制mac错误安装msgpack (0.5.8)
EN

Stack Overflow用户
提问于 2017-08-01 16:30:03
回答 1查看 1.3K关注 0票数 2

我一直试图使用自制安装msgpack,它多次抛出以下错误:

代码语言:javascript
复制
Building native extensions.  This could take a while...
ERROR:  Error installing msgpack:
ERROR: Failed to build gem native extension.

current directory: /usr/local/lib/ruby/gems/2.4.0/gems/msgpack 
0.5.8/ext/msgpack
/usr/local/opt/ruby/bin/ruby -r ./siteconf20170801-23901-1ar0ojr.rb extconf.rb
checking for ruby/st.h... yes
checking for st.h... yes
checking for rb_str_replace() in ruby.h... yes
creating Makefile

current directory: /usr/local/lib/ruby/gems/2.4.0/gems/msgpack-
0.5.8/ext/msgpack
make "DESTDIR=" clean

current directory: /usr/local/lib/ruby/gems/2.4.0/gems/msgpack-
0.5.8/ext/msgpack
make "DESTDIR="
compiling buffer.c
compiling buffer_class.c
compiling core_ext.c
core_ext.c:121:22: error: use of undeclared identifier 'rb_cFixnum'
rb_define_method(rb_cFixnum, "to_msgpack", Fixnum_to_msgpack, -1);
                 ^
core_ext.c:122:22: error: use of undeclared identifier 'rb_cBignum'
rb_define_method(rb_cBignum, "to_msgpack", Bignum_to_msgpack, -1);
                 ^
2 errors generated.
make: *** [core_ext.o] Error 1

make failed, exit code 2

Gem files will remain installed in 
/usr/local/lib/ruby/gems/2.4.0/gems/msgpack-0.5.8 for inspection.
Results logged to /usr/local/lib/ruby/gems/2.4.0/extensions/x86_64-darwin-
16/2.4.0/msgpack-0.5.8/gem_make.out

寻求解决这一问题的办法毫无成果。我的Ruby版本是2.4.1,但我不确定它是否是版本问题。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-08-01 16:52:33

我在Github中的msgpack存储库中发现了这个问题:

https://github.com/msgpack/msgpack-ruby/issues/120

看起来这个问题在1.0.0版本中已经解决了。

您真的需要使用0.5.8版本吗?是否有可能更新创业板版本?

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45443135

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档