问题
I have installed ruby on Windows 7 using the installer Ruby 1.9.3-p125
which is the latest version (ruby -v
shows the right version). Next, I downloaded devkit-3.4.5r3-20091110
, which is also the latest version. When I tried the following in the installation directory,
ruby dk.rb init
the console showed an error:
ruby: No such file or directory -- dk.rb (LoadError)
I am new to ruby and I don't want to learn ruby — I just want to use Jekyll which needs ruby.
How can I fix this error?
回答1:
Try to run the command from the devkit folder, and let me know if it doesn't work.
回答2:
Try installing the dev kit from here. You'll find dk.rb
in the directory you extracted the contents to.
来源:https://stackoverflow.com/questions/9748107/loaderror-when-installing-ruby-devkit