I bought a new Macbook Pro and used migration assistant to move from my old iMac.
When I try to run Rails or even bundle install, I get:
internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb (LoadError)
from <internal:gem_prelude>:1:in `<compiled>'
I do get the following:
$ ruby -v
ruby 1.9.3p374 (2013-01-15 revision 38858) [x86_64-darwin12.2.0]
My user on the iMac was burtondav, on the Macbook Pro it is davidburton. I don't know if that's the cause.
Thanks for the help!
尝试浏览此处提供的信息http://docs.rubygems.org/read/chapter/3
You may try symlinking
ln -s /Users/davidburton /Users/burtondav
but a proper solution would be to reinstall ruby & rubygems.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.