Thursday, November 30, 2017

macOS High Sierra: Ruby LoadError (oauth) & Fix

Error message:

/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- oauth (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from tweet_movierole.rb:2:in `<main>'


Command (Installing OAuth):

$ sudo gem install oauth
Password:


Result:

Fetching: oauth-0.5.3.gem (100%)
Successfully installed oauth-0.5.3
Parsing documentation for oauth-0.5.3
Installing ri documentation for oauth-0.5.3
Done installing documentation for oauth after 14 seconds
1 gem installed