我知道它说不要移动它,但是在我ruby dk.rb init
和ruby dk.rb install
之后我将它移动到另一个目录,因为我不希望它混乱它所在的目录。我之前能够gem install json
,但现在当我尝试通过运行gem install json --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.
C:/Ruby200-x64/bin/ruby.exe extconf.rb
creating Makefile
make "DESTDIR="
Gem files will remain installed in C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/json-1.8.1 for inspection.
Results logged to C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/json-1.8.1/ext/jsln/ext/generator/gem_make.out
我将如何解决这个问题?
答案 0 :(得分:0)
重新安装。从您的控制台,转到您现在拥有devkit的路径
D:\stuff\devkit
ruby dk.rb init
- 然后打开位于该目录中的config.yml
文件...确保它指向您的ruby安装
ruby dk.rb install
https://github.com/oneclick/rubyinstaller/wiki/Development-Kit