# Error installing Ruby-Debug : unreachable host?

**URL:** <https://www.ruby-forum.com/t/error-installing-ruby-debug-unreachable-host/144833>\
**Category:** Ruby\
**Created:** [August 2, 2008, 9:00pm UTC](https://www.ruby-forum.com/t/error-installing-ruby-debug-unreachable-host/144833 "2008-08-02T21:00:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9fc348/32.png) [@bobm](https://www.ruby-forum.com/u/bobm)\
**Post date:** [August 2, 2008, 9:00pm UTC](https://www.ruby-forum.com/t/error-installing-ruby-debug-unreachable-host/144833/1 "2008-08-02T21:00:42Z")

</div>

Hi,  
VERY new to Ruby…talk to me like I’m 6 years old 🙂  
I’m tryin to install a debugger.

Downloaded Ruby-Debug-0.10.1.gem  
When I type GEM INSTALL RUBY-DEBUG  
I get :  
A Socket operation attempted to an unreachable host

Not using rails…all I’ve done is install Ruby-one-click into an XP  
laptop.

---

<div class="post-metadata">

**Author:** ![bobm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9fc348/32.png) [@bobm](https://www.ruby-forum.com/u/bobm)\
**Post date:** [August 6, 2008, 8:58pm UTC](https://www.ruby-forum.com/t/error-installing-ruby-debug-unreachable-host/144833/2 "2008-08-06T20:58:16Z")

</div>

Alright…no response.  
I must have left out some info, or I typed an undecipherable  
question…lemme rephrase:

I need a debugger for Ruby. Any suggestions where to get one & how to  
load it?

---

<div class="post-metadata">

**Author:** ![bobm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9fc348/32.png) [@bobm](https://www.ruby-forum.com/u/bobm)\
**Post date:** [August 6, 2008, 10:57pm UTC](https://www.ruby-forum.com/t/error-installing-ruby-debug-unreachable-host/144833/3 "2008-08-06T22:57:39Z")

</div>

n 8/6/08, Bob M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Downloaded Ruby-Debug-0.10.1.gem  
> When I type GEM INSTALL RUBY-DEBUG  
> I get :  
> A Socket operation attempted to an unreachable host
> 
> I need a debugger for Ruby. Any suggestions where to get one & how to  
> load it?

That is a network error of some sort - I get a similar one due to my  
office firewall.

But if you have already downloaded Ruby-Debug-0.10.1.gem onto your  
harddrive,  
then all you need to do is change to the download directory and type  
`gem install -l Ruby-Debug-0.10.1.gem`

The -l for local makes it skip the attempt to connect to the network.

If you haven’t downloaded it, you can get it from  
[rubyforge.org/projects/ruby-debug/](http://rubyforge.org/projects/ruby-debug/)

-Adam

---

<div class="post-metadata">

**Author:** ![bobm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9fc348/32.png) [@bobm](https://www.ruby-forum.com/u/bobm)\
**Post date:** [August 7, 2008, 12:25am UTC](https://www.ruby-forum.com/t/error-installing-ruby-debug-unreachable-host/144833/4 "2008-08-07T00:25:14Z")

</div>

> then all you need to do is change to the download directory and type  
> `gem install -l Ruby-Debug-0.10.1.gem`

Thanks for helpin Adam, but I get this error.  
ERROR: While executing gem … OptonParser::InvalidOption  
invalid option: -1

I’m on Ruby ver 1.8 (I think???)  
I ran that from the download dir where Ruby-Debug-0.10.1.gem and 3 other  
files that came along w/ the download are.

---

<div class="post-metadata">

**Author:** ![bobm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9fc348/32.png) [@bobm](https://www.ruby-forum.com/u/bobm)\
**Post date:** [August 9, 2008, 10:46pm UTC](https://www.ruby-forum.com/t/error-installing-ruby-debug-unreachable-host/144833/5 "2008-08-09T22:46:29Z")

</div>

Adam S. wrote:

> did you use a number -1 instead of the letter -l ?

Oops…I’d assumed number one. But I tried it w/ the letter L (-l) and  
got THIS stupid error

“ruby-debug requires colunmize \>= 0.1”

---

<div class="post-metadata">

**Author:** ![bobm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9fc348/32.png) [@bobm](https://www.ruby-forum.com/u/bobm)\
**Post date:** [August 7, 2008, 3:37am UTC](https://www.ruby-forum.com/t/error-installing-ruby-debug-unreachable-host/144833/6 "2008-08-07T03:37:18Z")

</div>

On 8/6/08, Bob M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > then all you need to do is change to the download directory and type  
> > `gem install -l Ruby-Debug-0.10.1.gem`
> 
> Thanks for helpin Adam, but I get this error.  
> ERROR: While executing gem … OptonParser::InvalidOption  
> invalid option: -1

did you use a number -1 instead of the letter -l ?
