Error when trying to run Rails app on Mac OS X -
*am not techie person per se - trying run rails app (extracted staging environment on cloud) on local os x sierra machine).
steps done: (after having installed xcode, command line tools, ruby , rails locally)
- $ rails server not find proper version of railties (4.2.6) in of sources run
bundle install
install missing gems. - $ bundle install (log below)
- $ gem install bundler --pre (log below)
-- log point 2 --
the latest bundler 1.16.0.pre.2, running 1.15.4. update, run `gem install bundler --pre` fetching gem metadata https://rubygems.org/.......... fetching version metadata https://rubygems.org/.. fetching dependency metadata https://rubygems.org/. using rake 11.3.0 using i18n 0.7.0 fetching json 1.8.3 installing json 1.8.3 native extensions using minitest 5.9.1 using thread_safe 0.3.5 using builder 3.2.2 using erubis 2.7.0 using mini_portile2 2.1.0 using rack 1.6.5 using mime-types-data 3.2016.0521 using arel 6.0.3 using net-ssh 3.2.0 using bcrypt 3.1.11 using debug_inspector 0.0.2 using bundler 1.15.4 using byebug 9.0.6 using capistrano-harrow 0.5.3 using coffee-script-source 1.10.0 using execjs 2.7.0 using thor 0.19.1 using concurrent-ruby 1.0.2 using orm_adapter 0.5.0 using multi_json 1.12.1 fetching mysql2 0.4.5 installing mysql2 0.4.5 native extensions using rdoc 4.3.0 using sass 3.4.22 using tilt 2.0.5 gem::ext::builderror: error: failed build gem native extension. current directory: /users/sam/.rvm/gems/ruby-2.4.1/gems/json-1.8.3/ext/json/ext/generator /users/sam/.rvm/rubies/ruby-2.4.1/bin/ruby -r ./siteconf20170912-887-1ldzl3o.rb extconf.rb creating makefile current directory: /users/sam/.rvm/gems/ruby-2.4.1/gems/json-1.8.3/ext/json/ext/generator make "destdir=" clean current directory: /users/sam/.rvm/gems/ruby-2.4.1/gems/json-1.8.3/ext/json/ext/generator make "destdir=" compiling generator.c generator.c:861:25: error: use of undeclared identifier 'rb_cfixnum' } else if (klass == rb_cfixnum) { ^ generator.c:863:25: error: use of undeclared identifier 'rb_cbignum' } else if (klass == rb_cbignum) { ^ generator.c:975:5: warning: division 0 undefined [-wdivision-by-zero] rb_scan_args(argc, argv, "01", &opts); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2147:9: note: expanded macro 'rb_scan_args' rb_scan_args0(argc,argvp,fmt,\ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2333:9: note: expanded macro 'rb_scan_args0' (rb_scan_args_verify(fmt, varc), vars)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2205:11: note: expanded macro 'rb_scan_args_verify' verify = rb_scan_args_verify_count(fmt, varc); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ note: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 see all) /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2171:6: note: expanded macro 'rb_scan_args_count_hash' rb_scan_args_count_block(fmt, ofs, varc, vari) : \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2166:6: note: expanded macro 'rb_scan_args_count_block' rb_scan_args_count_end(fmt, ofs, varc, vari) : \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2162:12: note: expanded macro 'rb_scan_args_count_end' ((vari)/(!fmt[ofs] || rb_scan_args_bad_format(fmt))) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generator.c:975:5: warning: division 0 undefined [-wdivision-by-zero] rb_scan_args(argc, argv, "01", &opts); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2147:9: note: expanded macro 'rb_scan_args' rb_scan_args0(argc,argvp,fmt,\ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2333:9: note: expanded macro 'rb_scan_args0' (rb_scan_args_verify(fmt, varc), vars)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2205:11: note: expanded macro 'rb_scan_args_verify' verify = rb_scan_args_verify_count(fmt, varc); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ note: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 see all) /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2171:6: note: expanded macro 'rb_scan_args_count_hash' rb_scan_args_count_block(fmt, ofs, varc, vari) : \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2167:6: note: expanded macro 'rb_scan_args_count_block' rb_scan_args_count_end(fmt, ofs+1, varc, vari+1)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2162:12: note: expanded macro 'rb_scan_args_count_end' ((vari)/(!fmt[ofs] || rb_scan_args_bad_format(fmt))) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generator.c:975:5: warning: division 0 undefined [-wdivision-by-zero] rb_scan_args(argc, argv, "01", &opts); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2147:9: note: expanded macro 'rb_scan_args' rb_scan_args0(argc,argvp,fmt,\ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2333:9: note: expanded macro 'rb_scan_args0' (rb_scan_args_verify(fmt, varc), vars)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2205:11: note: expanded macro 'rb_scan_args_verify' verify = rb_scan_args_verify_count(fmt, varc); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ note: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 see all) /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2172:6: note: expanded macro 'rb_scan_args_count_hash' rb_scan_args_count_block(fmt, ofs+1, varc, vari+1)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2166:6: note: expanded macro 'rb_scan_args_count_block' rb_scan_args_count_end(fmt, ofs, varc, vari) : \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2162:12: note: expanded macro 'rb_scan_args_count_end' ((vari)/(!fmt[ofs] || rb_scan_args_bad_format(fmt))) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generator.c:975:5: warning: division 0 undefined [-wdivision-by-zero] rb_scan_args(argc, argv, "01", &opts); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2147:9: note: expanded macro 'rb_scan_args' rb_scan_args0(argc,argvp,fmt,\ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2333:9: note: expanded macro 'rb_scan_args0' (rb_scan_args_verify(fmt, varc), vars)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2205:11: note: expanded macro 'rb_scan_args_verify' verify = rb_scan_args_verify_count(fmt, varc); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ note: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 see all) /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2171:6: note: expanded macro 'rb_scan_args_count_hash' rb_scan_args_count_block(fmt, ofs, varc, vari) : \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2166:6: note: expanded macro 'rb_scan_args_count_block' rb_scan_args_count_end(fmt, ofs, varc, vari) : \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2162:12: note: expanded macro 'rb_scan_args_count_end' ((vari)/(!fmt[ofs] || rb_scan_args_bad_format(fmt))) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generator.c:975:5: warning: division 0 undefined [-wdivision-by-zero] rb_scan_args(argc, argv, "01", &opts); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2147:9: note: expanded macro 'rb_scan_args' rb_scan_args0(argc,argvp,fmt,\ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2333:9: note: expanded macro 'rb_scan_args0' (rb_scan_args_verify(fmt, varc), vars)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2205:11: note: expanded macro 'rb_scan_args_verify' verify = rb_scan_args_verify_count(fmt, varc); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ note: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 see all) /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2171:6: note: expanded macro 'rb_scan_args_count_hash' rb_scan_args_count_block(fmt, ofs, varc, vari) : \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2166:6: note: expanded macro 'rb_scan_args_count_block' rb_scan_args_count_end(fmt, ofs, varc, vari) : \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2162:12: note: expanded macro 'rb_scan_args_count_end' ((vari)/(!fmt[ofs] || rb_scan_args_bad_format(fmt))) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ generator.c:975:5: warning: division 0 undefined [-wdivision-by-zero] rb_scan_args(argc, argv, "01", &opts); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2147:9: note: expanded macro 'rb_scan_args' rb_scan_args0(argc,argvp,fmt,\ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2333:9: note: expanded macro 'rb_scan_args0' (rb_scan_args_verify(fmt, varc), vars)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2205:11: note: expanded macro 'rb_scan_args_verify' verify = rb_scan_args_verify_count(fmt, varc); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ note: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 see all) /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2171:6: note: expanded macro 'rb_scan_args_count_hash' rb_scan_args_count_block(fmt, ofs, varc, vari) : \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2166:6: note: expanded macro 'rb_scan_args_count_block' rb_scan_args_count_end(fmt, ofs, varc, vari) : \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /users/sam/.rvm/rubies/ruby-2.4.1/include/ruby-2.4.0/ruby/ruby.h:2162:12: note: expanded macro 'rb_scan_args_count_end' ((vari)/(!fmt[ofs] || rb_scan_args_bad_format(fmt))) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 6 warnings , 2 errors generated. make: *** [generator.o] error 1 make failed, exit code 2 gem files remain installed in /users/sam/.rvm/gems/ruby-2.4.1/gems/json-1.8.3 inspection. results logged /users/sam/.rvm/gems/ruby-2.4.1/extensions/x86_64-darwin-16/2.4.0/json-1.8.3/gem_make.out error occurred while installing json (1.8.3), , bundler cannot continue. make sure `gem install json -v '1.8.3'` succeeds before bundling. in gemfile: rails resolved 4.2.6, depends on actionmailer resolved 4.2.6, depends on actionpack resolved 4.2.6, depends on actionview resolved 4.2.6, depends on rails-dom-testing resolved 1.0.7, depends on rails-deprecated_sanitizer resolved 1.0.3, depends on activesupport resolved 4.2.6, depends on json
=== log point 3 ===
fetching: bundler-1.16.0.pre.2.gem (100%) installed bundler-1.16.0.pre.2 parsing documentation bundler-1.16.0.pre.2 installing ri documentation bundler-1.16.0.pre.2 done installing documentation bundler after 8 seconds 1 gem installed
Comments
Post a Comment