Permission problems when trying to install gems from rubymine

Hi Im trying to install the gem optionparse from within rubymine but keep getting this error


Following gems were not installed:
OptionParser (0.5.1):  While executing gem ... (Gem::FilePermissionError)
     You don't have write permissions into the /usr/lib/ruby/gems/1.8 directory.

can anyone help me with this?

4 comments

In such case RubyGems should suggest to install gems locally in ~/.gem/. Which version of RubyGems do you use? Please show output of RubyMine | Tools | Show Gem Environment

0

I have the same problem.

my output:

RubyGems Environment:
RUBYGEMS VERSION: 1.3.6
RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]
INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8
RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
EXECUTABLE DIRECTORY: /usr/bin
RUBYGEMS PLATFORMS:
  ruby
  universal-darwin-10
GEM PATHS:
   /Library/Ruby/Gems/1.8
   /Users/michael/.gem/ruby/1.8
   /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8
GEM CONFIGURATION:
   :update_sources => true
   :verbose => true
   :benchmark => false
   :backtrace => false
   :bulk_threshold => 1000
REMOTE SOURCES:
   http://rubygems.org

0

I also ran into this problem.

Platform: Ubuntu Jaunty
Gems: 1.3.6
RubyMine: RM-93.130
Ruby 1.8.7

0

It's a rubygems 1.3.6 bug. New version of rubygems doesn't allow to install gems locally (without sudo) in ~/.gem folder. As far as I understand bug has been already fixed in rubygems trunk. Next RubyMine 2.0.2 EAP will contain a workaround for the problem.

0

Please sign in to leave a comment.