无法在Windows 8.1上的rails 1.9.3上安装ruby

时间:2014-09-21 01:13:32

标签: ruby-on-rails ruby windows-8.1 require pty

经过多次尝试,我放弃了。当我在创建新项目后尝试运行ROR时,此消息会一直显示:

C:\Ruby193\test_1>rails s
C:/Ruby193/lib/ruby/gems/1.9.1/gems/web-console-2.0.0.beta3/lib/web_console/slave.rb:1:in `require': cannot load such file -- pty (LoadError)
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/web-console-2.0.0.beta3/lib/web_console/slave.rb:1:in `<top (required)>'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/web-console-2.0.0.beta3/lib/web_console.rb:13:in `require'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/web-console-2.0.0.beta3/lib/web_console.rb:13:in `<top (required)>'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/web-console-2.0.0.beta3/lib/web-console.rb:1:in `require'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/web-console-2.0.0.beta3/lib/web-console.rb:1:in `<top (required)>'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.7.3/lib/bundler/runtime.rb:76:in `require'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.7.3/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.7.3/lib/bundler/runtime.rb:72:in `each'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.7.3/lib/bundler/runtime.rb:72:in `block in require'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.7.3/lib/bundler/runtime.rb:61:in `each'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.7.3/lib/bundler/runtime.rb:61:in `require'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.7.3/lib/bundler.rb:133:in `require'
    from C:/Ruby193/test_1/config/application.rb:7:in `<top (required)>'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-4.2.0.beta1/lib/rails/commands/commands_tasks.rb:78:in `require'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-4.2.0.beta1/lib/rails/commands/commands_tasks.rb:78:in `block in server'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-4.2.0.beta1/lib/rails/commands/commands_tasks.rb:75:in `tap'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-4.2.0.beta1/lib/rails/commands/commands_tasks.rb:75:in `server'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-4.2.0.beta1/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
    from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-4.2.0.beta1/lib/rails/commands.rb:17:in `<top (required)>'
    from bin/rails:4:in `require'
    from bin/rails:4:in `<main>'
有人会帮我弄清问题是什么?

2 个答案:

答案 0 :(得分:0)

安装rails环境时首先要做的就是安装捆绑器本身

rails bundler install

答案 1 :(得分:0)

发动机码的

rails installer将是一个简单的解决方案,为您提供所有必要的包。

他们还提供与ruby 1.9.3 here

一起打包的版本

Windows上的常见问题

如果您使用2.0 +以下线程将是相关的。

TZInfo::DataSourceNotFound error starting Rails v4.1.0

Can't access RubyGems SSL error

“DL is deprecated, please use Fiddle” warning