Already set the DevKit, but still tell me "requires installed build tools"

105 views
Skip to first unread message

Qiuhong Fu

unread,
Sep 12, 2016, 7:03:09 PM9/12/16
to RubyInstaller
F:\>cd DevKit

F:\DevKit>ruby dk.rb init
[INFO] found RubyInstaller v2.3.1 at F:/Ruby23

Initialization complete! Please review and modify the auto-generated
'config.yml' file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.

F:\DevKit>config.yml

F:\DevKit>ruby dk.rb review
Based upon the settings in the 'config.yml' file generated
from running 'ruby dk.rb init' and any of your customizations,
DevKit functionality will be injected into the following Rubies
when you run 'ruby dk.rb install'.

F:/Ruby23

F:\DevKit>ruby dk.rb install
[INFO] Updating convenience notice gem override for 'F:/Ruby23'
[INFO] Installing 'F:/Ruby23/lib/ruby/site_ruby/devkit.rb'

F:\DevKit>gem install json --platform=ruby
Fetching: json-2.0.2.gem (100%)
ERROR:  Error installing json:
        The 'json' native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions

Dušan D. Majkić

unread,
Sep 13, 2016, 3:42:08 AM9/13/16
to rubyin...@googlegroups.com
> The 'json' native gem requires installed build tools.

It looks like it has something to do with the devkit path.
Check that you have right DevKit (32bit for 32bit ruby,
64bit for 64bit ruby)

Try to manually call devkitvars.bat like this:

F:\> \DevKit\devkitvars.bat
F:\> gem install json --platform=ruby

Regards.

Justin Baker

unread,
Sep 29, 2016, 3:28:57 PM9/29/16
to RubyInstaller
Hey, see inline comments.


On Monday, September 12, 2016 at 6:03:09 PM UTC-5, Qiuhong Fu wrote:
F:\>cd DevKit

F:\DevKit>ruby dk.rb init
[INFO] found RubyInstaller v2.3.1 at F:/Ruby23

Initialization complete! Please review and modify the auto-generated
'config.yml' file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.

F:\DevKit>config.yml

F:\DevKit>ruby dk.rb review
Based upon the settings in the 'config.yml' file generated
from running 'ruby dk.rb init' and any of your customizations,
DevKit functionality will be injected into the following Rubies
when you run 'ruby dk.rb install'.

F:/Ruby23

F:\DevKit>ruby dk.rb install
[INFO] Updating convenience notice gem override for 'F:/Ruby23'
[INFO] Installing 'F:/Ruby23/lib/ruby/site_ruby/devkit.rb'

Well, it looks like it definitely installed. So you shouldn't be getting this error.
 
F:\DevKit>gem install json --platform=ruby
Fetching: json-2.0.2.gem (100%)
ERROR:  Error installing json:
        The 'json' native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions

Is it possible that you have an other Ruby version in your PATH? Try running `gem env` and make sure it's the correct location.

Justin 
Reply all
Reply to author
Forward
0 new messages