I recently install clean ubuntu14.04 virtual machine in vware fusion and updated it. I am trying to install the mime-tyes-data by
sudo gem install mime-types-data -v 3.2015.1120
The error shows
ERROR: Error installing mime-types-data: mime-types-data requires Ruby version >= 2.0.
Before that I already update ruby version by
sudo apt-get install ruby2.0
sudo ln -sf /usr/bin/ruby2.0 /usr/bin/ruby
It seems my version of ruby is 2.0 already, but the error still exists.
Advertisement
Answer
I was facing the same problem trying to install rails with sudo. I was getting: ERROR: Error installing mime-types-data: mime-types-data requires Ruby version >= 2.0.
The thing is ruby -v
gives me ruby 2.2.1p85 while sudo ruby -v
gives me ruby 1.9.3p484, so instead of sudo gem install rails
I just did gem install rails
and it worked.
That is where I found my solution: https://github.com/jekyll/jekyll/issues/3558
Hope it helps.