json gem installation not working

299 views
Skip to first unread message

lib...@teamta.in

unread,
Mar 31, 2017, 6:59:19 AM3/31/17
to RubyInstaller
Version of Windows - Windows 8.1
Version of Ruby - ruby 2.3.3p222 (2016-11-21 revision 56859) [x64-mingw32]
Version of RubyGems  - 2.6.11
Indicate that you have installed DevKit - Installed DevKit by downloading https://dl.bintray.com/oneclick/rubyinstaller/DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe and extracted contents to a folder(C:\webserver\RubyDevKit) and run the commands ruby 'dk.rb init' and 'ruby dk.rb install' in that folder
Against which package (knapsack filename or any other obtained from the web) you're trying to link the gem - I am trying to install redmine


Hai, I am new to ruby and trying to install redmine which is done in ruby to windows. I am using 32 bit version of ruby. I have installed ruby and installed 'bundler'. When I try to run bundle install,the following error is shown-:


c:\webserver\Redmine>bundle install
The dependency activerecord-jdbc-adapter (~> 1.3.2) will be unused by any of the
 platforms Bundler is installing for. Bundler is installing for x64-mingw32 but
the dependency is only for java. To add those platforms to the bundle, run `bund
le lock --add-platform java`.
The dependency activerecord-jdbcmysql-adapter (>= 0) will be unused by any of th
e platforms Bundler is installing for. Bundler is installing for x64-mingw32 but
 the dependency is only for java. To add those platforms to the bundle, run `bun
dle lock --add-platform java`.
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...
Using rake 12.0.0
Using i18n 0.8.1
Installing json 1.8.6 with native extensions
Using minitest 5.10.1
Using thread_safe 0.3.6
Using builder 3.2.3
Using erubis 2.7.0
Using mini_portile2 2.0.0
Using rack 1.6.5
Using mime-types-data 3.2016.0521
Using arel 6.0.4
Using public_suffix 2.0.5
Using bundler 1.14.6
Using chartkick 2.2.3
Using coderay 1.1.1
Using concurrent-ruby 1.0.5
Using htmlentities 4.3.1
Using thor 0.19.4
Using liquid 2.6.3
Using mimemagic 0.3.2
Using mysql2 0.3.21 (x64-mingw32)
Using net-ldap 0.12.1
Using ruby-openid 2.3.0
Using rbpdf-font 1.19.0
Installing redcarpet 3.4.0 with native extensions
Using request_store 1.0.5
Using ruby-ole 1.2.12.1
Using 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-5584-1d3edsm.rb
extconf.rb --use-system-libraries
No such file or directory - C:/webserver/Ruby23-x64/bin/ruby.exe -r
./siteconf20170328-5584-1d3edsm.rb extconf.rb --use-system-libraries 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 --platform=ruby' the result is as follows :-


c:\webserver\Redmine>gem install json -v 1.8.6 --platform ruby
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-6196-166jkb5.rb extco
nf.rb
No such file or directory - C:/webserver/Ruby23-x64/bin/ruby.exe -r ./siteconf20
170328-6196-166jkb5.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



Please help to solve this.Could not find mkmf.log

Reply all
Reply to author
Forward
0 new messages