ruby에 rails를 설치했다. 그래서 
rails new sample 같이 폴더를 만들고 서버실행을 하려고 하는데 아래와 같은 에러...


D:\Code\sample>rails server
    Rails 3 doesn't officially support Ruby 1.9.1 since recent stable
    releases have segfaulted the test suite. Please upgrade to Ruby 1.9.2.
    You're running
      ruby 1.9.1p430 (2010-08-16 revision 28998) [i386-mingw32]
Exiting
C:/Ruby191/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/backports/uri/common_192.rb:53:in `remove_const': constant URI::
WFKV_ not defined (NameError)
        from C:/Ruby191/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/backports/uri/common_192.rb:53:in `<module:URI>'
        from C:/Ruby191/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/backports/uri/common_192.rb:19:in `<top (required)>
'
        from C:/Ruby191/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/utils.rb:12:in `gem_original_require'
        from C:/Ruby191/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/utils.rb:12:in `<top (required)>'
        from C:/Ruby191/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/content_length.rb:1:in `gem_original_require'
        from C:/Ruby191/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/content_length.rb:1:in `<top (required)>'
        from C:/Ruby191/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler/webrick.rb:3:in `gem_original_require'
        from C:/Ruby191/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler/webrick.rb:3:in `<top (required)>'
        from C:/Ruby191/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler.rb:43:in `rescue in default'
        from C:/Ruby191/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler.rb:40:in `default'
        from C:/Ruby191/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:269:in `server'
        from C:/Ruby191/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/commands/server.rb:59:in `start'
        from C:/Ruby191/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/commands.rb:55:in `block in <top (required)>'
        from C:/Ruby191/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/commands.rb:50:in `tap'
        from C:/Ruby191/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/commands.rb:50:in `<top (required)>'
        from script/rails:6:in `gem_original_require'
        from script/rails:6:in `<main>'



해결법은 1.9.3으로 버전을 올리니 해결


$ ruby -version
C:\Users\user1>ruby -v
ruby 1.9.3p125 (2012-02-16) [i386-mingw32]

$ gem update --system

$ gem install json -v '1.6.5'

$ gem install rails

$ rails -v
Rails 3.2.2


$ rails new sample
$ cd sample
$ rails server
=> Booting WEBrick
=> Rails 3.2.1 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2012-03-02 12:20:41] INFO  WEBrick 1.3.1
[2012-03-02 12:20:41] INFO  ruby 1.9.3 (2012-02-16) [i386-mingw32]
[2012-03-02 12:20:41] INFO  WEBrick::HTTPServer#start: pid=4584 port=3000

Started GET "/assets/rails.png" for 127.0.0.1 at 2012-03-02 12:20:59 +0900
Served asset /rails.png - 200 OK (15ms)
[2012-03-02 12:22:33] WARN  Could not determine content-length of response body. Set content-length of the response or s
et Response#chunked = true

Started GET "/assets/rails.png" for 127.0.0.1 at 2012-03-02 12:22:33 +0900
Served asset /rails.png - 304 Not Modified (0ms)
[2012-03-02 12:22:33] WARN  Could not determine content-length of response body. Set content-length of the response or s
et Response#chunked = true
[2012-03-02 12:22:34] WARN  Could not determine content-length of response body. Set content-length of the response or s
et Response#chunked = true

Started GET "/assets/rails.png" for 127.0.0.1 at 2012-03-02 12:22:34 +0900
Served asset /rails.png - 304 Not Modified (0ms)
[2012-03-02 12:22:34] WARN  Could not determine content-length of response body. Set content-length of the response or s
et Response#chunked = true


+ Recent posts