###困っていること
bundle install すると、下記のようなエラーが出てしまいます。
An error occurred while installing json (1.8.1), and Bundler cannot continue. Make sure that `gem install json -v '1.8.1'` succeeds before bundling. In Gemfile: rails was resolved to 4.1.1, which depends on actionmailer was resolved to 4.1.1, which depends on actionpack was resolved to 4.1.1, which depends on actionview was resolved to 4.1.1, which depends on activesupport was resolved to 4.1.1, which depends on json
###試したこと
・$ gem install json -v '1.8.1
↓ エラーがでる
Building native extensions. This could take a while... ERROR: Error installing json: ERROR: Failed to build gem native extension. /Users/wataru/.rbenv/versions/2.2.0-dev/bin/ruby extconf.rb creating Makefile make "DESTDIR=" clean make "DESTDIR=" compiling generator.c In file included from generator.c:1: ./../fbuffer/fbuffer.h:175:47: error: too few arguments provided to function-like macro invocation VALUE result = rb_str_new(FBUFFER_PAIR(fb)); ^ /Users/wataru/.rbenv/versions/2.2.0-dev/include/ruby-2.4.0/ruby/intern.h:797:9: note: macro 'rb_str_new' defined here #define rb_str_new(str, len) __extension__ ( \ ^ In file included from generator.c:1: ./../fbuffer/fbuffer.h:175:11: warning: incompatible pointer to integer conversion initializing 'VALUE' (aka 'unsigned long') with an expression of type 'VALUE (const char *, long)' (aka 'unsigned long (const char *, long)') [-Wint-conversion] VALUE result = rb_str_new(FBUFFER_PAIR(fb)); ^ ~~~~~~~~~~ 1 warning and 1 error generated. make: *** [generator.o] Error 1 make failed, exit code 2 Gem files will remain installed in /Users/wataru/.rbenv/versions/2.2.0-dev/lib/ruby/gems/2.4.0/gems/json-1.8.1 for inspection. Results logged to /Users/wataru/.rbenv/versions/2.2.0-dev/lib/ruby/gems/2.4.0/extensions/x86_64-darwin-14/2.4.0-static/json-1.8.1/gem_make.out
###その他
下記のように bundle updateでのエラーが出たこともあり、
そちらも質問としてあげました。
https://teratail.com/questions/95984
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/10/19 04:52 編集
2017/10/19 05:57
2017/10/19 07:33