2011-04-06 17 views
5

मैं "बंडल इंस्टॉल" चलाने का प्रयास कर रहा हूं। मैंने पहले से ही रूबी देवकिट स्थापित कर लिया है और इसे मेरे रास्ते में जोड़ा है। यह एक मान्यता प्राप्त आदेश नहीं होने के बारे में शिकायत करता है। क्या वह devkit जोड़ने के लिए नहीं है? इस समस्या के उत्तर की खोज करते समय, हर उत्तर "devkit इंस्टॉल करें" प्रतीत होता है। मैं विंडोज 7 पर हूं, अपने पर्यावरण को कॉन्फ़िगर करने का सबसे आसान तरीका यह है कि इसे रत्न बनाने की अनुमति दें?बंडल इंस्टॉल अनुपलब्ध बनाने के कारण विफल रहता है

$ bundle install 
Fetching source index for http://rubygems.org/ 
Using rake (0.8.7) 
Using activesupport (2.3.11) 
Using rack (1.1.0) 
Using actionpack (2.3.11) 
Using actionmailer (2.3.11) 
Using activerecord (2.3.11) 
Using activeresource (2.3.11) 
Using annotate (2.4.0) 
Using authlogic (2.1.6) 
Using columnize (0.3.2) 
Using haml (3.0.25) 
Using compass (0.10.6) 
Using configuration (1.2.0) 
Using daemons (1.0.10) 
Using declarative_authorization (0.5.2) 
Using delayed_job (2.0.7) 
Using i18n (0.5.0) 
Using faker (0.9.5) 
Using mocha (0.9.12) 
Using will_paginate (2.3.15) 
Using haml_scaffold (1.1.0) 
Installing json (1.4.6) with native extensions c:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/installer.rb:483:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) 

c:/Ruby187/bin/ruby.exe extconf.rb 
checking for re.h... yes 
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:/Ruby187/lib/ruby/gems/1.8/gems/json-1.4.6 for inspection. 
Results logged to c:/Ruby187/lib/ruby/gems/1.8/gems/json-1.4.6/ext/json/ext/generator/gem_make.out 
     from c:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/installer.rb:446:in `each' 
     from c:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/installer.rb:446:in `build_extensions' 
     from c:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/installer.rb:198:in `install' 
     from c:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.11/lib/bundler/source.rb:96:in `install' 
     from c:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.11/lib/bundler/installer.rb:55:in `run' 
     from c:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.11/lib/bundler/spec_set.rb:12:in `each' 
     from c:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.11/lib/bundler/spec_set.rb:12:in `each' 
     from c:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.11/lib/bundler/installer.rb:44:in `run' 
     from c:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.11/lib/bundler/installer.rb:8:in `install' 
     from c:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.11/lib/bundler/cli.rb:226:in `install' 
     from c:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.11/lib/bundler/vendor/thor/task.rb:22:in `send' 
     from c:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.11/lib/bundler/vendor/thor/task.rb:22:in `run' 
     from c:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.11/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task' 
     from c:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.11/lib/bundler/vendor/thor.rb:246:in `dispatch' 
     from c:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.11/lib/bundler/vendor/thor/base.rb:389:in `start' 
     from c:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.11/bin/bundle:13 
     from c:/Ruby187/bin/bundle:19:in `load' 
     from c:/Ruby187/bin/bundle:19 

Gemfile:

source 'http://rubygems.org' 

gem 'rails', '2.3.11' 
gem 'paper_trail', '~> 1' 
gem 'will_paginate', '~> 2.3.11' 
gem 'paperclip', '~> 2.3' 
gem 'haml' 
gem 'compass', '>= 0.10.6' 
gem 'authlogic' 
gem 'declarative_authorization' 
gem 'delayed_job', '~> 2.0.4' 

group :development, :test do 
    gem 'heroku' 
    gem 'sqlite3' 
    gem 'heroku_san' 
    gem 'ruby-debug' 
    gem 'faker' 
    gem 'rcov' 
    gem 'annotate' 
    gem 'mocha' 
    gem 'haml_scaffold' 
end 

group :production do 
    # TODO 
end 

उत्तर

14

मुद्दा मैं Windows कमांड प्रॉम्प्ट के अलावा कुछ में devkit स्थापित किया गया था। सुनिश्चित करें कि आप इसका उपयोग करें। यदि आपने इसे पहले से किसी अन्य चीज़ से स्थापित करने का प्रयास किया है, तो चलाएं:

ruby dk.rb install --force 
-1

आप सुनिश्चित करने की आवश्यकता आप जीसीसी/जी ++ और स्थापित करना है

मैं निम्नलिखित उत्पादन प्राप्त करते हैं। रूबी सी पर बनाया गया है ताकि आपको सी कंपेलर (जो मेक का उपयोग करता है) की आवश्यकता होगी ताकि यह सुनिश्चित किया जा सके कि सब ठीक से चल रहा है।

Tips for how to install GCC

+1

वह Windows का उपयोग कर रहा है, निम्न चरणों का लिनक्स के लिए आवेदन को कवर करने के । –

0

मुझे एक ही समस्या का सामना करना पड़ा।

थोड़ी देर के लिए संघर्ष करने के बाद, मैंने विंडोज़ को रिबूट किया और समस्याओं को जादूगर हल किया गया।

-1

संपादित करें: नोट: नीचे दिए गए कदम लिनक्स के लिए हैं और मैंने केवल इसका उत्तर देने का समय लिया क्योंकि यह Google पर पहली प्रतिक्रिया के रूप में आया था और हालांकि यह किसी और की मदद कर सकता है। विंडोज़ उत्तर पहले से ही दिया गया है और पहले से ही सही के रूप में चुना गया है।

===

मैं जब माणिक स्थापित करने के बाद रेल स्थापित करने के लिए कोशिश कर रहा linux में एक ही समस्या मिला है।

जब मैं रूबी स्थापित निर्भरता से एक जीसीसी जो आपको लगता है बनाने रूप में अच्छी तरह स्थापित किया गया है हो जाएगा है।

बस आगे जाना है और मेकअप स्थापित: sudo apt-get install make या अगर तुम मुझे पसंद कर रहे हैं और समस्या आने पर नहीं करना चाहते फिर से बस चलाने: sudo apt-get install build-essential यह सब :)

संबंधित मुद्दे