我最近根据这里的教程写了一个命令行gem:
http://robdodson.me/how-to-write-a-command-line-ruby-gem/
它在linux中运行良好,但出于某种原因我无法在windows中运行它。
在Windows中,我收到以下错误:
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- my_gem_name (LoadError)
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/my_gem_name-0.0.1/bin/importer:3:in `<top (required)>'
from C:/Ruby193/bin/importer:23:in `load'
from C:/Ruby193/bin/importer:23:in `<main>'
非常感谢任何见解