1

我似乎無法使用Ruby 1.9.3p194在Windows 7計算機上運行軟件包更新。我也安裝了最新的DevKit。包抱怨缺少make命令,我無法在硬盤上找到make(我搜索過)。我如何得到這個工作?由於json導致無法運行軟件包更新1.7.5

C:\website>bundle update 
Fetching gem metadata from http://rubygems.org/......... 
Using rake (0.9.2.2) 
Using i18n (0.6.1) 
Using multi_json (1.3.6) 
Using activesupport (3.2.8) 
Using builder (3.0.2) 
Using activemodel (3.2.8) 
Using erubis (2.7.0) 
Using journey (1.0.4) 
Using rack (1.4.1) 
Using rack-cache (1.2) 
Using rack-test (0.6.1) 
Using hike (1.2.1) 
Using tilt (1.3.3) 
Using sprockets (2.1.3) 
Using actionpack (3.2.8) 
Using mime-types (1.19) 
Using polyglot (0.3.3) 
Using treetop (1.4.10) 
Using mail (2.4.4) 
Using actionmailer (3.2.8) 
Using arel (3.0.2) 
Using tzinfo (0.3.33) 
Using activerecord (3.2.8) 
Using activeresource (3.2.8) 
Using bundler (1.1.5) 
Using coffee-script-source (1.3.3) 
Using execjs (1.4.0) 
Using coffee-script (2.2.0) 
Using rack-ssl (1.3.2) 
Installing json (1.7.5) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. 

     C:/Ruby193/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:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.7.5 for inspection. 
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.7.5/ext/json/ext/generator/gem_make.out 
An error occured while installing json (1.7.5), and Bundler cannot continue. 
Make sure that `gem install json -v '1.7.5'` succeeds before bundling. 

回答

2

ruby dk.rb install --force在DevKit目錄中有所斬獲。

+0

我在我的Mac上得到了此錯誤。解決方案是我的xcode最近更新了,我不得不重新安裝命令行工具。希望能幫助一些mac用戶。 – Deekor

0

有些寶石需要編譯,這是json寶石的情況下。

您可以通過從downloads page

一旦下載安裝RubyInstaller的的devkit,可以解決大部分的寶石編譯問題,請遵循RubyInstaller wiki頁面的installation instructions

安裝完成後,打開一個新的命令提示符,然後嘗試重新安裝有問題的寶石:

gem install json 

它應該會成功。

這是考慮DevKit已正確安裝。由於RubyInstaller郵件列表上的討論,你可以強制安裝的devkit:

ruby dk.rb install --force 

在的devkit目錄。

+0

是的,我在我的問題開始時提到我已經安裝了DevKit。 –

+0

您應該檢查故障排除頁面以確定失敗的原因:https://github.com/oneclick/rubyinstaller/wiki/Troubleshooting –

+0

在故障排除頁面中沒有任何相關信息 –

相關問題