Tag: init

安装ruby devkit时出现LoadError

我使用安装程序Ruby 1.9.3-p125在Windows 7上安装了ruby,这是最新版本( ruby -v显示正确的版本)。 接下来,我下载了devkit-3.4.5r3-20091110 ,这也是最新版本。 当我在安装目录中尝试以下操作时, ruby dk.rb init 控制台显示错误: ruby: No such file or directory — dk.rb (LoadError) 我是ruby的新手,我不想学习ruby – 我只想使用需要ruby的Jekyll 。 我该如何解决这个错误?

rspec –init not working /`mkd ir’:参数无效 – ./C :( Errno :: EINVAL)

我正在关注rspec的 codechool 课程 。 安装工作正常。 我为该项目创建了一个名为rspec-zombie的文件。 精细。 但是当我在powershell中尝试使用rspec –init时,我收到了一个不正常的错误消息。 我的印象是应该在目录中制作一些文件,但不存在。 它跟随。 C:\Users\Roman\The-Odin-Project\rspec-zombie> rspec –init create .rspec C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-support-3.1.0/lib/rspec/support/directory_maker.rb:17:in `mkd ir’: Invalid argument – ./C: (Errno::EINVAL) from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-support-3.1.0/lib/rspec/support/directory_maker. rb:17:in `block in mkdir_p’ from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-support-3.1.0/lib/rspec/support/directory_maker. rb:13:in `each’ from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-support-3.1.0/lib/rspec/support/directory_maker. rb:13:in `mkdir_p’ from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.3/lib/rspec/core/project_initializer.rb :33:in `copy_template’ from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.3/lib/rspec/core/project_initializer.rb :22:in `run’ from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.3/lib/rspec/core/option_parser.rb:81:in `block (2 levels) in parser’ from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/optparse.rb:1360:in […]