Slogger icon indicating copy to clipboard operation
Slogger copied to clipboard

Can't install json 1.8.0

Open camscampbell opened this issue 7 years ago • 1 comments

My Slogger installation broke either with XCode update or upgrade to High Sierra. I'm trying to run bundle install and can't get passed this...

`make failed, exit code 2

Gem files will remain installed in /var/folders/wr/f6hdq7c15zq76k2ybjx5nd000000gn/T/bundler20180930-43288-1k4stu4json-1.8.0/gems/json-1.8.0 for inspection. Results logged to /var/folders/wr/f6hdq7c15zq76k2ybjx5nd000000gn/T/bundler20180930-43288-1k4stu4json-1.8.0/extensions/universal-darwin-17/2.3.0/json-1.8.0/gem_make.out

An error occurred while installing json (1.8.0), and Bundler cannot continue. Make sure that gem install json -v '1.8.0' --source 'https://rubygems.org/' succeeds before bundling. `

If I try gem install json -v '1.8.0' --source 'https://rubygems.org/'

I get this

/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/intern.h:798: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 /Library/Ruby/Gems/2.3.0/gems/json-1.8.0 for inspection. Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-17/2.3.0/json-1.8.0/gem_make.out`

Any ideas?

camscampbell avatar Sep 30 '18 10:09 camscampbell

Comment out gem 'json' in the Gemfile and then run bundle update. JSON hasn't been a necessary include since Ruby 2.0, shouldn't still be in the Gemfile.

-Brett

On 30 Sep 2018, at 5:13, Cams Campbell wrote:

My Slogger installation broke either with XCode update or upgrade to High Sierra. I'm trying to run bundle install and can't get passed this...

`make failed, exit code 2

Gem files will remain installed in /var/folders/wr/f6hdq7c15zq76k2ybjx5nd000000gn/T/bundler20180930-43288-1k4stu4json-1.8.0/gems/json-1.8.0 for inspection. Results logged to /var/folders/wr/f6hdq7c15zq76k2ybjx5nd000000gn/T/bundler20180930-43288-1k4stu4json-1.8.0/extensions/universal-darwin-17/2.3.0/json-1.8.0/gem_make.out

An error occurred while installing json (1.8.0), and Bundler cannot continue. Make sure that gem install json -v '1.8.0' --source 'https://rubygems.org/' succeeds before bundling. `

If I try gem install json -v '1.8.0' --source 'https://rubygems.org/'

I get this

/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/intern.h:798: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 /Library/Ruby/Gems/2.3.0/gems/json-1.8.0 for inspection. Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-17/2.3.0/json-1.8.0/gem_make.out`

Any ideas?

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/ttscoff/Slogger/issues/427

ttscoff avatar Sep 30 '18 15:09 ttscoff