[版本信息]
ruby 2.4.0p0(2016-12-24修订版57164)[x86_64-linux]/gem 2.0.3/Windows 10
我跑了bundle install,它告诉我跑gem install json -v '1.8.3'
我这样做了,并且无法构建gem原生扩展错误.
Building native extensions. This could take a while...
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
/home/ec2-user/.rvm/rubies/ruby-2.4.0/bin/ruby extconf.rb
creating Makefile
make
compiling generator.c
generator.c: In function ‘generate_json’:
generator.c:861:25: error: ‘rb_cFixnum’ undeclared (first use in this function)
} else if (klass == rb_cFixnum) {
^
generator.c:861:25: note: each undeclared identifier is reported only once for each function it appears in
generator.c:863:25: …Run Code Online (Sandbox Code Playgroud) ruby ×1