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

whenever command can't find my Rails gem version #14

Closed
fadhlirahim opened this issue Jun 19, 2009 · 3 comments
Closed

whenever command can't find my Rails gem version #14

fadhlirahim opened this issue Jun 19, 2009 · 3 comments

Comments

@fadhlirahim
Copy link

I have multiple rails version in my machine and whenever can't generate the crontab. It keeps displaying the following:

Missing the Rails 2.2.2 gem. Please gem install -v=2.2.2 rails, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.

I have Rails 2.3.2 and Rails2.2.2 on the same machine. Although I could make whenever command work if I comment out the rails version but it is not a permanent solution because I need both rails gem in my machine.

Can you point out in your code where does this behavior happens?

@javan
Copy link
Owner

javan commented Jun 19, 2009

Sounds similar to http://github.com/javan/whenever/issues#issue/1

The workaround, for now, is to uninstall the version of Rails that you're not using.

The problem is in lib/whenever.rb, it needs to check of there's a RAILS_GEM_VERSION defined before requiring 'activesupport'. I should have this fixed soon, but I'd welcome a patch if you feel like doing it.

@javan
Copy link
Owner

javan commented Jun 26, 2009

Version 0.3.1 was just released. Hopefully it fixes your issue.

@eivindhagen
Copy link

I'm having this same problem, but with more recent gem versions:
rails 2.3.3
whenever 0.4.0

I also have rails 2.3.4 and 2.3.5 installed (along with many other versions).
The interesting thing is that the 'whenever' command works fine in my win32 dev system, but fails to operate on my hosting server (Linux). I get the follow error:

Missing the Rails 2.3.3 gem. Please gem install -v=2.3.3 rails, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.

This issue was closed.
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