redcarpet
安装“ ” gem时出现以下错误。不过,它在我朋友的机器上安装没有问题。(我想安装它来运行yard
) Ruby 版本:1.9.3
命令输出:
D:\Learning\Common_POM_FW\SampleProjects>yard
[error]: Missing 'redcarpet' gem for Markdown formatting. Install it with `gem install redcarpet`
D:\Learning\Common_POM_FW\SampleProjects>gem install redcarpet
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing redcarpet:
ERROR: Failed to build gem native extension.
C:/Ruby193/bin/ruby.exe -r ./siteconf20141009-6544-978w4t.rb extconf.rb
creating Makefile
make clean
Makefile:165: *** target pattern contains no `%'. Stop.
make
Makefile:165: *** target pattern contains no `%'. Stop.
make failed, exit code 2
Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/redcarpet-3.1.2 for inspectio
n.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/extensions/x86-mingw32/1.9.1/redcarpet-3.1.2/gem_ma
ke.out
更新:使用https://github.com/oneclick/rubyinstaller/wiki/Development-Kit 提供的 devkit 安装说明当我使用 json gem 测试安装时,它也失败了:(
我浏览了github Native gem extension Error中的故障排除链接并按照说明解决,但问题仍然存在..
我将两个路径添加到 Env varC:\\ruby_devkit\\bin;C:\\ruby_devkit\\mingw\\bin;
这删除了该行Temporarily enhancing PATH to include DevKit...
出现在 cmd