ERROR: While executing gem … (Gem::FilePermissionError)
问题 I have checked all the other similar answers and none was exactly like mine, neither did any of those solutions work for me. gem environment and sudo gem environment give the same result: RubyGems Environment: - RUBYGEMS VERSION: 1.5.3 - RUBY VERSION: 1.8.7 (2011-12-28 patchlevel 357) [x86_64-linux] - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8 - RUBY EXECUTABLE: /usr/local/bin/ruby - EXECUTABLE DIRECTORY: /usr/local/bin - RUBYGEMS PLATFORMS: - ruby - x86_64-linux - GEM PATHS: - /usr