Rails requires RubyGems> = 1.3.2. Please install RubyGems and try again (I have rubygems 1.3.6!)

I run rails version 2.3.5 and rubygems version 1.3.6 when I script / server get this error

Rails requires RubyGems> = 1.3.2. Please install RubyGems and try again: http://rubygems.rubyforge.org

any ideas how to fix this?

+3
source share
5 answers

I could not understand what happened, so I installed rvm with a new version of rails and rubies.

0
source

The first thing you need to do is run: gem env

, , RUBYGEMS_VERSION GEM_PATHS. , , , .

GEM_PATHS , , , .

GEM_HOME .bash_login/etc. gem env, , .

, , GEM PATH.

, /. sudo , , /.

, rubygems sudo, root.

, :

+4

, . , . , bash, , .basrc, - :

GEMS =///ruby1.8/Library///1,8// PATH = $RUBY: $GEMS: $HOME/bin: $PATH: $NGINX: $MONIT: $GIT

+1

, , - , , .

rmagik, macports, /opt/... rubygems , ruby.

, rvm (http://rvm.beginrescueend.com/), raphael_turtle, , RVM , .

* macports brew, , , , .

+1

I had the same problem. My installation was made for me by technical support, so I did not install (security problems).

The problem was that I did not have access permissions, so this helped:

sudo - su user_name_with_enough_access_rights

And run the scripts / server again.

+1
source

All Articles