Unable to gem install rdoc. Can somebody suggest something?

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:inrequire’
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:inexecute’
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:inexecute’
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:inexecute’
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:inprocess_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:inrun’
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:inconnect’
from /usr/lib/ruby/1.8/net/protocol.rb:82:in timeout' from /usr/lib/ruby/1.8/timeout.rb:62:intimeout’
from /usr/lib/ruby/1.8/net/protocol.rb:82:in connect' from /usr/lib/ruby/1.8/net/protocol.rb:64:ininitialize’
from /usr/lib/ruby/1.8/net/http.rb:429:in do_start' from /usr/lib/ruby/1.8/net/http.rb:424:instart’
from /usr/lib/ruby/1.8/net/http.rb:323:in start' from ./HURL.rb:26:ininitialize’
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

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.

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.

On 8/31/06, Scott H. [email protected] 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/

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?

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.