I just upgraded to Rails 3.0.5 and installed the updated gems.
When I run the command "rails -v" to check what version I'm on.. I get the following error:
Could not find activesupport-3.0.4
Any idea of what could be causing this? When I run gem list I get the following versions for ActiveSupport:
activesupport (3.0.5, 2.3.5, 2.2.2, 1.4.4)"
It may be the Gemfile.lock specifies 3.0.4. Perhaps remove that file (rm Gemfile.lock)?
open your Gemfile, change your version of Rails to 3.0.5 and then run
bundle install
Related
I'm getting this error , able to do bundle install sucessfully.
Note- Application uses ruby.2.2.0 and rails 4.2
It seems like the gem uniform_notifier (1.12.0) use Here Documents with a squiggly line. This feature is introduced in Ruby 2.3.0. This means that you have to upgrade your Ruby version, or downgrade the uniform_notifier gem.
I already have a live Rails application which is running in rails 5.0.1. Now, when I try to create new rails version I get the following error
Could not find proper version of railties (4.2.7.1) in any of the sources
Run `bundle install` to install missing gems.
When I run 'bundle install' I get the following error
Could not find spork-1.0.0rc4 in any of the sources
How can I solve this error?
My System only have Rails 5.0.1 version and Ruby version 2.3.1.
PS: When I keep Ruby version in 2.2.5, I am able to create my rails app successfully.
If you're trying to create a new rails application, try setting it up in a new folder.
If you're trying to update the rails version of your current project update the rails version in your Gemfile and run bundle update rails.
Prepending the command that's giving you
Could not find proper version of railties (4.2.7.1) in any of the sources
Run `bundle install` to install missing gems.
with bundle exec may solve your problem.
If you're using something like rbenv to manage your ruby version, you may have to update your .ruby-version file, and then run
rbenv install
gem install bundler
bundle install
to install that new version of ruby, bundler and your gems.
I have a problem when running bundle install in the root of sharetribe rails's project. It shows me this error message:
Your Ruby version is 2.4.0, but your Gemfile specified 2.3.1
I tried installing rvm and installing the 2.3.1 version required to run this project but nothing changes and it still throwing this output.
Have anyone faced this problem before ?
Your Ruby version is 2.4.0, but your Gemfile specified 2.3.1
Steps to resolve this issue
1)rvm install ruby-2.3.1
2)gem install bundler
3)rvm use ruby-2.3.1
4)Bundle install
Your Ruby version is 2.4.0, but your Gemfile specified 2.3.1
If you run command ruby -v you can see that you have installed Ruby 2.4.0, when you look at the first line in your Gemfile specifies that you want to use Ruby 2.3.1.
You can do either install Ruby 2.3.1 or replace the first line in your Gemfile to with Ruby 2.4.0.
What does it say when you run bundle env in the terminal?
Is it the same ruby version?
I tried gem install bundler one time i had the same problem and bundle updated and worked.
You can read more about it here.
Good luck!
Hi I'm following Rails Tutorial using Cloud9 ...
Tutorial says to install Rails 4.2.2. Before I did, I ran "rails -v" and saw that it was 4.2.1.
I ran Gem install Rails 4.2.2 and a load of stuff was installed. Tutoral then said to execute Rails 4.2.2 New MyApp. I decided to see what would happen if I did Rails 4.2.1 New Myapp, expecting an error (since 4.2.2 is installed and not 4.2.1 [I think] ), only to get successful execution.
Why is this? Thanks.
Because that version is available in your default gem set which is associated to the Ruby version you are using. Run gem list rails and it will list the rails versions that you have. Try running rails _4.2.3_ new myApp but instead of _4.2.3_ use a version not listed and you will get an error,Could not find 'railties' (= x.x.x) If you install the rails version with gem install rails -v x.x.x you will have that rails version available for that ruby version. Also if you cd to your application and run rails -v it will output the rails version of that one application.
I am trying to get my Instant Rails working on my Windows 7 laptop.
The error I keep getting when trying to access my site files are:
c:/rails/ruby/lib/site_ruby/1.8/rubygems.rb:779:in 'report_activate_error'
RubyGem version error: rack<1.1.0 not~> 1.0.1> <Gem::LoadError>
from c:/rails/ruby/lib/ruby.site_ruby/1.8/rubygems.rb:214:in 'activate'
from c:/rails/ruby/lib/ruby.site_ruby/1.8/rubygems.rb:1082:in 'gem'
from c:/depot/vendor/rails/actionpack/lib/action_controller.rb:34
from c://rails/ruby/lib/ruby.site_ruby/1.8/rubygems/custom_require.rb:31 in 'gem_original_require'
etc...
I have intalled Rubygems 1.3.7 and they work fine and when I run the test it works and the gem env shows that the 1.3.7 has been installed correctly.
What can I do to get this working?
Any prompt help would be VERY appreciated.
Thanks
Your rack gem is outdated. Try to run gem update rack. Or, if you use Rails with Bundler, just run bundle install in the root of your project and it will do everything for you.
I decided to write a little manual about the Ruby 1.8.7 and Rails stable installation.
Download RubyInstaller 1.8.7 from here. During the installation, check the 'Add Ruby executables to your PATH' box. After the installation, don't forget to restard cmd. Then try running ruby -v and gem -v to check for installed Ruby 1.8.7 and RubyGems 1.3.7;
Install the latest stable Rails 2.3.8 using gem install rails --no-ri --no-rdoc; Check it using rails -v;
Create a new application using rails myapp;
Test it: script/server. That's it!
gem install rack -v 1.0.1