Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby httparty Load Error

I am trying to load (require) the httparty gem into a Ruby file but keep getting an error and am unsuccessful.

Below is the error copied:

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- httparty (LoadError)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Users/neilricci/Desktop/test.rb:1:in `<main>'

Below is where the httparty gem file is located on my computer:

/Users/neilricci/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/httparty-0.13.7/lib/httparty.rb
like image 581
Neil Ricci Avatar asked Jan 24 '16 03:01

Neil Ricci


1 Answers

Issue was resolved by installing httparty with sudo, which is weird because I installed httparty as the main admin.

sudo gem install httparty
like image 142
Neil Ricci Avatar answered Oct 25 '22 22:10

Neil Ricci