# Can't get gem bundler to work with either rvm 1.9.1 and 1.9.2

**URL:** <https://www.ruby-forum.com/t/cant-get-gem-bundler-to-work-with-either-rvm-1-9-1-and-1-9-2/181805>\
**Category:** Rails\
**Created:** [January 18, 2010, 3:51pm UTC](https://www.ruby-forum.com/t/cant-get-gem-bundler-to-work-with-either-rvm-1-9-1-and-1-9-2/181805 "2010-01-18T15:51:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kristian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e8c25b/32.png) [@Kristian](https://www.ruby-forum.com/u/Kristian)\
**Post date:** [January 18, 2010, 3:51pm UTC](https://www.ruby-forum.com/t/cant-get-gem-bundler-to-work-with-either-rvm-1-9-1-and-1-9-2/181805/1 "2010-01-18T15:51:13Z")

</div>

I installed the bundler, no problem - but it seems to have screwed up  
my gem repository in both cases!?  
What to do?

kristian-mandrups-macbook-pro:~ kristianconsult$ sudo gem install thor  
/Users/kristianconsult/.rvm/gems/ruby/1.9.1/gems/bundler-0.8.1/lib/  
rubygems\_plugin.rb:2:in `require': no such file to load -- bundler/ commands/bundle_command (LoadError) from /Users/kristianconsult/.rvm/gems/ruby/1.9.1/gems/bundler-0.8.1/ lib/rubygems_plugin.rb:2:in`\<top (required)\>’  
from /Users/kristianconsult/.rvm/ruby-1.9.1-p376/lib/ruby/site\_ruby/  
1.9.1/rubygems.rb:1136:in `load' from /Users/kristianconsult/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/ 1.9.1/rubygems.rb:1136:in`block in \<top (required)\>’  
from /Users/kristianconsult/.rvm/ruby-1.9.1-p376/lib/ruby/site\_ruby/  
1.9.1/rubygems.rb:1134:in `each' from /Users/kristianconsult/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/ 1.9.1/rubygems.rb:1134:in`\<top (required)\>’  
from internal:gem\_prelude:235:in `require' from <internal:gem_prelude>:235:in`load\_full\_rubygems\_library’  
from internal:gem\_prelude:334:in `const_missing' from /Users/kristianconsult/.rvm/ruby-1.9.1-p376/bin/gem:15:in`’

kristian-mandrups-macbook-pro:~ kristianconsult$ gem list bundler

\*\*\* LOCAL GEMS \*\*\*

bundler (0.8.1)

kristian-mandrups-macbook-pro:~ kristianconsult$ rvm use 1.9.2  
 _Now using ruby 1.9.2 preview1_   
kristian-mandrups-macbook-pro:~ kristianconsult$ gem list bundler

\*\*\* LOCAL GEMS \*\*\*

bundler (0.8.1)

kristian-mandrups-macbook-pro:~ kristianconsult$ sudo gem install thor  
/Users/kristianconsult/.rvm/gems/ruby/1.9.2/gems/bundler-0.8.1/lib/  
rubygems\_plugin.rb:2:in `require': no such file to load -- bundler/ commands/bundle_command (LoadError) from /Users/kristianconsult/.rvm/gems/ruby/1.9.2/gems/bundler-0.8.1/ lib/rubygems_plugin.rb:2:in`\<top (required)\>’  
from /Users/kristianconsult/.rvm/ruby-1.9.2-preview1/lib/ruby/  
site\_ruby/1.9.1/rubygems.rb:1136:in `load' from /Users/kristianconsult/.rvm/ruby-1.9.2-preview1/lib/ruby/ site_ruby/1.9.1/rubygems.rb:1136:in`block in \<top (required)\>’  
from /Users/kristianconsult/.rvm/ruby-1.9.2-preview1/lib/ruby/  
site\_ruby/1.9.1/rubygems.rb:1134:in `each' from /Users/kristianconsult/.rvm/ruby-1.9.2-preview1/lib/ruby/ site_ruby/1.9.1/rubygems.rb:1134:in`\<top (required)\>’  
from internal:gem\_prelude:252:in `require' from <internal:gem_prelude>:252:in`load\_full\_rubygems\_library’  
from internal:gem\_prelude:372:in `const_missing' from /Users/kristianconsult/.rvm/ruby-1.9.2-preview1/bin/gem:15:in`’  
kristian-mandrups-macbook-pro:~ kristianconsult$

---

<div class="post-metadata">

**Author:** ![Kristian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e8c25b/32.png) [@Kristian](https://www.ruby-forum.com/u/Kristian)\
**Post date:** [January 18, 2010, 3:52pm UTC](https://www.ruby-forum.com/t/cant-get-gem-bundler-to-work-with-either-rvm-1-9-1-and-1-9-2/181805/2 "2010-01-18T15:52:58Z")

</div>

kristian-mandrups-macbook-pro:~ kristianconsult$ gem install thor  
Successfully installed thor-0.12.2  
1 gem installed  
Installing ri documentation for thor-0.12.2…  
ERROR: While executing gem … (Errno::EACCES)  
Permission denied - /Users/kristianconsult/.ri/cache/.doc\_dirs

–

Actually I did manage to run “gem bundle” successfully in a new rails  
3 project, but seems like gem commands operating on the gem repository  
itself don’t work anymore ☹  
Any ideas?

---

<div class="post-metadata">

**Author:** ![Kristian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e8c25b/32.png) [@Kristian](https://www.ruby-forum.com/u/Kristian)\
**Post date:** [January 18, 2010, 9:16pm UTC](https://www.ruby-forum.com/t/cant-get-gem-bundler-to-work-with-either-rvm-1-9-1-and-1-9-2/181805/3 "2010-01-18T21:16:40Z")

</div>

On Mon, Jan 18, 2010 at 6:51 AM, Kristian [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> kristian-mandrups-macbook-pro:~ kristianconsult$ gem install thor  
> Successfully installed thor-0.12.2  
> 1 gem installed  
> Installing ri documentation for thor-0.12.2…  
> ERROR: While executing gem … (Errno::EACCES)  
> Permission denied - /Users/kristianconsult/.ri/cache/.doc\_dirs

Kristian, I would recommend doing the following:

$ rvm-install --head  
$ cd  
$ sudo chown -R :staff .ri  
$ gem install thor

Note: For OWNER, use the username of the logged in user.

Lastly, I would recommend finding a good resource for the Unix  
command-set.

Good luck,

-Conrad
