1998-01-16 07:13:05 -05:00
|
|
|
* What's Ruby
|
|
|
|
|
|
|
|
Ruby is the interpreted scripting language for quick and
|
|
|
|
easy object-oriented programming. It has many features to
|
|
|
|
process text files and to do system management tasks (as in
|
1999-01-19 23:59:39 -05:00
|
|
|
Perl). It is simple, straight-forward, and extensible.
|
1998-01-16 07:13:05 -05:00
|
|
|
|
2001-07-11 15:25:52 -04:00
|
|
|
|
1998-01-16 07:19:22 -05:00
|
|
|
* Features of Ruby
|
1998-01-16 07:13:05 -05:00
|
|
|
|
|
|
|
+ Simple Syntax
|
|
|
|
+ *Normal* Object-Oriented features(ex. class, method calls)
|
|
|
|
+ *Advanced* Object-Oriented features(ex. Mix-in, Singleton-method)
|
|
|
|
+ Operator Overloading
|
|
|
|
+ Exception Handling
|
|
|
|
+ Iterators and Closures
|
|
|
|
+ Garbage Collection
|
|
|
|
+ Dynamic Loading of Object files(on some architecture)
|
1999-01-19 23:59:39 -05:00
|
|
|
+ Highly Portable(works on many UNIX machines, and on DOS,
|
|
|
|
Windows, Mac, BeOS etc.)
|
1998-01-16 07:13:05 -05:00
|
|
|
|
2001-07-11 15:25:52 -04:00
|
|
|
|
1998-01-16 07:19:22 -05:00
|
|
|
* How to get Ruby
|
1998-01-16 07:13:05 -05:00
|
|
|
|
1999-08-13 01:45:20 -04:00
|
|
|
The Ruby distribution can be found on:
|
1998-01-16 07:13:05 -05:00
|
|
|
|
2001-07-11 14:48:06 -04:00
|
|
|
ftp://ftp.ruby-lang.org/pub/ruby/
|
1998-01-16 07:13:05 -05:00
|
|
|
|
1999-08-13 01:45:20 -04:00
|
|
|
You can get it by anonymous CVS. How to check out is:
|
|
|
|
|
2001-05-10 13:42:40 -04:00
|
|
|
$ cvs -d :pserver:anonymous@cvs.ruby-lang.org:/src login
|
2001-02-20 02:42:03 -05:00
|
|
|
(Logging in to anonymous@cvs.ruby-lang.org)
|
2001-05-10 13:42:40 -04:00
|
|
|
CVS password: anonymous
|
|
|
|
$ cvs -z4 -d :pserver:anonymous@cvs.ruby-lang.org:/src checkout ruby
|
1999-08-13 01:45:20 -04:00
|
|
|
|
2001-07-11 15:25:52 -04:00
|
|
|
|
|
|
|
* Ruby home-page
|
|
|
|
|
|
|
|
The URL of the Ruby home-page is:
|
|
|
|
|
|
|
|
http://www.ruby-lang.org/
|
|
|
|
|
|
|
|
|
1999-08-13 01:45:20 -04:00
|
|
|
* Mailing list
|
|
|
|
|
|
|
|
There is a mailing list to talk about Ruby.
|
|
|
|
To subscribe this list, please send the following phrase
|
|
|
|
|
1999-09-18 00:48:51 -04:00
|
|
|
subscribe YourFirstName YourFamilyName
|
1999-08-13 01:45:20 -04:00
|
|
|
e.g.
|
|
|
|
subscribe Joseph Smith
|
|
|
|
|
2001-02-20 02:42:03 -05:00
|
|
|
in the mail body (not subject) to the address <ruby-talk-ctl@ruby-lang.org>.
|
1999-08-13 01:45:20 -04:00
|
|
|
|
2001-07-11 15:25:52 -04:00
|
|
|
|
1998-01-16 07:13:05 -05:00
|
|
|
* How to compile and install
|
|
|
|
|
1998-01-16 07:19:22 -05:00
|
|
|
This is what you need to do to compile and install Ruby:
|
1998-01-16 07:13:05 -05:00
|
|
|
|
2000-12-27 00:59:03 -05:00
|
|
|
1. If ./configure does not exist or is older than configure.in,
|
|
|
|
run autoconf to (re)generate configure.
|
1998-01-16 07:13:05 -05:00
|
|
|
|
2000-12-27 00:59:03 -05:00
|
|
|
2. Run ./configure, which will generate config.h and Makefile.
|
1998-01-16 07:13:05 -05:00
|
|
|
|
2006-08-08 06:29:02 -04:00
|
|
|
3. Edit defines.h if you need. Usually this step will not be needed.
|
2000-12-27 00:59:03 -05:00
|
|
|
|
|
|
|
4. Remove comment mark(#) before the module names from ext/Setup (or
|
1999-01-19 23:59:39 -05:00
|
|
|
add module names if not present), if you want to link modules
|
|
|
|
statically.
|
1998-01-16 07:13:05 -05:00
|
|
|
|
1999-01-19 23:59:39 -05:00
|
|
|
If you don't want to compile non static extension modules
|
|
|
|
(probably on architectures which does not allow dynamic loading),
|
|
|
|
remove comment mark from the line "#option nodynamic" in
|
|
|
|
ext/Setup.
|
1998-01-16 07:13:05 -05:00
|
|
|
|
2000-12-27 00:59:03 -05:00
|
|
|
5. Run make.
|
1998-01-16 07:13:05 -05:00
|
|
|
|
2000-12-27 00:59:03 -05:00
|
|
|
6. Optionally, run 'make test' to check whether the compiled Ruby
|
1999-01-19 23:59:39 -05:00
|
|
|
interpreter works well. If you see the message "test succeeded",
|
|
|
|
your ruby works as it should (hopefully).
|
1998-01-16 07:13:05 -05:00
|
|
|
|
2000-12-27 00:59:03 -05:00
|
|
|
7. Run 'make install'
|
1998-01-16 07:13:05 -05:00
|
|
|
|
1999-01-19 23:59:39 -05:00
|
|
|
You may have to be a super user to install ruby.
|
|
|
|
|
|
|
|
If you fail to compile ruby, please send the detailed error report with
|
1998-01-16 07:13:05 -05:00
|
|
|
the error log and machine/OS type, to help others.
|
|
|
|
|
1998-01-16 07:19:22 -05:00
|
|
|
|
2001-07-11 15:25:52 -04:00
|
|
|
* Copying
|
1998-01-16 07:13:05 -05:00
|
|
|
|
2001-07-11 15:25:52 -04:00
|
|
|
See the file COPYING.
|
1998-01-16 07:13:05 -05:00
|
|
|
|
|
|
|
|
|
|
|
* The Author
|
|
|
|
|
|
|
|
Feel free to send comments and bug reports to the author. Here is the
|
|
|
|
author's latest mail address:
|
|
|
|
|
2001-09-08 10:17:53 -04:00
|
|
|
matz@netlab.jp
|
1998-01-16 07:13:05 -05:00
|
|
|
|
|
|
|
-------------------------------------------------------
|
|
|
|
created at: Thu Aug 3 11:57:36 JST 1995
|
|
|
|
Local variables:
|
|
|
|
mode: indented-text
|
|
|
|
end:
|