I try to install skylinecms but I have a problem with installing the gem.
The gem factory_girl asked me to use version> = 1.9.2 of Ruby
atmoner@atmoner:~/base_ror$ sudo gem install skylinecms
ERROR: Error installing skylinecms:
factory_girl requires Ruby version >= 1.9.2.
ruby -v
atmoner@atmoner:~/base_ror$ ruby -v
ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-linux]
I have tried to change ruby version to 1.9.2
atmoner@atmoner:~/base_ror$ rvm use 1.9.2
Using /home/atmoner/.rvm/gems/ruby-1.9.2-p320
But still same problem
atmoner@atmoner:~/base_ror$ sudo gem install skylinecms
ERROR: Error installing skylinecms:
factory_girl requires Ruby version >= 1.9.2.
what’s the source of this problem?
you have an idea?
You shouldn’t use
sudowithrvm, as it creates a new subshell with a completely new environment. See more about sudo and rvm here: RVM and ‘sudo’Most likely your
system rubyversion is1.8.7, and that is what is getting invoked when you runsudo gem install skylinecms. You can verify that with the following commands:Try installing the
skylinecmsgem withoutsudo.Best to use per-project gemsets as suggested in rvm best practices