Gem :: InstallError: celluloid requires Ruby version> = 1.9.2

I am trying to install GitLab CI and I got this error.

Gem::InstallError: celluloid requires Ruby version >= 1.9.2. An error occurred while installing celluloid (0.12.4), and Bundler cannot continue. Make sure that `gem install celluloid -v '0.12.4'` succeeds before bundling. 

However, I think my ruby โ€‹โ€‹has been updated.

 # ruby --version ruby 1.9.3p286 (2012-10-12 revision 37165) [i686-linux] # ls -l /usr/bin/ruby lrwxrwxrwx 1 root root 22 Jan 26 11:20 /usr/bin/ruby -> /etc/alternatives/ruby # ls -l /etc/alternatives/ruby lrwxrwxrwx 1 root root 18 Jan 26 12:17 /etc/alternatives/ruby -> /usr/bin/ruby1.9.3 # rvm list rvm rubies =* ruby-1.9.3-p286 [ i686 ] # which bundle /usr/local/rvm/gems/ ruby-1.9.3-p286@global /bin/bundle # which gem /usr/local/rvm/rubies/ruby-1.9.3-p286/bin/gem 

Any idea what's wrong with me here ..?

+6
source share
3 answers

Most likely your CLI bundler or gem tools are tied to installing Ruby 1.8.

Take a look at which bundle and which gem ; and check these files - they are built, indicating a specific ruby โ€‹โ€‹default setting.

(You probably need to install the package for the current ruby โ€‹โ€‹version)

+2
source

I have this problem too. I am using rbenv.

Here is my solution.

  • Make sure your Ruby is loaded with rbenv
  • $ gem install bundler
  • $ rbev rehash

Now your gem should not point to your Ruby system.

+1
source

If you are using debian-based linux, try sudo update-alternatives --config ruby and sudo update-alternatives --config gem . Helped me.

0
source

All Articles