aaltowebapps / faq

Frequently Asked Questions
9 stars 0 forks source link

Different Rubies #7

Closed ghost closed 12 years ago

ghost commented 12 years ago

As we know from the 1st day, we should use Ruby 1.8.x in Windows (bundle install fails with 1.9.x).

I wanted to use heroku but found that it requires 1.9.2: https://devcenter.heroku.com/articles/ruby#prerequisites

If I upgrade ruby to 1.9.2 I get course examples broken. How to proceed? How to use heroku in Windows and keep examples working?

vugi commented 12 years ago

To use Ruby 1.9.2 with the course examples in Windows you need to use a beta version of eventmachine gem. Try to install it with command:

gem install eventmachine --pre

For more information about eventmachine compability, check: http://isitruby19.com/eventmachine

Some other gems might also need to be updated or disabled. Please let us know how it went!

ghost commented 12 years ago

Yes, I installed a beta version of eventmachine, but it was not enough to get 'bundle install' working.

I deleted Gemfile.lock and added the line

gem 'eventmachine', '1.0.0.beta.4.1'

in Gemfile before em-websocket (which depends on eventmachine).

This solved the problem. Thank you!