Skip to content
This repository was archived by the owner on Mar 24, 2022. It is now read-only.
This repository was archived by the owner on Mar 24, 2022. It is now read-only.

Unable to insatll on Windows #118

@arsiddiqui

Description

@arsiddiqui

I have installed all pre requisites and trying to install project however not able to install as ruby 2.4.2 is using JSON 2.04
I am getting following error and wonder how i can fix JSON issue? ruby gem list is also after the error
//***********************************************************************
ERROR

bundle install
Fetching gem metadata from https://rubygems.org/............
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...........
Using rake 11.2.2
Using i18n 0.7.0
Fetching json 1.8.3
Installing json 1.8.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/json-1.8.3/ext/json/ext/generator
C:/Ruby24-x64/bin/ruby.exe -r ./siteconf20171101-13364-1152m0u.rb extconf.rb
creating Makefile

current directory:
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/json-1.8.3/ext/json/ext/generator
make "DESTDIR=" clean

current directory:
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/json-1.8.3/ext/json/ext/generator
make "DESTDIR="
generating generator-x64-mingw32.def
compiling generator.c
generator.c: In function 'generate_json':
generator.c:861:25: error: 'rb_cFixnum' undeclared (first use in this function);
did you mean 'mFixnum'?
} else if (klass == rb_cFixnum) {
^~~~~~~~~~
mFixnum
generator.c:861:25: note: each undeclared identifier is reported only once for
each function it appears in
generator.c:863:25: error: 'rb_cBignum' undeclared (first use in this function);
did you mean 'rb_cFixnum'?
} else if (klass == rb_cBignum) {
^~~~~~~~~~
rb_cFixnum
make: *** [Makefile:242: generator.o] Error 1

make failed, exit code 2

Gem files will remain installed in
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/json-1.8.3 for inspection.
Results logged to
C:/Ruby24-x64/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/json-1.8.3/gem_make.out

An error occurred while installing json (1.8.3), and Bundler cannot
continue.
Make sure that gem install json -v '1.8.3' succeeds before bundling.

In Gemfile:
rails was resolved to 4.2.7, which depends on
actionmailer was resolved to 4.2.7, which depends on
actionpack was resolved to 4.2.7, which depends on
actionview was resolved to 4.2.7, which depends on
rails-dom-testing was resolved to 1.0.7, which depends on
rails-deprecated_sanitizer was resolved to 1.0.3, which depends on
activesupport was resolved to 4.2.7, which depends on
json

//***********************************************************************
Here is my Ruby gem list

actioncable (5.1.4)
actionmailer (5.1.4)
actionpack (5.1.4)
actionview (5.1.4)
activejob (5.1.4)
activemodel (5.1.4)
activerecord (5.1.4)
activesupport (5.1.4)
addressable (2.4.0)
arel (8.0.0, 6.0.3)
awesome_print (1.7.0)
bcrypt (3.1.11 x64-mingw32)
bigdecimal (default: 1.3.0)
builder (3.2.3, 3.2.2)
bundler (1.16.0.pre.3, 1.15.4)
chronic (0.10.2)
coderay (1.1.1)
coffee-script-source (1.10.0)
concurrent-ruby (1.0.5, 1.0.2)
cookiejar (0.3.3)
crass (1.0.2)
daemons (1.2.4)
database_cleaner (1.5.3)
did_you_mean (1.1.0)
diff-lcs (1.2.5)
eco-source (1.1.0.rc.1)
ejs (1.1.1)
erubi (1.7.0)
erubis (2.7.0)
eventmachine (1.2.0.1 x64-mingw32)
excon (0.51.0)
execjs (2.7.0)
ffi (1.9.14 x64-mingw32)
formatador (0.2.5)
globalid (0.4.1)
guard-compat (1.2.1)
hashdiff (0.3.0)
hashie (2.1.2)
http_parser.rb (0.6.0)
httpauth (0.2.1)
i18n (0.9.0, 0.7.0)
io-console (default: 0.4.6)
jasmine-core (2.4.1)
jshint_on_rails (1.0.3)
json (default: 2.0.4)
kramdown (1.11.1)
loofah (2.1.1)
lumberjack (1.0.10)
mail (2.6.6)
method_source (0.9.0, 0.8.2)
mime-types (3.1)
mime-types-data (3.2016.0521)
mini_portile2 (2.3.0, 2.1.0)
minitest (5.10.1, 5.9.0)
multi_json (1.12.1)
multipart-post (2.0.0)
mysql2 (0.4.4 x64-mingw32)
nenv (0.3.0)
net-telnet (0.1.1)
netrc (0.11.0)
newrelic_rpm (3.16.0.318)
nio4r (2.1.0)
nokogiri (1.8.1 x64-mingw32)
openssl (default: 2.0.5)
orm_adapter (0.5.0)
phantomjs (2.1.1.0)
pkg-config (1.1.7)
power_assert (0.4.1)
psych (default: 2.2.2)
rack (2.0.3, 1.6.4)
rack-test (0.7.0)
rails (5.1.4)
rails-dom-testing (2.0.3)
rails-html-sanitizer (1.0.3)
rails_serve_static_assets (0.0.5)
rails_stdout_logging (0.0.5)
railties (5.1.4)
rake (12.0.0, 11.2.2)
rb-fsevent (0.9.7)
rdoc (default: 5.0.0)
request_store (1.3.1)
rspec-support (3.5.0)
ruby-openid (2.7.0)
ruby_dep (1.3.1)
rubygems-update (2.6.14, 2.6.13, 2.0.3)
safe_yaml (1.0.4)
sass (3.4.22)
sexp_processor (4.7.0)
shellany (0.0.1)
slop (3.6.0)
spring (1.7.2)
sprockets (3.7.1)
sprockets-rails (3.2.1)
test-unit (3.2.3)
thor (0.20.0, 0.19.1)
thread_safe (0.3.6, 0.3.5)
tilt (2.0.5)
timecop (0.8.1)
tzinfo (1.2.4)
unf_ext (0.0.7.2 x64-mingw32)
vagrant (1.5.0)
vcr (3.0.3)
websocket-driver (0.6.5)
websocket-extensions (0.1.2)
xmlrpc (0.2.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions