【发布时间】:2011-12-03 00:02:48
【问题描述】:
我已经在我的机器上使用了 Rails,但我决定重新安装它,因为 gem 正在运行,因为我的主目录中的 gem 存储库曾经是一个特殊字符。
所以我使用 rubyinstaller 的卸载程序卸载了 ruby,删除了我所有的 gem 文件夹、rubygems 等。
现在我将我的 GEM_HOME 路径设置为 c:\GemRepository,重新安装了 ruby 和 rubygems 以及 devkit。当我运行 gem install rails 时,我得到了这个:
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
如果我尝试运行 rails,它会说“'rails' 不是内部或外部命令、可运行程序或批处理文件。”
我也尝试使用 -include-dependencies 标志进行安装,但后来我得到了
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
同样,rails 不被识别为命令。请,请,帮助我。
【问题讨论】:
标签: ruby-on-rails ruby gem installation