我已经在我的机器上使用过Rails,但我决定重新安装它,因为由于gem存储库常用的主目录中的特殊字符是。'rails'不被识别为内部或外部命令
所以我卸载红宝石使用rubyinstaller的卸载,删除了我所有的宝石文件夹,RubyGems的等等等等
现在,我有了GEM_HOME路径为C:\ GemRepository,重新安装Ruby和RubyGems的和的devkit。当我运行创业板安装导轨,我得到这个:
Successfully installed rails-3.1.3
1 gem installed
Installing ri documentation for rails-3.1.3...
file 'lib' not found
Installing RDoc documentation for rails-3.1.3...
file 'lib' not found
如果我尝试运行轨道,它说:“‘轨道’不被识别为一个内部或外部命令,可操作的程序或批处理文件。”
我也试图与-include依赖性标志安装,但后来我得到
Fetching: multi_json-1.0.4.gem (100%)
Fetching: rails-3.1.3.gem (100%)
Successfully installed multi_json-1.0.4
Successfully installed rails-3.1.3
2 gems installed
Installing ri documentation for multi_json-1.0.4...
Installing ri documentation for rails-3.1.3...
file 'lib' not found
Installing RDoc documentation for multi_json-1.0.4...
Installing RDoc documentation for rails-3.1.3...
file 'lib' not found
再次,轨道不被识别为一个命令。请,请帮助我。
好吧,帮助,但现在我得到'C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:在'要求':无法加载这样的文件 - rails/cli(LoadError )' –
我认为在你需要任何东西之前,在脚本的开头添加这个修正:'$ LOAD_PATH <<(%x [gem environment gemdir] +“lib”)''。如果您从命令行运行rails,我不确定。 – Linuxios
在Windows 7上这是gem环境gemdir给我的: “C:\ RailsInstaller \ Ruby2.2.0 \ lib \ ruby \ gems \ 2.2.0” 什么现在?我无法弄清楚要添加到我的路径中。 –