Rdoc problem on some gems (like ruby-graphviz)

Discussion in 'Ruby' started by Jean-Christophe Le Lann, Oct 30, 2010.

  1. Hi,

    One of my computers is running Fedora 12, where I compiled ruby 1.9.1p376.

    There however, there is a problem with RDoc when I try to install some
    new gems (message below) like ruby-graphviz.

    Any idea what to do ???
    thx
    JCLL



    [root@localhost ~]# gem19 install ruby-graphviz
    <skipped>
    Successfully installed ruby-graphviz-0.9.18
    1 gem installed
    Installing ri documentation for ruby-graphviz-0.9.18...
    Updating ri class cache with 266 classes...
    Installing RDoc documentation for ruby-graphviz-0.9.18...
    ERROR: While generating documentation for ruby-graphviz-0.9.18
    ... MESSAGE: Error while evaluating
    /usr/local/lib/ruby/gems/1.9.1/gems/rdoc-2.3.0/lib/rdoc/generator/template/darkfish/classpage.rhtml:
    undefined method `each' for #<String:0xad61da0> (at
    "r\">Namespace</h3>\n\t\t\t\t<ul class=\"link-list\">\n\t\t\t\t\t")
    ... RDOC args: lib README.rdoc COPYING AUTHORS
    (continuing with the rest of the installation)


    gem19 update --system
    Updating RubyGems
    Nothing to update

    gem19 list -b --local
    *** LOCAL GEMS ***
    doodle (0.2.3)
    haml (2.2.24)
    hanna (0.1.12)
    progressbar (0.9.0)
    rake (0.8.7)
    rdoc (2.3.0)
    ruby-graphviz (0.9.18)

    And then "require 'graphviz'" fails
     
    Jean-Christophe Le Lann, Oct 30, 2010
    #1
    1. Advertising

  2. Jean-Christophe Le Lann

    Quintus Guest

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Am 30.10.2010 16:39, schrieb Jean-Christophe Le Lann:
    > Hi,
    >
    > One of my computers is running Fedora 12, where I compiled ruby 1.9.1p376.
    >
    > There however, there is a problem with RDoc when I try to install some
    > new gems (message below) like ruby-graphviz.
    >
    > Any idea what to do ???
    > thx
    > JCLL
    >
    >
    >
    > [root@localhost ~]# gem19 install ruby-graphviz
    > <skipped>
    > Successfully installed ruby-graphviz-0.9.18
    > 1 gem installed
    > Installing ri documentation for ruby-graphviz-0.9.18...
    > Updating ri class cache with 266 classes...
    > Installing RDoc documentation for ruby-graphviz-0.9.18...
    > ERROR: While generating documentation for ruby-graphviz-0.9.18
    > ... MESSAGE: Error while evaluating
    > /usr/local/lib/ruby/gems/1.9.1/gems/rdoc-2.3.0/lib/rdoc/generator/template/darkfish/classpage.rhtml:
    > undefined method `each' for #<String:0xad61da0> (at
    > "r\">Namespace</h3>\n\t\t\t\t<ul class=\"link-list\">\n\t\t\t\t\t")
    > ... RDOC args: lib README.rdoc COPYING AUTHORS
    > (continuing with the rest of the installation)
    >
    >
    > gem19 update --system
    > Updating RubyGems
    > Nothing to update
    >
    > gem19 list -b --local
    > *** LOCAL GEMS ***
    > doodle (0.2.3)
    > haml (2.2.24)
    > hanna (0.1.12)
    > progressbar (0.9.0)
    > rake (0.8.7)
    > rdoc (2.3.0)
    > ruby-graphviz (0.9.18)
    >
    > And then "require 'graphviz'" fails
    >
    >
    >
    >

    The error you get during gem installation has nothing to do with the
    fact that you can't require graphviz. The installation error just says
    that the documentation couldn't be installed.
    Why it occurs: It's a problem with hanna. When you have hanna installed,
    generating gem documentation doesn't work anymore automatically. You
    have to do it manually by using

    # hanna --gems graphviz

    If you want to avoid the error permenantly, call gem like this:

    # gem install graphviz --no-rdoc

    Or, if you don't want to use the --no-rdoc flag every time you install
    or update gems, put this in your ~/.gemrc

    install: --no-rdoc
    update: --no-rdoc

    This will make RubyGems use the --no-rdoc flag by default for the
    "install" and "update" commands.

    The error occurs, because RubyGems' automatic documentation mechanism
    always sticks to the latest RDoc installed, even if it's the builtin
    RDoc (which is 2.4 or 2.5 I think), but the hanna template only works
    with RDoc 2.3. That's at least how *I* think it happens.

    And yes, I _really_ hope there will be a new version of hanna that works
    with the new RDoc and Ruby 1.9, especially 1.9.2-p0.

    Vale,
    Marvin
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.10 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

    iQEcBAEBAgAGBQJMzDr3AAoJEGrS0YjAWTKVpIYIAJ4Yx8v3xMHOPczuOikXY/Af
    ln2Gzv6SXEsmFCPMO3cmjHgl3gSAS7RaleFrTy1YJM2B5gaBqG3Gfx6dOctIBhg1
    HKISyJtqmRk2WlA9jYBZ4Ba+JoiAjEZ5sG3ZNyC85R0pS4jIAlml/KC48mEl4aCX
    Oxznbs02CCmQTyIgx9pooWNAaT61bMdQFYkcDWUx99bstPeaDsXrS0AOEhQlXql5
    YOjYelwpsjo+BxkNuSokl180v9c3mm+wftNUxewVhvFhWMcMFXtgAH9ylo3Q3bzN
    udYvGS+sdWqaqDDSjL6dzaNPFXASvNdAKiWjhSNKnFViV/STXC8mhaWA3jEUNVs=
    =rqpM
    -----END PGP SIGNATURE-----
     
    Quintus, Oct 30, 2010
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. gregoire.lejeune

    [ANN] Ruby-GraphViz

    gregoire.lejeune, Jan 26, 2004, in forum: Ruby
    Replies:
    0
    Views:
    108
    gregoire.lejeune
    Jan 26, 2004
  2. greg

    [ANN] Ruby/GraphViz 0.2.0

    greg, Jun 4, 2004, in forum: Ruby
    Replies:
    0
    Views:
    118
  3. Daniel Berger
    Replies:
    1
    Views:
    157
    Dave Thomas
    Nov 2, 2004
  4. Une bévue
    Replies:
    0
    Views:
    191
    Une bévue
    Sep 4, 2006
  5. Une bévue
    Replies:
    4
    Views:
    429
    Une bévue
    Sep 7, 2006
Loading...

Share This Page