I am trying to set up a ruby on rails environment. But I don't understand the error I am seeing when trying to install rails 4.0.0 (below). How do I fix this?
ubuntu#ip-172-31-43-208:~/rails_project$ sudo gem install rails --version 4.0.0
ERROR: Error installing rails:
activesupport requires Ruby version >= 1.9.3.
ubuntu#ip-172-31-43-208:~/rails_project$ ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]
Related
I have a problem installing rails on my computer.
ruby -v
ruby 2.3.3p222 (2016-11-21 revision 56859) [x64-mingw32]
I get this error message :
ERROR: Error installing rails:
activesupport requires Ruby version >= 2.2.2.
How can I install rails?
You can try the installer
http://railsinstaller.org/en
For Windows
Make sure all required components are added to your path.
Try using a path editor software or Environment variable editor.
I'm trying to install Rails 5 on my Mac (El Capitan).
When I type
gem install rails
I get this error message:
ERROR: Error installing rails:
activesupport requires Ruby version >= 2.2.2.
When I check my Ruby version with Rbenv:
rbenv global
2.3.1
however when I check my Ruby version like this:
ruby -v
I get
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14]
how can I fix this, so when I want to install rails 5, it's using Ruby 2.3.1
Thanks for your help,
Anthony
I am deploying a rails app to Ubuntu 14.04 using Capistrano.
In remote Ubuntu server it shows I am using Ruby 2.3.0
I tried these commands to install Ruby
rbenv install 2.3.0
rbenv global 2.3.0
rbenv rehash
deploy#ubuntu:~$ rbenv versions
system
* 2.3.0 (set by /home/deploy/.rbenv/version)
deploy#ubuntu:~$ ruby -v
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
But when I try cap production deploy, error happens and shows a different Ruby is working, instead of 2.3.0
activesupport-5.0.0.1 requires ruby version >= 2.2.2, which is
incompatible with
the current version, ruby 1.9.3p484
How can I fix this?
I've attempted to install Rails 4.2.0.beta1 (released Aug 20, 2014). I get an error "Unresolved dependency found during sorting." Here are the details:
$ ruby -v
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]
$ gem -v
2.4.1
$ gem install rails --pre
ERROR: While executing gem ... (Gem::DependencyError)
Unresolved dependency found during sorting - activesupport (>= 4.0)
(requested by sprockets-rails-3.0.0.beta1)
How can I install Rails 4.2.0.beta1?
You are using RubyGems 2.4.1:
$ gem -v
2.4.1
there's a bug with the newest 2.4.1 release of RubyGems (the system gem) that makes it difficult to install Rails 4.2.0.beta1. See Rails issue 16609.
You can work around the problem by downgrading to the 2.2.2 version of RubyGems.
$ gem update --system 2.2.2
Updating rubygems-update
Fetching: rubygems-update-2.2.2.gem (100%)
Successfully installed rubygems-update-2.2.2
Installing RubyGems 2.2.2
RubyGems 2.2.2 installed
Now you will be able to install Rails 4.2.0.beta1.
If you are using RVM, and you want to use two different versions of the RubyGems system gem, you'll need to install two different versions of the latest Ruby 2.1.2 release with different RVM names. For example, if you already have Ruby 2.1.2 installed with the newest RubyGems 2.4.1, you can install another version of Ruby 2.1.2, giving it a different name:
$ rvm install ruby-2.1.2-oldrubygem
RubyGems 2.2.2 is installed by default with the current Ruby 2.1.2 release:
$ ruby -v
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]
$ gem -v
2.2.2
You'll be able to install Rails 4.2.0.beta1.
This issue has been fixed on RubyGems. Upgrade to at least 2.4.4
Have a look at this GitHub issue for more information.
I,m getting the following error:-
ERROR: Error installing rails:
i18n requires RubyGems version >= 1.3.6
These the gems and ruby version installed in my system.
:~$ ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux]
:~$ gem -v
1.3.7
:~$ rails -v
Rails 3.0.1
:~$
maybe http://wiki.netbeans.org/RubyGemsNB6Ubuntu will be of assistance.