新手问题 求助 安装 DevKit 问题

faxiubite · 2013年12月04日 · 最后由 faxiubite 回复于 2013年12月05日 · 7358 次阅读

C:\DevKit>ruby dk.rb init 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.

我的 ruby 安装在 C 盘, C:\Ruby200-x64>ruby -v ruby 2.0.0p247 (2013-06-27) [x64-mingw32]

我在家的电脑上也遇到这个问题, 安装顺序是先安装 ruby 后安装的 Devkit,参照这个页面,始终不行,https://github.com/oneclick/rubyinstaller/wiki/Development-Kit 现在找不到问题点在哪里 请帮忙看一下

Run Installation Scripts

cd from Step 3 above. ruby dk.rb init to generate the config.yml file to be used later in this Step. Your installed Rubies will be listed there (only those installed by a RubyInstaller package are detected at present). edit the generated config.yml file to include installed Rubies not automatically discovered or remove Rubies you do not want to use the DevKit with. [optional] ruby dk.rb review to review the list of Rubies to be enhanced to use the DevKit and verify the changes you made to it are correct. finally, ruby dk.rb install to DevKit enhance your installed Rubies. This step installs (or updates) an operating_system.rb file into the relevant directory needed to implement a RubyGems pre_install hook and a devkit.rb helper library file into \lib\ruby\site_ruby. NOTE: you may need to use the --force option to update (with backup of the originals) the above mentioned files as discussed at the SFX DevKit upgrade FAQ entry. If you use the x64 version of ruby you might get an error saying Invalid configuration. Please fix ‘config.yml’ and rerun ‘ruby dk.rb install’. See http://stackoverflow.com/questions/16523607/cant-get-ruby-devkit-configuration-file-autogenerated-properlyni 你还没有安装完毕呢,有什么问题吗

不太明白 没有安装完毕是什么意思?

你现在只是

ruby dk.rb init 

然后在

ruby dk.rb review

看看有没有找到你的 ruby 路径, 找到了在

ruby dk.rb install

明白了 谢谢

'Software\Wow6432Node\RubyInstaller\MRI'

这一行是关键 不识别 64 位的

If you use the x64 version of ruby you might get an error saying Invalid configuration. Please fix ‘config.yml’ and rerun ‘ruby dk.rb install’. See http://stackoverflow.com/questions/16523607/cant-get-ruby-devkit-configuration-file-autogenerated-properlyni 看见这个了吗?

看到了 已经修好了

不过遇到点其他问题 谢谢

需要 登录 后方可回复, 如果你还没有账号请 注册新账号