Ruby on Rails: сбой установки Mac OS X 10.6.Пожалуйста помоги - PullRequest
0 голосов
/ 27 февраля 2011

Я только что закончил учебник tryruby.org, затем учебники rubyforzombies.org, и все было хорошо. Затем я перешел к установке Ruby 1.9.2 и Rails 3.0.4 с помощью терминала Mac Os X 10.6, пока все хорошо.

Я создал приложение rails через командную строку следующим образом:

$ rails new ~/Sites/_ruby/rail3sqlite

$ cd rails3sqlite

$ rails server

Структура папок и файлов создается успешно, но когда я запускаю последнюю строку rails server, я просто получаю сообщение об ошибке:

Could not find gem 'sqlite3 (>= 0, runtime)' in any of the gem sources 
listed in your Gemfile.

Как мне заставить это работать?

Мне кажется, что это сложнее, чем изучение языка в данный момент.

В любом случае было бы замечательно, если бы кто-то мог помочь мне с этой проблемой установки.

До сих пор я использовал MAMP только для локального запуска PHP (который настраивает все автоматически), поэтому я привык использовать MySQL, а не SQLite.

Есть ли причина выбирать одно над другим?

Существуют ли инструменты графического интерфейса для SQlite, такие как PhpMyAdmin для MySQL?

Как заставить рельсы работать с MySQL? (Я попытался добавить опцию -d mysql в команду rails new, но затем я получил ту же ошибку, что и выше, с mysql2 в отличие от sqlite3.

Спасибо, Jannis

Обновление:

Поэтому я следовал приведенному ниже совету и запустил $ bundle install в своем каталоге ruby3sqlite, и это было возвращено в консоли:


Jannis:rail3sqlite Jannis$ bundle install
Fetching source index for http://rubygems.org/
/Users/Jannis/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:184:in `rescue in fetch_path': SocketError: getaddrinfo: nodename nor servname provided, or not known (http://rubygems.org/quick/Marshal.4.8/sqlite3-1.3.3.gemspec.rz) (Gem::RemoteFetcher::FetchError)

Далее следуют все эти строки:

    from /Users/Jannis/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:176:in `fetch_path'
    from /Users/Jannis/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:111:in `fetch_spec'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/remote_specification.rb:47:in `_remote_specification'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/remote_specification.rb:53:in `method_missing'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:101:in `block in __dependencies'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:98:in `each'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:98:in `__dependencies'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:68:in `activate_platform'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:325:in `resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:295:in `block in resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `reverse_each'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:344:in `block in resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `catch'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:295:in `block in resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `reverse_each'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:215:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:215:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:344:in `block in resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `catch'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:295:in `block in resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `reverse_each'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:344:in `block in resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `catch'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:295:in `block in resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `reverse_each'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:344:in `block in resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `catch'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:295:in `block in resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `reverse_each'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:344:in `block in resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `catch'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:295:in `block in resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `reverse_each'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:215:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:344:in `block in resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `catch'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:295:in `block in resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `reverse_each'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:344:in `block in resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `catch'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:295:in `block in resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `reverse_each'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:215:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:344:in `block in resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `catch'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:295:in `block in resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `reverse_each'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:215:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:344:in `block in resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `catch'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:295:in `block in resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `reverse_each'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:344:in `block in resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `catch'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:295:in `block in resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `reverse_each'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:215:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:215:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:344:in `block in resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `catch'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:295:in `block in resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `reverse_each'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:344:in `block in resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `catch'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:295:in `block in resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `reverse_each'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:215:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:215:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:215:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:215:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:344:in `block in resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `catch'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:295:in `block in resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `reverse_each'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:215:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:215:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:344:in `block in resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `catch'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:295:in `block in resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `reverse_each'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:344:in `block in resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `catch'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:295:in `block in resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `reverse_each'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:344:in `block in resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `catch'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:295:in `block in resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `reverse_each'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:215:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:344:in `block in resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `catch'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:295:in `block in resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `reverse_each'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:344:in `block in resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `catch'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:295:in `block in resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `reverse_each'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:344:in `block in resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `catch'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:295:in `block in resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `reverse_each'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:215:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:344:in `block in resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `catch'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:295:in `block in resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `reverse_each'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:215:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:344:in `block in resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `catch'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:295:in `block in resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `reverse_each'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:344:in `block in resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `catch'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:295:in `block in resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `reverse_each'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:215:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:344:in `block in resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `catch'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:343:in `resolve_requirement'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:295:in `block in resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `reverse_each'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:294:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:160:in `start'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:128:in `block in resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:127:in `catch'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/resolver.rb:127:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/definition.rb:151:in `resolve'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/definition.rb:90:in `specs'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/definition.rb:85:in `resolve_remotely!'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/installer.rb:35:in `run'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/installer.rb:8:in `install'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/cli.rb:226:in `install'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/vendor/thor/task.rb:22:in `run'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/vendor/thor.rb:246:in `dispatch'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/lib/bundler/vendor/thor/base.rb:389:in `start'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/bundler-1.0.10/bin/bundle:13:in `<top (required)>'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/bin/bundle:19:in `load'
    from /Users/Jannis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/bin/bundle:19:in `<main>'
Jannis:rail3sqlite Jannis$ rails server
Could not find gem 'sqlite3 (>= 0, runtime)' in any of the gem sources listed in your Gemfile.

Если у вас есть идеи, что означают эти строки и что мне нужно сделать, я был бы очень признателен за вашу помощь.

Спасибо за предложения, пока! Очень ценится.


Обновление 2:

Так что, похоже, вышеупомянутое было просто временным, может быть, сервер gems не работал или у моего провайдера возникла проблема? Кто знает ... так или иначе, я запустил команду bundle install, и теперь все работает как надо.

Спасибо.

Ответы [ 4 ]

2 голосов
/ 27 февраля 2011

В Rails 3 гемы, от которых зависит ваш проект, перечислены в Gemfile в корневом каталоге вашего проекта.Вам нужно запустить bundle install, чтобы (1) убедиться, что зависимости ваших приложений установлены, и (2) сгенерировать Gemfile.lock, который точно определяет, какие версии этих драгоценных камней должно использовать ваше приложение.(Обратите внимание, что одна команда выполняет обе эти функции за вас.)

После запуска bundle install вы сможете запустить сервер разработки, используя rails server.

[Редактировать]

Вы можете узнать больше о Bundler, системе, которая управляет вашей Gemfile, на домашней странице Bundler .

0 голосов
/ 04 сентября 2013

Для свежей установки rails4 (ruby 2) на Mac, ознакомьтесь с этой записью в блоге:

http://blog.parsalabs.com/blog/2013/08/27/setting-up-a-ruby-on-rails-4-development-environment-on-a-clean-mac-os-x-installation/

Я попробовал и протестировал этот метод на своем Mac. Я поделился этим с сообществом. надеюсь, вы найдете это полезным.

0 голосов
/ 13 апреля 2011

Я собрал процедуру для Rails 3 / Ruby 1.9.2 / RVM на Snow Leopard 10.6 ... и подбросил ее на сайт. Посмотрите, это может помочь с некоторыми вашими проблемами.

http://railsonosx.com

0 голосов
/ 27 февраля 2011

Обязательно cd rails3sqlite3, а затем bundle install.

...