将DevKit移动到其他目录。我该如何让它再次运作?

时间:2013-12-02 04:57:59

标签: ruby-on-rails devkit

我知道它说不要移动它,但是在我ruby dk.rb initruby 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

我将如何解决这个问题?

1 个答案:

答案 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