RoR Rake - Jewel Database Error

I am trying to create db in my ror application with this command:

rake db:create 

and I got this error:

 Could not find tzinfo-0.3.26 in any of the sources 

But when I made the gem list command, it turned out that I had a newer version of this gem: tzinfo (0.3.27)

What can I do to sync my gems to be more compatible? Is this a common problem? FYI I use RVm to control my gems.

I made the rvm install tzinfo-0.3.26 command and got this output

 jruby-1.6.1-tzinfo - #fetching jruby-1.6.1-tzinfo - #extracting jruby-bin-1.6.1 to /home/agenadinik/.rvm/src/jruby-1.6.1-tzinfo mv: cannot move `/home/agenadinik/.rvm/src/jruby-1.6.1-tzinfo' to a subdirectory of itself, `/home/agenadinik/.rvm/src/jruby-1.6.1-tzinfo/jruby-1.6.1-tzinfo' jruby-1.6.1-tzinfo - #extracted to /home/agenadinik/.rvm/src/jruby-1.6.1-tzinfo Building Nailgun jruby-1.6.1-tzinfo - #installing to /home/agenadinik/.rvm/rubies/jruby-1.6.1-tzinfo ERROR: Cannot switch to 1.6.2 for this interpreter. jruby-1.6.1-tzinfo - #importing default gemsets (/home/agenadinik/.rvm/gemsets/) Copying across included gems Fetching: jruby-launcher-1.0.7-java.gem (100%) Building native extensions. This could take a while... Successfully installed jruby-launcher-1.0.7-java 1 gem installed 
+4
source share
2 answers
 rvm install tzinfo-0.3.26 

if this is what you entered and completed. Try to run

 rvm gem install --version '=0.3.26' tzinfo 

which installed tzinfo version 0.3.26

what you did first tells rvm to set up a ruby โ€‹โ€‹runtime, not a gem.

+4
source

I assume that you explicitly require 0.3.26 in your application. You can either change the requirement to "~> 0.3.26", or install the desired version using "gem install tzinfo -v 0.3.26".

+1
source

All Articles