Forum: Ruby Unable to gem install rdoc. Can somebody suggest something?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Xeno C. (Guest)
on 2006-04-08 05:22
(Received via mailing list)
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
Logan C. (Guest)
on 2006-04-08 05:37
(Received via mailing list)
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.
Ross B. (Guest)
on 2006-04-08 05:50
(Received via mailing list)
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.
Scott H. (Guest)
on 2006-09-01 01:25
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?
Rick D. (Guest)
on 2006-09-01 06:43
(Received via mailing list)
On 8/31/06, Scott H. <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/
William C. (Guest)
on 2006-09-01 14:37
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.
This topic is locked and can not be replied to.