[#1816] Ruby 1.5.3 under Tru64 (Alpha)? — Clemens Hintze <clemens.hintze@...>

Hi all,

17 messages 2000/03/14

[#1989] English Ruby/Gtk Tutorial? — schneik@...

18 messages 2000/03/17

[#2241] setter() for local variables — ts <decoux@...>

18 messages 2000/03/29

[ruby-talk:01667] Re: Where do I find an interactive Ruby for WIN & Linux ?

From: Dave Thomas <Dave@...>
Date: 2000-03-01 22:54:57 UTC
List: ruby-talk #1667
"Dat Nguyen" <thucdat@hotmail.com> writes:

> Wow, thanks. Response to my question comes right after I've just hit
> <Return>.  The following instruction seems unix-oriented, I tried on
> WIN/NT, the error message is:
> 
> : No such file to load -- irb/main <Load Error>
> 
> Do I miss something?

irb has to be installed. There are instructions in the FAQ. it goes
something like (sorry about the sgml):

<sect1>How can I use Ruby interactively?
<p>

You can try using <tt>irb</tt>. The following is paraphrased from Goto 
Kentaro (Gotoken), and originally appeared in ruby-talk:444.

<enum>
<item>Get the latest tarball of irb from
<url url="ftp://ftp.netlab.co.jp/pub/lang/ruby/contrib/"
name="the contrib directory"> in the Ruby archive.

<item>Extract the <tt>irb</tt> directory tree.

<item>Add the location of the <tt>irb/</tt> directory to the $RUBYLIB
environment variable

<item>Make a symbolic link from $RUBYLIB/irb/irb.rb to a file called
<tt>irb</tt> somewhere in your path.

<item><tt>chmod +x $RUBYLIB/irb/irb.rb</tt>

<item>Possibly use <tt>rehash</tt> to tell your login shell about the
new command.

<item>Type <tt>irb</tt>
</enum>

If the <tt>readline</tt> extension module works with your interpreter,
it makes <tt>irb</tt> a lot more fun to use.


-- 
Thomas Consulting.
Innovative and successful developments with Unix, Java, C, and C++. 

Now in bookstores:
 The Pragmatic Programmer.  www.pragmaticprogrammer.com/ppbook/

In This Thread

Prev Next