Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
error: undefined method `gem` for main:Object #7
Comments
stardiviner
commented
Sep 24, 2012
|
I have executed command |
|
Are you launching Vim with Ruby 1.8 or Ruby 1.9 active? You can see which one is active by typing |
stardiviner
commented
Sep 27, 2012
|
I solved this problem, I searched on google how to let vim use ruby 1.9, then I found removing old ruby 1.8 can solve this problem. |
stardiviner
closed this
Sep 27, 2012
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
stardiviner commentedSep 24, 2012
ri_vim.rb:5: undefined methodgem' for main:Object (NoMethodError)`I'm new on Ruby, I do not know which part I miss, and I have not installed something.
In README, ri.vim need rdoc 3.8, but I have not found this version.
In my Ubuntu 12.10 package system, it has
rdoc1.8andrdoc1.9, and I searched gems with$ gem search rdoc, have not found rdoc3.8 too, only has versionrdoc (3.12).