【问题标题】:unable to start webrick in windows xp无法在 windows xp 中启动 webrick
【发布时间】: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


【解决方案1】:

尝试运行这些命令,然后再次尝试rails s

gem install specific_install
gem specific_install -l http://github.com/eventmachine/eventmachine.git

【讨论】:

  • 嗨@Nexerus,即使eventmachine已成功安装,我也收到了与我第一次发布的相同的错误消息。知道为什么吗?到目前为止,谢谢。
  • 尝试从 Git 存储库中检查特定版本并重试,不太确定从目录安装的命令,但尝试 gem specific_install ./ 如果这不起作用,请尝试使用 -l ./
猜你喜欢
  • 2013-06-19
  • 1970-01-01
  • 1970-01-01
  • 2013-06-30
  • 1970-01-01
  • 2014-07-30
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多