# Ruby gems on ubuntu

**URL:** <https://www.ruby-forum.com/t/ruby-gems-on-ubuntu/118348>\
**Category:** Ruby\
**Created:** [October 25, 2007, 10:53pm UTC](https://www.ruby-forum.com/t/ruby-gems-on-ubuntu/118348 "2007-10-25T22:53:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 25, 2007, 10:53pm UTC](https://www.ruby-forum.com/t/ruby-gems-on-ubuntu/118348/1 "2007-10-25T22:53:39Z")

</div>

I can’t get ruby gems to install.  
Every time I run setup.rb (with sudo) I get this message

Desktop/rubygems-0.9.4/setup.rb:134:in `initialize': Is a directory - .config (Errno::EISDIR) from Desktop/rubygems-0.9.4/setup.rb:134:in `open’  
from Desktop/rubygems-0.9.4/setup.rb:134:in `save' from Desktop/rubygems-0.9.4/setup.rb:992:in `exec\_config’  
from Desktop/rubygems-0.9.4/setup.rb:812:in `invoke' from Desktop/rubygems-0.9.4/setup.rb:773:in `invoke’  
from Desktop/rubygems-0.9.4/setup.rb:1578

Is this an issue with ubuntu? I’m running the latest version (7.10  
gutsy)

* * *

Do You Yahoo!?  
Tired of spam? Yahoo! Mail has the best spam protection around

> **[Yahoo Mail - Organized Email](https://mail.yahoo.com)**
>
> It's time to get stuff done with Yahoo Mail. Just add your Gmail, Outlook, AOL or Yahoo Mail to get going. We automatically organize all the things life throws at you, like receipts and attachments, so you can find what you need fast. Plus, we've got...

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 26, 2007, 1:03am UTC](https://www.ruby-forum.com/t/ruby-gems-on-ubuntu/118348/2 "2007-10-26T01:03:09Z")

</div>

removed\_email\_address@domain.invalid wrote:

> I can’t get ruby gems to install.  
> Every time I run setup.rb (with sudo) I get this message
> 
> Desktop/rubygems-0.9.4/setup.rb:134:in `initialize': Is a directory - .config (Errno::EISDIR) from Desktop/rubygems-0.9.4/setup.rb:134:in`open’  
> from Desktop/rubygems-0.9.4/setup.rb:134:in `save' from Desktop/rubygems-0.9.4/setup.rb:992:in`exec\_config’  
> from Desktop/rubygems-0.9.4/setup.rb:812:in `invoke' from Desktop/rubygems-0.9.4/setup.rb:773:in`invoke’  
> from Desktop/rubygems-0.9.4/setup.rb:1578
> 
> Is this an issue with ubuntu? I’m running the latest version (7.10  
> gutsy)
> 
> * * *

instead of using setup.rb i would just do the following since u have  
Ubuntu.

sudo bash  
#enter pw  
apt-cache search ruby  
#should come up with something similar to ruby-1.8.2 or something of  
that nature  
apt-get install ruby-1.8.2  
#this will install it. For any gems in the future simply type:  
gem install

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 26, 2007, 1:35am UTC](https://www.ruby-forum.com/t/ruby-gems-on-ubuntu/118348/3 "2007-10-26T01:35:59Z")

</div>

> instead of using setup.rb i would just do the following since u have  
> Ubuntu.
> 
> sudo bash  
> #enter pw  
> apt-cache search ruby  
> #should come up with something similar to ruby-1.8.2 or something of  
> that nature  
> apt-get install ruby-1.8.2  
> #this will install it. For any gems in the future simply type:  
> gem install

I apologize i also forgot to include that you need to run this before  
gem install.

apt-cache search rubygems # some rubygem installation will be listed  
apt-et install rubygems-version

Cheers,

- Mac
