【发布时间】:2011-11-29 21:39:51
【问题描述】:
当我尝试在我的 windows xp 上启动 webrick 服务器时遇到此错误。
←[31mCould not find eventmachine-0.12.10 in any of the sources←[0m
←[33mRun `bundle install` to install missing gems.←[0m
我已经进行了“捆绑安装”。也尝试安装 mongrel,但没有帮助!
Gemfile 代码:
source 'http://rubygems.org'
gem 'rails', '3.0.10'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
#gem 'sqlite3'
group :production do
gem 'pg'
end
group :development, :test do
gem 'sqlite3'
end
gem 'thin'
# Use unicorn as the web server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
# gem 'ruby-debug'
# gem 'ruby-debug19', :require => 'ruby-debug'
# Bundle the extra gems:
# gem 'bj'
# gem 'nokogiri'
# gem 'sqlite3-ruby', :require => 'sqlite3'
# gem 'aws-s3', :require => 'aws/s3'
# Bundle gems for the local environment. Make sure to
# put test-only gems in this group so their generators
# and rake tasks are available in development mode:
# group :development, :test do
# gem 'webrat'
# end
【问题讨论】:
-
你试过
bundle exec rails s吗? -
嗨@Bohdan Pohorilets,当我尝试“bundle exec rails s”时收到以下错误消息 - “在任何来源中都找不到 eventmachine-0.12.10”
-
嗨@BohdanPohorilets,我已经在上面发布了我的gem文件的代码。对于迟到的回复,我深表歉意。感谢您迄今为止的帮助。
-
Thin 取决于 eventmachine 所以如果你运行
bundle install它应该被安装你是否尝试删除你的Gemfile.lock并再次运行bundle install? -
嗨@Bohdan 这是我这样做时得到的---------←[31m在列出的任何 gem 源中找不到 gem 'rails (= 3.0.10)'在我们的 Gemfile 中。←[0m ←[33mRun
bundle install安装丢失的 gem。←[0m 知道为什么会这样吗?
标签: ruby-on-rails windows-xp mongrel webrick