# Unable to gem install rdoc. Can somebody suggest something?

**URL:** <https://www.ruby-forum.com/t/unable-to-gem-install-rdoc-can-somebody-suggest-something/93742>\
**Category:** Ruby\
**Created:** [April 8, 2006, 3:22am UTC](https://www.ruby-forum.com/t/unable-to-gem-install-rdoc-can-somebody-suggest-something/93742 "2006-04-08T03:22:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xeno\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/958977/32.png) [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Post date:** [April 8, 2006, 3:22am UTC](https://www.ruby-forum.com/t/unable-to-gem-install-rdoc-can-somebody-suggest-something/93742/1 "2006-04-08T03:22:45Z")

</div>

I’m running on Ubuntu, and have gems kindof apparently installed, and  
yet I  
cannot install rdoc:

root@baldwin:~# gem install -r rdoc  
Attempting remote installation of ‘rdoc’  
ERROR: While executing gem … (Gem::GemNotFoundException)  
Could not find rdoc (\> 0) in the repository  
root@baldwin:~# apt-get install rdoc  
Reading package lists… Done  
Building dependency tree… Done  
E: Couldn’t find package rdoc  
root@baldwin:~# apt-cache search rdoc

I also got a bunch of other diagnostics (I accidentally sent them a  
minute ago  
with poor explanation; sorry) when running an apparently successful gem  
install  
of rake:

root@baldwin:~# gem install -r rake  
Attempting remote installation of ‘rake’  
Successfully installed rake-0.7.1  
/usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:21:in  
`require__': no such file to load -- rdoc/rdoc (LoadError) from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in`require’  
from /usr/local/lib/site\_ruby/1.8/rubygems/doc\_manager.rb:43:in  
`generate_rdoc' from /usr/local/lib/site_ruby/1.8/rubygems/gem_commands.rb:215:in`execute’  
from  
/usr/local/lib/site\_ruby/1.8/rubygems/gem\_commands.rb:214:in `each' from /usr/local/lib/site_ruby/1.8/rubygems/gem_commands.rb:214:in`execute’  
from  
/usr/local/lib/site\_ruby/1.8/rubygems/gem\_commands.rb:153:in `each' from /usr/local/lib/site_ruby/1.8/rubygems/gem_commands.rb:153:in`execute’  
from /usr/local/lib/site\_ruby/1.8/rubygems/command.rb:49:in  
`invoke' from /usr/local/lib/site_ruby/1.8/rubygems/cmd_manager.rb:94:in`process\_args’  
from /usr/local/lib/site\_ruby/1.8/rubygems/cmd\_manager.rb:67:in  
`run' from /usr/local/lib/site_ruby/1.8/rubygems/gem_runner.rb:13:in`run’  
from /usr/bin/gem:17

%

Sorry if this is some stupid mistake, but I’m somehow unable to use  
Net/HTTP,  
having the diagnostic:

bary@baldwin:~/autotest-bld/tta5/sbin$ ./thurl.rb  
/usr/lib/ruby/1.8/net/protocol.rb:83:in `initialize': getaddrinfo: Name or service not known (SocketError) from /usr/lib/ruby/1.8/net/protocol.rb:83:in`connect’  
from /usr/lib/ruby/1.8/net/protocol.rb:82:in `timeout' from /usr/lib/ruby/1.8/timeout.rb:62:in`timeout’  
from /usr/lib/ruby/1.8/net/protocol.rb:82:in `connect' from /usr/lib/ruby/1.8/net/protocol.rb:64:in`initialize’  
from /usr/lib/ruby/1.8/net/http.rb:429:in `do_start' from /usr/lib/ruby/1.8/net/http.rb:424:in`start’  
from /usr/lib/ruby/1.8/net/http.rb:323:in `start' from ./HURL.rb:26:in`initialize’  
from ./thurl.rb:6

and when I try to gem install that I get:

root@baldwin:~# gem install -r Net::HTTP  
Attempting remote installation of ‘Net::HTTP’  
ERROR: While executing gem … (Gem::GemNotFoundException)  
Could not find Net::HTTP (\> 0) in the repository  
root@baldwin:~#

gem -v is 0.8.11

I also tried variations:

root@baldwin:~# gem install -r net/http  
Attempting remote installation of ‘net/http’  
ERROR: While executing gem … (Gem::GemNotFoundException)  
Could not find net/http (\> 0) in the repository  
root@baldwin:~#

and

root@baldwin:~# gem install -r net  
Attempting remote installation of ‘net’  
ERROR: While executing gem … (Gem::GemNotFoundException)  
Could not find net (\> 0) in the repository  
root@baldwin:~#

xc

---

<div class="post-metadata">

**Author:** ![Xeno\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/958977/32.png) [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Post date:** [April 8, 2006, 3:37am UTC](https://www.ruby-forum.com/t/unable-to-gem-install-rdoc-can-somebody-suggest-something/93742/2 "2006-04-08T03:37:50Z")

</div>

On Apr 7, 2006, at 9:21 PM, Xeno C. wrote:

> Building dependency tree… Done  
> E: Couldn’t find package rdoc  
> root@baldwin:~# apt-cache search rdoc

rdoc is part of the standard ruby distribution, its not available as  
a gem. If you have ruby installed, rdoc should be installed.

---

<div class="post-metadata">

**Author:** ![Xeno\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/958977/32.png) [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Post date:** [April 8, 2006, 3:50am UTC](https://www.ruby-forum.com/t/unable-to-gem-install-rdoc-can-somebody-suggest-something/93742/3 "2006-04-08T03:50:13Z")

</div>

On Sat, 2006-04-08 at 10:21 +0900, Xeno C. wrote:

> I’m running on Ubuntu, and have gems kindof apparently installed, and yet I  
> cannot install rdoc:

I assume you’re using your distribution’s ruby package, in which case  
you may well need to install the appropriate ruby-rdoc package. For  
example on Fedora you have to install ruby-rdoc-1.8.4-3.2.i386.rpm. I  
don’t know what it’d be for Ubuntu.

Alternatively, build yourself a full install from source:

```
ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.4.tar.gz

```

but don’t forget to ‘make install-doc’ after you ‘make install’ to get  
ri working.

---

<div class="post-metadata">

**Author:** ![Xeno\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/958977/32.png) [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Post date:** [September 1, 2006, 4:43am UTC](https://www.ruby-forum.com/t/unable-to-gem-install-rdoc-can-somebody-suggest-something/93742/4 "2006-09-01T04:43:44Z")

</div>

On 8/31/06, Scott H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > Alternatively, build yourself a full install from source:
> > 
> > ```
> > ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.4.tar.gz
> > 
> > ```
> > 
> > but don’t forget to ‘make install-doc’ after you ‘make install’ to get  
> > ri working.
> 
> I’m having the same problem on Ubuntu 6.06. I never “make” anything, I  
> just got the ruby1.8 package via apt-get. I don’t see any separate rdoc  
> packages. Any other Ubuntu users figure this out?

While in general, I LOVE ubuntu and debian, but I’ve pretty much given  
up on using the debian ruby packages, and have built ruby and gem from  
source.

## The debian maintainers can’t seem to come to grips with the way gems uses the file syustem claiming that they can’t make it conform to the debian standards. I just installed the sources and targetted the build to /usr/local/lib/ruby Inow get ruby stuff either from source or with gem, and so far life has been good

Rick DeNatale

My blog on Ruby  
[http://talklikeaduck.denhaven2.com/](http://talklikeaduck.denhaven2.com/)

---

<div class="post-metadata">

**Author:** ![Xeno\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/958977/32.png) [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Post date:** [August 31, 2006, 11:25pm UTC](https://www.ruby-forum.com/t/unable-to-gem-install-rdoc-can-somebody-suggest-something/93742/5 "2006-08-31T23:25:32Z")

</div>

Ross B. wrote:

> On Sat, 2006-04-08 at 10:21 +0900, Xeno C. wrote:
> 
> > I’m running on Ubuntu, and have gems kindof apparently installed, and yet I  
> > cannot install rdoc:
> 
> I assume you’re using your distribution’s ruby package, in which case  
> you may well need to install the appropriate ruby-rdoc package. For  
> example on Fedora you have to install ruby-rdoc-1.8.4-3.2.i386.rpm. I  
> don’t know what it’d be for Ubuntu.
> 
> Alternatively, build yourself a full install from source:
> 
> ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.4.tar.gz
> 
> but don’t forget to ‘make install-doc’ after you ‘make install’ to get  
> ri working.

I’m having the same problem on Ubuntu 6.06. I never “make” anything, I  
just got the ruby1.8 package via apt-get. I don’t see any separate rdoc  
packages. Any other Ubuntu users figure this out?

---

<div class="post-metadata">

**Author:** ![Xeno\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/958977/32.png) [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Post date:** [September 1, 2006, 12:37pm UTC](https://www.ruby-forum.com/t/unable-to-gem-install-rdoc-can-somebody-suggest-something/93742/6 "2006-09-01T12:37:21Z")

</div>

Xeno C. wrote:

> I’m running on Ubuntu, and have gems kindof apparently installed, and  
> yet I  
> cannot install rdoc:

Make sure you use Adept/Aptitude/whatever to install not only rdoc, but  
also rdoc1.8 and it should work fine. Does for me, anyhow, on 2  
machines.
