2013-01-31 103 views
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\ 

我希望有人能幫助我這個問題。

+0

COMSPEC和註冊表的值如故障排除頁面中所建議的那樣?請用此更新問題以及您正在使用的Windows版本。 –

+0

http://superuser.com/questions/87283/how-to-install-rdiscount-ruby-gem-in-windows-vista – rbinsztock

+1

您是否安裝了[開發工具包](https://github.com/oneclick/ rubyinstaller/wiki/development-kit)的Windows?同時請閱讀上述鏈接的第4部分,瞭解如何正確使其工作。 – kirkytullins

回答

2

除非你有一個非常有說服力的理由在Windows上本地運行,否則我會安裝VirtualBox並運行Ubuntu或Linux for Rails開發的最喜歡的風格。事情將最終順利進行。

相關問題