Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rubygems.rb:8:in `require': no such file to load -- rbconfig (LoadError) #555

Closed
hasft opened this issue May 10, 2013 · 1 comment
Closed

Comments

@hasft
Copy link

hasft commented May 10, 2013

I'm new with ruby. so i uninstall all of the default gems using:

rm -r /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8

and now im stuck to installing rvm, brew, etc..
i get this error when i type gem

/Library/Ruby/Site/1.8/rubygems.rb:8:in `require': no such file to load -- rbconfig (LoadError)
    from /Library/Ruby/Site/1.8/rubygems.rb:8
    from /usr/bin/gem:8:in `require'
    from /usr/bin/gem:8

can someone tell me what i have to do ?

@drbrain
Copy link
Member

drbrain commented Jun 12, 2013

rbconfig.rb is part of ruby (not rubygems), and you seem to have deleted it.

You need to restore /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0/rbconfig.rb from your backups to use the OS X system ruby again.

Unfortunately this is not a RubyGems bug, so I will close it.

@drbrain drbrain closed this as completed Jun 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants