When i run ‘bundle install --without development test’ , the following
error occur
Fetching gem metadata from https://rubygems.org/…
Fetching gem metadata from http://rubygems.org/…
Fetching version metadata from https://rubygems.org/…
Fetching version metadata from http://rubygems.org/…
Fetching dependency metadata from https://rubygems.org/.
Fetching dependency metadata from http://rubygems.org/…
Resolving dependencies…
Installing rake 12.0.0
Installing i18n 0.8.1
Installing json 1.8.6 with native extensions
Installing minitest 5.10.1
Installing thread_safe 0.3.6
Installing builder 3.2.3
Installing erubis 2.7.0
Installing mini_portile2 2.0.0
Installing rack 1.6.5
Installing mime-types-data 3.2016.0521
Installing arel 6.0.4
Installing public_suffix 2.0.5
Using bundler 1.14.6
Installing chartkick 2.2.3
Installing coderay 1.1.1
Installing concurrent-ruby 1.0.5
Installing htmlentities 4.3.1
Installing thor 0.19.4
Installing liquid 2.6.3
Installing mimemagic 0.3.2
Installing mysql2 0.3.21 (x64-mingw32)
Installing net-ldap 0.12.1
Installing ruby-openid 2.3.0
Installing rbpdf-font 1.19.0
Installing redcarpet 3.4.0 with native extensions
Installing request_store 1.0.5
Installing ruby-ole 1.2.12.1
Installing vcard 0.2.15
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
C:/webserver/Ruby23-x64/lib/ruby/gems/2.3.0/gems/json-1.8.6/ext/json/ext/generat
or
C:/webserver/Ruby23-x64/bin/ruby.exe -r
./siteconf20170328-6232-1ck53q5.rb
extconf.rb
No such file or directory - C:/webserver/Ruby23-x64/bin/ruby.exe -r
./siteconf20170328-6232-1ck53q5.rb extconf.rb 2>&1
Gem files will remain installed in
C:/webserver/Ruby23-x64/lib/ruby/gems/2.3.0/gems/json-1.8.6 for
inspection.
Results logged to
C:/webserver/Ruby23-x64/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/json-1.
8.6/gem_make.out
An error occurred while installing json (1.8.6), and Bundler cannot
continue.
Make sure that gem install json -v '1.8.6'
succeeds before bundling.
Then I tried ‘gem install json -v ‘1.8.6’’,then the following error was
shown
Temporarily enhancing PATH to include DevKit…
Building native extensions. This could take a while…
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
current directory:
C:/webserver/Ruby23-x64/lib/ruby/gems/2.3.0/gems/json-1.8
.6/ext/json/ext/generator
C:/webserver/Ruby23-x64/bin/ruby.exe -r
./siteconf20170328-2544-akv4ui.rb extcon
f.rb
No such file or directory - C:/webserver/Ruby23-x64/bin/ruby.exe -r
./siteconf20
170328-2544-akv4ui.rb extconf.rb 2>&1
Gem files will remain installed in
C:/webserver/Ruby23-x64/lib/ruby/gems/2.3.0/g
ems/json-1.8.6 for inspection.
Results logged to
C:/webserver/Ruby23-x64/lib/ruby/gems/2.3.0/extensions/x64-min
gw32/2.3.0/json-1.8.6/gem_make.out
I am using Windows 8.1
ruby 2.3.3p222 (2016-11-21 revision 56859) [x64-mingw32]
gem -v
2.5.2