Professional Web Applications Themes

irb and 1.8.0 - Ruby

On Sun, Aug 10, 2003 at 05:56:25AM +0900, Joel VanderWerf wrote: > How do I get irb working nicely in 1.8.0? Compile it according to the instructions :-) After installation, 'head /usr/local/bin/irb' should show: #!/usr/local/bin/ruby # # irb.rb - intaractive ruby # $Release Version: 0.7.3 $ # $Revision: 1.2 $ # $Date: 2002/11/19 02:00:18 $ # by Keiju ISUKA(keijuisuka.com) # If that's not what you have, then something went wrong. And you should make sure that /usr/local/bin/ruby is in fact ruby-1.8.0, not ruby-1.6.8 (try '/usr/local/bin/ruby -v' to confirm) And finally, "which irb" should show /usr/local/bin/irb, not some other irb on ...

  1. #1

    Default Re: irb and 1.8.0

    On Sun, Aug 10, 2003 at 05:56:25AM +0900, Joel VanderWerf wrote:
    > How do I get irb working nicely in 1.8.0?
    Compile it according to the instructions :-)

    After installation, 'head /usr/local/bin/irb' should show:

    #!/usr/local/bin/ruby
    #
    # irb.rb - intaractive ruby
    # $Release Version: 0.7.3 $
    # $Revision: 1.2 $
    # $Date: 2002/11/19 02:00:18 $
    # by Keiju ISUKA(keijuisuka.com)
    #

    If that's not what you have, then something went wrong.

    And you should make sure that /usr/local/bin/ruby is in fact ruby-1.8.0, not
    ruby-1.6.8 (try '/usr/local/bin/ruby -v' to confirm)

    And finally, "which irb" should show /usr/local/bin/irb, not some other irb
    on your PATH.

    [Possibly substitute /usr/bin for wherever I have written /usr/local/bin
    above, but otherwise it should be the same]
    > What's different with 1.8? Why isn't a current version of irb included?
    > Why isn't readline built, if the lib and headers are available?
    >
    > (I'm using linux-mdk9.1.)
    Sorry but it's not 1.8.0 which is at fault, but something's wrong with your
    system or the way you built ruby. I suggest you untar ruby-1.8.0.tar.gz from
    scratch into a fresh directory, redo ./configure && make && sudo make install,
    and take care to note any errors which occur during that process.

    Regards,

    Brian.

    Brian Candler Guest

  2. #2

    Default Re: irb and 1.8.0

    Joel VanderWerf wrote:
    >
    > How do I get irb working nicely in 1.8.0?
    >
    > The irb that gets built from the current tarball says:
    >
    > Version irb 0.9(02/07/03) is old.
    >
    > Also, it does not use readline. In fact ext/readline doesn't even get
    > built.
    Oops. I had reinstalled linux and lost the readline headers. Readline in
    1.8 is fine now.

    But I'm still wondering why the obsolete version of irb is included?


    Joel VanderWerf Guest

  3. #3

    Default Re: irb and 1.8.0

    Brian Candler wrote:
    > On Sun, Aug 10, 2003 at 05:56:25AM +0900, Joel VanderWerf wrote:
    >
    >>How do I get irb working nicely in 1.8.0?
    >
    >
    > Compile it according to the instructions :-)
    >
    > After installation, 'head /usr/local/bin/irb' should show:
    >
    > #!/usr/local/bin/ruby
    > #
    > # irb.rb - intaractive ruby
    > # $Release Version: 0.7.3 $
    > # $Revision: 1.2 $
    > # $Date: 2002/11/19 02:00:18 $
    > # by Keiju ISUKA(keijuisuka.com)
    > #
    >
    > If that's not what you have, then something went wrong.
    >
    > And you should make sure that /usr/local/bin/ruby is in fact ruby-1.8.0, not
    > ruby-1.6.8 (try '/usr/local/bin/ruby -v' to confirm)
    >
    > And finally, "which irb" should show /usr/local/bin/irb, not some other irb
    > on your PATH.
    >
    > [Possibly substitute /usr/bin for wherever I have written /usr/local/bin
    > above, but otherwise it should be the same]
    >
    >
    >>What's different with 1.8? Why isn't a current version of irb included?
    >>Why isn't readline built, if the lib and headers are available?
    >>
    >>(I'm using linux-mdk9.1.)
    >
    >
    > Sorry but it's not 1.8.0 which is at fault, but something's wrong with your
    > system or the way you built ruby. I suggest you untar ruby-1.8.0.tar.gz from
    > scratch into a fresh directory, redo ./configure && make && sudo make install,
    > and take care to note any errors which occur during that process.
    I just did a fresh install from a freshly built 1.8.0 source tree.

    $ head /usr/local/bin/irb
    #!/usr/local/bin/ruby-1.8.0
    #
    # irb.rb - intaractive ruby
    # $Release Version: 0.7.3 $
    # $Revision: 1.2 $
    # $Date: 2002/11/19 02:00:18 $
    # by Keiju ISUKA(keijuisuka.com)
    #
    $ /usr/local/bin/irb
    Version irb 0.9(02/07/03) is old.

    So maybe something is corrupted in the lib files that irb requires?


    Joel VanderWerf Guest

  4. #4

    Default Re: irb and 1.8.0

    On Sun, Aug 10, 2003 at 07:26:51AM +0900, Joel VanderWerf wrote:
    > But that still doesn't explain why 1.8.0 has:
    >
    > $ irb --version
    > irb 0.9(02/07/03)
    Same for me.
    > But the latest irb in RAA is dated 2002.09.03.
    Ugh, what an ambiguous date: I read 02/07/03 as 2nd July 2003. Americans
    would read it as 7th February 2003. If it's an ISO date with the year
    truncated (yyyy.mm.dd) then it's 3rd July 2002.

    But it looks like somebody forgot to update the version string, since there
    are many CVS $Date$ stamps later than that: for example

    irb/completor.rb 2003/05/22
    irb/context.rb 2003/07/26
    irb/input-method.rb 2003/03/23
    irb/locale.rb 2003/07/24

    The version in RAA is called "0.9-2002.09.03". I imagine that it has not
    been updated since then, and therefore the one in Ruby itself is the most
    current. Also, RAA says:

    Description: Same Version of ruby1.7 except including Japanese
    Comments.

    Regards,

    Brian.

    Brian Candler Guest

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139