4
在使用RailsInstaller在Windows上安装Ruby + Rails之后,我无法安装构建本机扩展所需的任何gem。错误:gem_make.out的Ruby with RailsInstaller,无法在Windows上构建gem原生扩展
C:\Users\Admin>gem install rdiscount
Building native extensions. This could take a while...
ERROR: Error installing rdiscount:
ERROR: Failed to build gem native extension.
C:/Rails/Ruby1.9.2/bin/ruby.exe extconf.rb
Gem files will remain installed in C:/Rails/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/r
discount-1.6.8 for inspection.
Results logged to C:/Rails/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/rdiscount-1.6.8/ex
t/gem_make.out
内容:
C:/Rails/Ruby1.9.2/bin/ruby.exe extconf.rb
我已经通过this troubleshooting page去了,但它并没有解决这个错误。 看来,Ruby无法产生子进程,因为当我手动运行extconf.rb时,它的工作原理。
PATH:
C:\Rails\DevKit\bin;C:\Rails\DevKit\mingw\bin;C:\Rails\Git\cmd;C:\Rails\Ruby1.9.2\bin;C:\Program Files\AMD APP\bin\x86;C:\Program Files\NVIDIA Corporation\PhysX\Common;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\nodejs\
我希望有人能帮助我这个问题。
COMSPEC和注册表的值如故障排除页面中所建议的那样?请用此更新问题以及您正在使用的Windows版本。 –
http://superuser.com/questions/87283/how-to-install-rdiscount-ruby-gem-in-windows-vista – rbinsztock
您是否安装了[开发工具包](https://github.com/oneclick/ rubyinstaller/wiki/development-kit)的Windows?同时请阅读上述链接的第4部分,了解如何正确使其工作。 – kirkytullins