Ruby on rails 无法加载这样的文件--pty(LoadError)

Ruby on rails 无法加载这样的文件--pty(LoadError),ruby-on-rails,ruby-on-rails-3.2,rubygems,Ruby On Rails,Ruby On Rails 3.2,Rubygems,RubyonRails是全新的。我的环境是Windows 2008 R2,我只使用 RailsInstaller来安装它。我得到了一个网站,所以我把它放在C:\Sites下。 我按照指南安装了rails,正如您在代码中看到的版本一样。 然后我运行“rails服务器”尝试启动该服务,但收到了关于的错误消息“therubyracer-heroku-0.8.1.pre3没有安装,所以我在那之后安装了gem和bundle。然后therubyracer heroku抛出了一堆错误,所以我查了一下,告诉我需

RubyonRails是全新的。我的环境是Windows 2008 R2,我只使用 RailsInstaller来安装它。我得到了一个网站,所以我把它放在C:\Sites下。 我按照指南安装了rails,正如您在代码中看到的版本一样。 然后我运行“rails服务器”尝试启动该服务,但收到了关于的错误消息“therubyracer-heroku-0.8.1.pre3没有安装,所以我在那之后安装了gem和bundle。然后therubyracer heroku抛出了一堆错误,所以我查了一下,告诉我需要将它打包成一个组,我这样做了,并从gem文件的生产组中删除了它。现在,当我进行“捆绑安装”时,一切都很好,所以我继续使用“rails服务器”,下面是错误消息。有什么帮助吗?请

source 'https://rubygems.org'
ruby '1.9.3'

gem 'rails', '3.2.13'

gem 'pg'
gem 'hashie'
gem 'figaro' # handles app configurations
gem 'airbrake' # exception/error tracking service
gem 'haml'
gem 'validates_existence', '>= 0.4'
gem 'useragent'
gem 'heroku'

group :development do
    gem 'zeus' # speeds up loading of console and server
    gem 'better_errors' # nicely-formatted UI of errors
    gem 'binding_of_caller' # allows real-time debugging on error breakpoints
    gem 'therubyracer', :platforms => :ruby, :require => 'v8'
end

group :production do

end

# Gems used only for assets and not required
# in production environments by default.
group :assets do
end

gem 'sass-rails',   '~> 3.2.5'
gem 'coffee-rails', '~> 3.2.2'
gem 'uglifier'
gem 'jquery-rails'
gem 'prototype-rails'
gem 'coffee-filter'
-错误输出

    Rails 3.2.13
    ruby 1.9.3p429 (2013-05-15) [i386-mingw32]

    $ rails server
    c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/ac
    tive_support/dependencies.rb:251:in `require': cannot load such file -- pty (LoadError)

    from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
    from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
    from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
    from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/zeus-0.13.3/lib/zeus.rb:4:in `<top (required)>'
    from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
    from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
    from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
    from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
    from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
    from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
    from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
    from c:/Sites/rct/config/application.rb:7:in `<top (required)>'
    from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/commands.rb:53:in `require'
    from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/commands.rb:53:in `block in <top (required)>'
    from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap'
    from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/commands.rb:50:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'
Rails 3.2.13
ruby 1.9.3p429(2013-05-15)[i386-mingw32]
$rails服务器
c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/ac
tive_support/dependencies.rb:251:在'require'中:无法加载这样的文件--pty(LoadError)
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active\u-support/dependencies.rb:251:in'block in require'
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active\u support/dependencies.rb:236:in'load\u dependenciency'
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active\u support/dependencies.rb:251:in'require'
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/zeus-0.13.3/lib/zeus.rb:4:in`'
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in'require'
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in'block(2级)in require'
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in'each'
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in'block in require'
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in'each'
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in'require'
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:132:in'require'
从c:/Sites/rct/config/application.rb:7:in`'
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/commands.rb:53:in'require'
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/commands.rb:53:in'block in'
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/commands.rb:50:in'tap'
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/commands.rb:50:in`'
来自脚本/rails:6:in'require'
来自脚本/rails:6:in`'

宙斯gem需要Linux或Mac OS X参见


从Gemfile中删除zeus gem,运行
捆绑安装
,然后重试
rails服务器

删除。但是关于activesupport、bundler或railties,这是windows的路径问题吗?不,这三个方面都很好