2010-04-02 41 views
2

我試圖安裝以下寶石:錯誤大廈寶石

http://github.com/maxjustus/sinatra-authentication

在Windows 7上運行的Ruby 1.9的一鍵安裝。

我得到了以下錯誤:

Microsoft Windows [Version 6.1.7600] 
Copyright (c) 2009 Microsoft Corporation. All rights reserved. 

C:\Users\Joel>gem install sinatra-authentication 
Building native extensions. This could take a while... 
ERROR: Error installing sinatra-authentication: 
     ERROR: Failed to build gem native extension. 

C:/Ruby19/bin/ruby.exe extconf.rb 
creating Makefile 

make 
'make' is not recognized as an internal or external command, 
operable program or batch file. 


Gem files will remain installed in C:/Ruby19/lib/ruby/gems/1.9.1/gems/yajl-ruby- 
0.7.5 for inspection. 
Results logged to C:/Ruby19/lib/ruby/gems/1.9.1/gems/yajl-ruby-0.7.5/ext/gem_mak 
e.out 

我看了網上everywehere,嘗試安裝早期版本,並試圖手動安裝沒有成功(它給了我一個stack too deep錯誤)。

我懷疑yajl-ruby gem(http://github.com/brianmario/yajl-ruby)有問題,依賴? (我認爲)

gem_make.out顯示日誌:

C:/Ruby19/bin/ruby.exe extconf.rb 
creating Makefile 

make 
'make' is not recognized as an internal or external command, 
operable program or batch file. 

你有任何想法,如何解決這個問題?謝謝!

+0

我不知道紅寶石1.9有一鍵安裝程序。你能提供一個鏈接嗎? – 2010-04-05 23:42:34

回答

0

它看起來像寶石安裝取決於正在安裝的make程序,你沒有。您可以使用GNU Make for Windows

+0

我實際上在發佈之後安裝了,但沒有成功。 – 2010-04-02 19:08:00

+0

重新啓動我的電腦,也不要。我必須設置路徑或其他? – 2010-04-02 19:23:27

+0

使用env修復了它。變量。 – 2010-04-02 19:42:54

3

要編譯C擴展,您需要安裝RubyInstaller附帶的開發包。 你會找到一個鏈接在這裏下載它:http://rubyinstaller.org/downloads

+0

另外一個探索紅寶石的Windows開發者。當我發現這篇文章時,我剛剛完成了對devkit的重新創建。我想要回那些小時。 http://github.com/oneclick/rubyinstaller/wiki/Development-Kit – Precipitous 2010-09-16 22:50:52

0

我也遇到了這個問題,當試圖在Windows上安裝導軌。在監視器前45分鐘抱怨之後,我偶然發現了這個導軌安裝程序,它安裝了紅寶石和導軌,併成功安裝在我的機器上! http://railsinstaller.org/