Lea*_*RoR 3 ruby ruby-on-rails ruby-on-rails-3 devkit
我在Windows 7 x64上,我正在尝试从头开始安装Ruby on Rails.我刚刚安装了RubyInstaller 1.9.3-p429,现在刚刚运行了DevKit-tdm-32-4.5.2-20111229-1559-sfx.做完之后ruby dk.rb install --force.我试着测试它是否设置正确但遇到:
c:\DevKit>gem install RedCloth --platform=ruby
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
The system cannot find the path specified.
ERROR: Error installing RedCloth:
ERROR: Failed to build gem native extension.
C:/Ruby193/bin/ruby.exe extconf.rb
checking for main() in -lc... no
creating Makefile
Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/RedCloth-4.2.9 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/RedCloth-4.2.9/ext/redcloth_scan/gem_make.out
Run Code Online (Sandbox Code Playgroud)
这种情况发生在需要Devkit的所有宝石上.我想我必须设置指定的路径,但我不知道这意味着什么.我该怎么做或这里真正的问题是什么?
PS
一点点背景.我确实安装了RailsInstaller但是我得到了同样的错误所以我删除了所有内容.我也安装了NodeJ,但也删除了.我完全删除了PATH变量,从头开始.
UPDATE
尝试RailsInstaller给了我这个错误:
$ gem install json -v 1.8.0
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
The system cannot find the path specified.
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
c:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
creating Makefile
Gem files will remain installed in c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/json-1.8.0 for inspection.
Results logged to c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/json-1.8.0/ext/json/ext/generator/gem_make.out
Run Code Online (Sandbox Code Playgroud)
小智 9
我讨厌碰到一个旧线程,但我希望添加答案以防万一其他人过来(可能因为这是谷歌搜索"Devkit PATH错误"的顶部).
将DevKit解压缩到永久目录后,在导航到shell中的install文件夹并输入"ruby dk.rb init"命令后,请确保实际执行下一步并安装 devkit.在init命令之后,运行"ruby dk.rb install",这应该解决许多类似的问题.
| 归档时间: |
|
| 查看次数: |
8586 次 |
| 最近记录: |