title: rvm gem install error?
body: <p>I was messing around with rubygems and rvm and it was working perfectly fine but now when I try to install a gem I get an error</p>
  
  <blockquote>
    <p>gem install railsERROR:  While
    executing gem ... (Errno::EACCES)
        Permission denied - /Users/da/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.11/.gitignore</p>
  </blockquote>
  
  <p>It works when I do sudo, but I never had to do this before to install a gem. </p>
  
  <pre><code>$ gem env
  RubyGems Environment:
    - RUBYGEMS VERSION: 1.6.2
    - RUBY VERSION: 1.9.2 (2011-02-18 patchlevel 180) [x86_64-darwin10.7.0]
    - INSTALLATION DIRECTORY: /Users/da/.rvm/gems/ruby-1.9.2-p180
    - RUBY EXECUTABLE: /Users/da/.rvm/rubies/ruby-1.9.2-p180/bin/ruby
    - EXECUTABLE DIRECTORY: /Users/da/.rvm/gems/ruby-1.9.2-p180/bin
    - RUBYGEMS PLATFORMS:
      - ruby
      - x86_64-darwin-10
    - GEM PATHS:
       - /Users/da/.rvm/gems/ruby-1.9.2-p180
       - /Users/da/.rvm/gems/ruby-1.9.2-p180@global
    - GEM CONFIGURATION:
       - :update_sources =&gt; true
       - :verbose =&gt; true
       - :benchmark =&gt; false
       - :backtrace =&gt; false
       - :bulk_threshold =&gt; 1000
    - REMOTE SOURCES:
       - http://rubygems.org/
  $ sudo gem env
  RubyGems Environment:
    - RUBYGEMS VERSION: 1.6.2
    - RUBY VERSION: 1.9.2 (2011-02-18 patchlevel 180) [x86_64-darwin10.7.0]
    - INSTALLATION DIRECTORY: /Users/da/.rvm/gems/ruby-1.9.2-p180
    - RUBY EXECUTABLE: /Users/danest/.rvm/rubies/ruby-1.9.2-p180/bin/ruby
    - EXECUTABLE DIRECTORY: /Users/da/.rvm/gems/ruby-1.9.2-p180/bin
    - RUBYGEMS PLATFORMS:
      - ruby
      - x86_64-darwin-10
    - GEM PATHS:
       - /Users/da/.rvm/gems/ruby-1.9.2-p180
       - /Users/da/.rvm/gems/ruby-1.9.2-p180@global
    - GEM CONFIGURATION:
       - :update_sources =&gt; true
       - :verbose =&gt; true
       - :benchmark =&gt; false
       - :backtrace =&gt; false
       - :bulk_threshold =&gt; 1000
    - REMOTE SOURCES:
       - http://rubygems.org/
  </code></pre>