6

मैं सिर्फपाउ/रेल त्रुटि: applicationBundler :: GemNotFound प्रारंभ करने में त्रुटि: सूत्रों में से किसी में minitest-4.7.5 नहीं मिल सका

मैं RVM हटाने और पुनर्स्थापित करने के लिए, था और उसके बाद स्थापित रूबी 2.0.0 प्रोजेक्ट में कमांड लाइन से रन रेल कंसोल चलाएं, लेकिन इसे ब्राउज़र में लोड नहीं किया जा सकता है।

मैं यहां कुछ जवाबों के माध्यम से पढ़ रहा था .bash_profile और .bashrc और न ही मेरे ~ फ़ोल्डर में मौजूद है। मैंने .bashrc फ़ाइल के साथ गड़बड़ करने की कोशिश की लेकिन कुछ भी मदद नहीं करता है।

मेरी .bashrc में:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" 

rvm सूची:

=* ruby-2.0.0-p247 [ x86_64 ] 

रेल -v

Rails 4.0.0 

अब जब मैं अपने आवेदन शुरू करने की कोशिश मैं इस देखें:

Bundler::GemNotFound: Could not find minitest-4.7.5 in any of the sources /usr/local/rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/spec_set.rb:92:in block in materialize' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in map!' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in materialize' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/definition.rb:114:in specs' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/definition.rb:159:in specs_for' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/definition.rb:148:in requested_specs' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/environment.rb:18:in requested_specs' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/runtime.rb:13:in setup' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler.rb:120:in setup' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/setup.rb:17:in ' /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:116:in require' /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:116:in rescue in require' /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:122:in require' ~/Sites/projectname/config/boot.rb:4:in ' /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in require' /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in require' ~/Sites/projectname/config/application.rb:1:in <top (required)>' /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in require' /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in require' ~/Sites/projectname/config/environment.rb:2:in ' /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in require' /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in require' ~/Sites/projectname/config.ru:3:in block in <main>' ~/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/builder.rb:4:in instance_eval' ~/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/builder.rb:4:in initialize' ~/Sites/projectname/config.ru:1:in new' ~/Sites/projectname/config.ru:1:in <main>' ~/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/server.rb:50:in eval' ~/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/server.rb:50:in load_config' ~/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/server.rb:43:in initialize' ~/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/server.rb:13:in new' ~/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/server.rb:13:in run' ~/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/bin/nack_worker:4:in `'

rvm जानकारी:

system: 
    uname:  "**** 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64" 
    system:  "osx/10.7/x86_64" 
    bash:  "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin11)" 
    zsh:   "/bin/zsh => zsh 4.3.11 (i386-apple-darwin11.0)" 

    rvm: 
    version:  "rvm 1.22.3 (master) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]" 
    updated:  "3 days 23 hours 28 minutes 44 seconds ago" 
    path:   "/usr/local/rvm" 

    ruby: 
    interpreter: "ruby" 
    version:  "2.0.0p247" 
    date:   "2013-06-27" 
    platform:  "x86_64-darwin11.4.2" 
    patchlevel: "2013-06-27 revision 41674" 
    full_version: "ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin11.4.2]" 

    homes: 
    gem:   "/usr/local/rvm/gems/ruby-2.0.0-p247" 
    ruby:   "/usr/local/rvm/rubies/ruby-2.0.0-p247" 

    binaries: 
    ruby:   "/usr/local/rvm/rubies/ruby-2.0.0-p247/bin/ruby" 
    irb:   "/usr/local/rvm/rubies/ruby-2.0.0-p247/bin/irb" 
    gem:   "/usr/local/rvm/rubies/ruby-2.0.0-p247/bin/gem" 
    rake:   "/usr/local/rvm/gems/[email protected]/bin/rake" 

    environment: 
    PATH:   "/usr/local/rvm/gems/ruby-2.0.0-p247/bin:/usr/local/rvm/gems/[email protected]/bin:/usr/local/rvm/rubies/ruby-2.0.0-p247/bin:/usr/local/rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/opt/sm/bin:/opt/sm/pkg/active/bin:/opt/sm/pkg/active/sbin:/usr/local/mysql/bin" 
    GEM_HOME:  "/usr/local/rvm/gems/ruby-2.0.0-p247" 
    GEM_PATH:  "/usr/local/rvm/gems/ruby-2.0.0-p247:/usr/local/rvm/gems/[email protected]" 
    MY_RUBY_HOME: "/usr/local/rvm/rubies/ruby-2.0.0-p247" 
    IRBRC:  "/usr/local/rvm/rubies/ruby-2.0.0-p247/.irbrc" 
    RUBYOPT:  "" 
    gemset:  "" 

बंडल:

Using: /usr/local/rvm/gems/[email protected] 
mac:project joel$ bundle install 
Using rake (10.1.0) 
Using i18n (0.6.5) 
Using minitest (4.7.5) 
Using multi_json (1.7.9) 
Using atomic (1.1.13) 
Using thread_safe (0.1.2) 
Using tzinfo (0.3.37) 
Using activesupport (4.0.0) 
Using builder (3.1.4) 
Using erubis (2.7.0) 
Using rack (1.5.2) 
Using rack-test (0.6.2) 
Using actionpack (4.0.0) 
Using mime-types (1.24) 
Using polyglot (0.3.3) 
Using treetop (1.4.15) 
Using mail (2.5.4) 
Using actionmailer (4.0.0) 
Using activemodel (4.0.0) 
Using activerecord-deprecated_finders (1.0.3) 
Using arel (4.0.0) 
Using activerecord (4.0.0) 
Using coffee-script-source (1.6.3) 
Using execjs (2.0.0) 
Using coffee-script (2.2.0) 
Using thor (0.18.1) 
Using railties (4.0.0) 
Using coffee-rails (4.0.0) 
Using multipart-post (1.2.0) 
Using faraday (0.8.8) 
Using hashie (2.0.5) 
Using hike (1.2.3) 
Using httpauth (0.2.0) 
Using jbuilder (1.5.1) 
Using jquery-rails (3.0.4) 
Using json (1.8.0) 
Using jwt (0.1.8) 
Using oauth2 (0.8.1) 
Using omniauth (1.1.4) 
Using omniauth-oauth2 (1.0.3) 
Using omniauth-facebook (1.4.0) 
Using pg (0.16.0) 
Using bundler (1.3.5) 
Using tilt (1.4.1) 
Using sprockets (2.10.0) 
Using sprockets-rails (2.0.0) 
Using rails (4.0.0) 
Using rdoc (3.12.2) 
Using sass (3.2.10) 
Using sass-rails (4.0.0) 
Using sdoc (0.3.20) 
Using turbolinks (1.3.0) 
Using uglifier (2.2.0) 
Your bundle is complete! 
Use `bundle show [gemname]` to see where a bundled gem is installed. 

उत्तर

6

क्या आप वाकई आरवीएम/पॉव के लिए एकीकरण स्थापित कर रहे हैं?

दोनों परियोजनाएं उदाहरण दिखाती हैं कि यह कैसे करें, हालांकि आरवीएम एक अधिक पूर्ण है: http://rvm.io/integration/pow#using-rvm-with-pow - मैं यहां कोड चिपका नहीं रहा क्योंकि साइट आवश्यक होने पर अपडेट हो जाएगी।

+0

मुझे अपनी प्रोजेक्ट में एक .powrc फ़ाइल चाहिए। –

1

आप को चलाने के लिए की जरूरत है:

bundle install 

यह सुनिश्चित करेगा सभी आवेदन के लिए आवश्यक जवाहरात यह के लिए उपलब्ध हैं

+0

मैं बंडल भाग गया, अपनी परियोजना –

+0

यह दिखाता है 'minitest-4.7.5' के लिए मेरे gemset में सभी जवाहरात दिखा रहा है? – mpapis

+0

हाँ। जब मैं उस मशीन पर घर जाता हूं तो मैं बंडल आउटपुट पोस्ट करूंगा। मैं RVM और .rvmrc फ़ाइल का उपयोग कर रहा हूं, इसलिए यह लाइन रूबी संस्करण के बाद मेरा मणि नाम नहीं कहनी चाहिए: ** बंडलर :: GemNotFound: किसी भी स्रोत/usr/local/rvm में minitest-4.7.5 नहीं मिल सका /gems/ruby-2.0.0-p247** @GEMSETNAMEHERE –

1

में अधिक जानकारी देख सकते हैं:

rvm 2.0.0 
या नीचे

यदि आप अलग अलग gemset का उपयोग bundler version 1.5.0 के संबंध में, आपको अपने बंडलर को संस्करण 1.5.1 में अपग्रेड करना चाहिए ताकि एक गंदे छोटे बग को ठीक किया जा सके जो su रुबी 1.9 और 2.0 में डिफ़ॉल्ट रत्न के साथ rfaces। मैं बस बंडल स्थापित करने और अब सब कुछ ठीक लग रहा है चलाने से पहले मणि अद्यतन बंडलर भाग गया।

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