Try adding --user-install
instead of using sudo
:
gem install mygem --user-install
More Related Contents:
- Ruby Gem install Json fails on Mavericks and Xcode 5.1 – unknown argument: ‘-multiply_definedsuppress’
- Can’t install gems on OS X “El Capitan”
- How to avoid “cannot load such file — utils/popen” from homebrew on OSX
- ERROR: While executing gem … (Errno::EPERM) Operation not permitted [duplicate]
- ERROR: While executing gem … (Gem::FilePermissionError)
- Meaning of tilde-greater-than (~>) in version requirement?
- The ‘json’ native gem requires installed build tools
- Why does installing Nokogiri on Mac OS fail with libiconv is missing?
- Why are we installing Ruby 1.9.2/1.9.3 gems into a 1.9.1 folder?
- You have already activated X, but your Gemfile requires Y
- Adding a directory to $LOAD_PATH (Ruby)
- Failed to build gem native extension (installing Compass)
- How can I switch to ruby 1.9.3 installed using Homebrew?
- Installing RubyGems in Windows
- Why do I get a “permission denied” error while installing a gem?
- How do you downgrade rubygems?
- How do I use RVM and create globally available gems?
- Installing Jekyll without root
- Avoiding AppleScript through Ruby: rb-appscript or rubyosa?
- Why are gems installed in a directory with a different Ruby version than I’m running?
- gem eventmachine fatal error: ‘openssl/ssl.h’ file not found
- find_spec_for_exe’: can’t find gem bundler (>= 0.a) (Gem::GemNotFoundException)
- Ignoring GEM because its extensions are not built
- How to use “RVM –default” on MacOSX
- List of installed gems?
- Why does “compass watch” say it cannot load sass/script/node (LoadError)?
- Rubygems: How do I add platform-specific dependency?
- ERROR: Error installing ffi: ERROR: Failed to build gem native extension
- Ruby gem for finding timezone of location [closed]
- Functional code examples in ruby