Professional Web Applications Themes

Can't use interpreter - Ruby

I would like to try the Ruby interpreter on either Windows XP or Debian Linux. I downloaded the latest Windows installer, but it does horrible things to my library setup, which could not be undone with even a complete uninstall. I had to restore the whole system. For details, see my posting on comp.lang.python 2004-2-18, subject: IDLE won't start. I then tried to install the 'ruby' package from Debian (version 1.8.1-3) using apt-get install. It installs without error, but I can't find anywhere some basic instructions on running the interpreter. I tried 'irb' at the command line, but there is ...

  1. #1

    Default Can't use interpreter

    I would like to try the Ruby interpreter on either Windows XP or
    Debian Linux. I downloaded the latest Windows installer, but it does
    horrible things to my library setup, which could not be undone with
    even a complete uninstall. I had to restore the whole system. For
    details, see my posting on comp.lang.python 2004-2-18, subject: IDLE
    won't start.

    I then tried to install the 'ruby' package from Debian (version
    1.8.1-3) using apt-get install. It installs without error, but I
    can't find anywhere some basic instructions on running the
    interpreter. I tried 'irb' at the command line, but there is no such
    command.

    -- Dave

    David Guest

  2. #2

    Default Re: Can't use interpreter

    il Mon, 23 Feb 2004 15:08:05 -0700, David MacQuigg <com> ha
    scritto::
     

    For what I know ruby from pragprogs and pythonbring diferent tk
    versions, that are incompatible. You may try to install it withouth
    that or use a different binary pkg..
     

    tried ruby -v ? I installed ruby on debian flawlessy :/
     

    gabriele Guest

  3. #3

    Default Re: Can't use interpreter

    On Mon, 23 Feb 2004 22:32:43 GMT, gabriele renzi
    <yahoo.it> wrote:
     
    >
    >For what I know ruby from pragprogs and pythonbring diferent tk
    >versions, that are incompatible. You may try to install it withouth
    >that or use a different binary pkg..

    >
    >tried ruby -v ? I installed ruby on debian flawlessy :/[/ref]

    $ruby -v
    ruby 1.8.1 (2004-02-04) [i386 - linux ]
    $dpkg --listfiles ruby
    ....
    /usr/share/doc/ruby/README.Debian
    ....

    Nothing in the README file about the interpreter. Is that a separate
    package? If so, it seems like it should at least be listed among the
    "recommended" packages for the 'ruby' package.

    How do I install and start the Ruby interpreter?

    -- Dave

    David Guest

  4. #4

    Default Re: Can't use interpreter

    David MacQuigg <com> writes:
     

    The 'ruby' binary IS the interpreter.

    If you're looking for irb, you need to install the irb package.

    Package: irb
    Priority: optional
    Section: interpreters
    Installed-Size: 244
    Maintainer: akira yamada <org>
    Architecture: all
    Source: ruby
    Version: 1.6.7-3
    Depends: ruby (>= 1.6.7-3), libreadline-ruby (>= 1.6.7-3),
    libnkf-ruby (>= 1.6.7-3)
    Filename: pool/main/r/ruby/irb_1.6.7-3_all.deb
    Size: 50900
    MD5sum: a369c6f89e69600030060a798fae8279
    Description: The Interactive Ruby.
    The irb is acronym for Interactive RuBy. It evaluates Ruby
    expression
    from the terminal.

    --
    Josh Huber



    Josh Guest

  5. #5

    Default Re: Can't use interpreter

    On Tue, 24 Feb 2004 10:23:52 +0900, Josh Huber <huber+wpi.edu>
    wrote:
     
    >
    >The 'ruby' binary IS the interpreter.[/ref]

    I tried this the first time and got no response. Now I see I can type
    several commands, followed by a ^D, and it executes those commands,
    returning to the Unix prompt. That's not quite what I mean by an
    "interpreter".
     

    This is the one !! Thanks.

    -- Dave

    David Guest

  6. #6

    Default Re: Can't use interpreter

    il Mon, 23 Feb 2004 21:40:20 -0700, David MacQuigg <com> ha
    scritto::
     

    that *is* an interpreter, and works like perl or many other packages
    :) you run a script doing 'ruby filename'.
    But now, I understand you meant 'interactive shell' :)
    gabriele Guest

  7. #7

    Default Re: Can't use interpreter

    On Tue, 24 Feb 2004 08:17:20 GMT, gabriele renzi
    <yahoo.it> wrote:
     
    >
    >that *is* an interpreter, and works like perl or many other packages
    >:) you run a script doing 'ruby filename'.
    >But now, I understand you meant 'interactive shell' :)[/ref]

    I normally think of the "shell" as the program providing the Unix
    prompt in a terminal window, and 'ruby filename' as a command to run a
    program in "batch" mode. But I see now that IDLE has its "interactive
    shell" window labled "Python Shell", so my terminology may be
    confused. There is also a "Python (command line)" window which I
    never use.

    Anyway, I find it very strange that the "interactive shell" is so well
    hidden from newbies. How to install and run this program ought to be
    clearly stated in the README file and in the tutorial.

    Thanks again for your help.

    -- Dave

    David Guest

  8. #8

    Default Re: Can't use interpreter

    * David MacQuigg <com> [0225 15:25]:
     

    Which tutorial? This is a Debian packaging issue, remember.

    --
    It is impossible to make anything foolproof because fools are so
    ingenious.
    Rasputin :: Jack of All Trades - Master of Nuns


    Dick Guest

  9. #9

    Default Re: Can't use interpreter


    On Feb 24, 2004, at 7:24 AM, David MacQuigg wrote:
     

    Usually, irb is part of the ruby package... on my box (darwin/osx), it
    came preinstalled with ruby and irb, when I compiled a new version,
    Tehy both were part of the same package, and when I installed it from
    the native package manager (fink), it installed both... I think it is
    probably an anomaly that debian didn't install both in the same
    package.

    Perhaps you should contact the package manager and suggest they
    consolidate the packages. It seems to me that the way it is currently
    set up, you didn't get a full installation. I can definately see how it
    would be confusing, since irb is always installed with ruby (at least
    in versions I have worked with).

    --Mark



    Mark Guest

  10. Moderated Post

    Default Re: Can't use interpreter

    Removed by Administrator
    David Guest
    Moderated Post

Similar Threads

  1. Fastest Perl Interpreter
    By Michael in forum PERL Miscellaneous
    Replies: 10
    Last Post: October 30th, 11:49 PM
  2. RCR: New interpreter switch
    By Martin DeMello in forum Ruby
    Replies: 4
    Last Post: September 21st, 03:39 PM
  3. Formula interpreter
    By GDES Urcia Nomberto Luis A. in forum Informix
    Replies: 4
    Last Post: August 18th, 09:17 AM
  4. [ANN] multiple Tk interpreter support
    By Hidetoshi NAGAI in forum Ruby
    Replies: 0
    Last Post: July 27th, 08:40 PM
  5. Replies: 1
    Last Post: July 3rd, 10:00 PM

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