Take the 2-minute tour ×

I'll be very grateful id someone can explain me what does that mean:

ror@ubuntu:$ sudo gem install linecache19 -v '0.5.12'
ERROR:  Error installing linecache19:
    linecache19 requires Ruby version >= 1.9.2.
ror@ubuntu:$ ruby -v

As I understand 1.9.3 >= 1.9.2 ? Am I wrong?

share|improve this question
Do you use RVM? –  Daniel Blaichinger Jul 4 '12 at 11:54
Maybe your global Ruby Installation is a < 1.9.2 version, so when you use sudo to install your gems, it does not recognize the correct version. –  MurifoX Jul 4 '12 at 11:59
after selecting rvm if permission issue comes try rvmsudo –  Amar Jul 4 '12 at 12:07
I don't use RVM. –  Benjamin Harel Jul 4 '12 at 13:52
add comment

2 Answers

You are running the gem install command as sudo, but the ruby -v as your own user. If you use sudo ruby -v you will probably get ruby 1.8.7 as the version.

As suggested, use rvm and never install gems with sudo again.

share|improve this answer
No, ror@ubuntu:$ sudo ruby -v ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] –  Benjamin Harel Jul 4 '12 at 13:47
check your export output for RUBY_VERSION –  Draiken Jul 4 '12 at 13:53
add comment

Just try RVM, as @Daniel pointed out, or even simpler, just use something like this: https://github.com/joshfng/railsready

This automatically installs Rails on your ubuntu Machine:

share|improve this answer
add comment

Your Answer


