2012-10-02 197 views
0

我試圖在具有服務器文件夾的目錄內運行時遇到此問題。別的地方,沒關係,並說Rails 3.2.8。這裏的問題是信息:(我使用Ruby 1.9.2)嘗試運行rails服務器時出現錯誤消息

$ rails -v 
/Users/ngockhanhdao/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.8/lib/rails/script_rails_loader.rb:11: warning: Insecure world writable dir /usr/local in PATH, mode 040777 
Could not find builder-3.0.0 in any of the sources 
Run `bundle install` to install missing gems. 

我安裝包,它說:

$ sudo bundle install 
/Users/ngockhanhdao/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find bundler (>= 0) amongst [actionmailer-3.2.8, actionpack-3.2.8, activemodel-3.2.8, activerecord-3.2.8, activeresource-3.2.8, activesupport-3.2.8, arel-3.0.2, builder-3.0.3, erubis-2.7.0, hike-1.2.1, i18n-0.6.1, journey-1.0.4, json-1.7.5, mail-2.4.4, mime-types-1.19, multi_json-1.3.6, polyglot-0.3.3, rack-1.4.1, rack-cache-1.2, rack-ssl-1.3.2, rack-test-0.6.2, rails-3.2.8, railties-3.2.8, rdoc-3.12, rubygems-update-1.8.24, sprockets-2.1.3, thor-0.16.0, tilt-1.3.3, treetop-1.4.10, tzinfo-0.3.33] (Gem::LoadError) 
    from /Users/ngockhanhdao/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec' 
    from /Users/ngockhanhdao/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems.rb:1231:in `gem' 
    from /Users/ngockhanhdao/.rvm/gems/[email protected]/bin/bundle:22:in `<main>' 

感謝

+0

檢查了這個http://stackoverflow.com/questions/3914694/bundle-command-not-found –

回答

1

你缺少既builderbundler寶石..做gem install bundler然後做一個bundle install

不知道你是否需要sudo這些命令...

+1

'捆綁安裝'不應該與'sudo'一起使用,因爲它會將gem安裝爲'root'和,這取決於環境,可能會限制應用程序訪問這些文件。它違背了Bundler的全部觀點。 – bricker

相關問題