Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running rackup with cygwin Ruby 1.9.3 #6

Open
marcel-valdez opened this issue Jan 13, 2013 · 2 comments
Open

Error running rackup with cygwin Ruby 1.9.3 #6

marcel-valdez opened this issue Jan 13, 2013 · 2 comments

Comments

@marcel-valdez
Copy link

I got this error when running rackup:

$ bundle exec rackup -p 9292
/usr/lib/ruby/gems/1.9.1/bundler/gems/ruhoh.rb-910e74a82e52/lib/ruhoh.rb:7:in `require': cannot load such file -- json (LoadError)
        from /usr/lib/ruby/gems/1.9.1/bundler/gems/ruhoh.rb-910e74a82e52/lib/ruhoh.rb:7:in `<top (required)>'
        from /cygdrive/d/proyects/marcel-valdez.ruhoh.com/config.ru:2:in `require'
        from /cygdrive/d/proyects/marcel-valdez.ruhoh.com/config.ru:2:in `block in <main>'
        from /usr/lib/ruby/gems/1.9.1/gems/rack-1.4.3/lib/rack/builder.rb:51:in `instance_eval'
        from /usr/lib/ruby/gems/1.9.1/gems/rack-1.4.3/lib/rack/builder.rb:51:in `initialize'
        from /cygdrive/d/proyects/marcel-valdez.ruhoh.com/config.ru:in `new'
        from /cygdrive/d/proyects/marcel-valdez.ruhoh.com/config.ru:in `<main>'
        from /usr/lib/ruby/gems/1.9.1/gems/rack-1.4.3/lib/rack/builder.rb:40:in `eval'
        from /usr/lib/ruby/gems/1.9.1/gems/rack-1.4.3/lib/rack/builder.rb:40:in `parse_file'
        from /usr/lib/ruby/gems/1.9.1/gems/rack-1.4.3/lib/rack/server.rb:200:in `app'
        from /usr/lib/ruby/gems/1.9.1/gems/rack-1.4.3/lib/rack/server.rb:304:in `wrapped_app'
        from /usr/lib/ruby/gems/1.9.1/gems/rack-1.4.3/lib/rack/server.rb:254:in `start'
        from /usr/lib/ruby/gems/1.9.1/gems/rack-1.4.3/lib/rack/server.rb:137:in `start'
        from /usr/lib/ruby/gems/1.9.1/gems/rack-1.4.3/bin/rackup:4:in `<top (required)>'
        from /usr/bin/rackup:23:in `load'
        from /usr/bin/rackup:23:in `<main>'

I did 2 things:
1st. I tried running

gem install json

and then I ran the same command, but I got the same error.

2nd. I added to the Gemfile

gem 'json' 

and this time everything ran correctly.

@BurntBrunch
Copy link

Same here. I also needed to add 'json_pure' to the Gemfile to get it to install.

@dannystaple
Copy link

Adding json_pure to gemfile worked. can the documentation at http://ruhoh.com/docs/2/ reflect this requirement please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants