1998-01-16 15:13:05 +03: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-20 07:59:39 +03:00
|
|
|
Perl). It is simple, straight-forward, and extensible.
|
1998-01-16 15:13:05 +03:00
|
|
|
|
2001-07-11 23:25:52 +04:00
|
|
|
|
1998-01-16 15:19:22 +03:00
|
|
|
* Features of Ruby
|
1998-01-16 15:13:05 +03: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-20 07:59:39 +03:00
|
|
|
+ Highly Portable(works on many UNIX machines, and on DOS,
|
|
|
|
Windows, Mac, BeOS etc.)
|
1998-01-16 15:13:05 +03:00
|
|
|
|
2001-07-11 23:25:52 +04:00
|
|
|
|
1998-01-16 15:19:22 +03:00
|
|
|
* How to get Ruby
|
1998-01-16 15:13:05 +03:00
|
|
|
|
1999-08-13 09:45:20 +04:00
|
|
|
The Ruby distribution can be found on:
|
1998-01-16 15:13:05 +03:00
|
|
|
|
2001-07-11 22:48:06 +04:00
|
|
|
ftp://ftp.ruby-lang.org/pub/ruby/
|
1998-01-16 15:13:05 +03:00
|
|
|
|
1999-08-13 09:45:20 +04:00
|
|
|
You can get it by anonymous CVS. How to check out is:
|
|
|
|
|
2001-05-10 21:42:40 +04:00
|
|
|
$ cvs -d :pserver:anonymous@cvs.ruby-lang.org:/src login
|
2001-02-20 10:42:03 +03:00
|
|
|
(Logging in to anonymous@cvs.ruby-lang.org)
|
2001-05-10 21:42:40 +04:00
|
|
|
CVS password: anonymous
|
|
|
|
$ cvs -z4 -d :pserver:anonymous@cvs.ruby-lang.org:/src checkout ruby
|
1999-08-13 09:45:20 +04:00
|
|
|
|
2001-07-11 23:25:52 +04:00
|
|
|
|
|
|
|
* Ruby home-page
|
|
|
|
|
|
|
|
The URL of the Ruby home-page is:
|
|
|
|
|
|
|
|
http://www.ruby-lang.org/
|
|
|
|
|
|
|
|
|
1999-08-13 09: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 08:48:51 +04:00
|
|
|
subscribe YourFirstName YourFamilyName
|
1999-08-13 09:45:20 +04:00
|
|
|
e.g.
|
|
|
|
subscribe Joseph Smith
|
|
|
|
|
2001-02-20 10:42:03 +03:00
|
|
|
in the mail body (not subject) to the address <ruby-talk-ctl@ruby-lang.org>.
|
1999-08-13 09:45:20 +04:00
|
|
|
|
2001-07-11 23:25:52 +04:00
|
|
|
|
1998-01-16 15:13:05 +03:00
|
|
|
* How to compile and install
|
|
|
|
|
1998-01-16 15:19:22 +03:00
|
|
|
This is what you need to do to compile and install Ruby:
|
1998-01-16 15:13:05 +03:00
|
|
|
|
2000-12-27 08:59:03 +03:00
|
|
|
1. If ./configure does not exist or is older than configure.in,
|
|
|
|
run autoconf to (re)generate configure.
|
1998-01-16 15:13:05 +03:00
|
|
|
|
2000-12-27 08:59:03 +03:00
|
|
|
2. Run ./configure, which will generate config.h and Makefile.
|
1998-01-16 15:13:05 +03:00
|
|
|
|
2006-08-08 14:29:02 +04:00
|
|
|
3. Edit defines.h if you need. Usually this step will not be needed.
|
2000-12-27 08:59:03 +03:00
|
|
|
|
|
|
|
4. Remove comment mark(#) before the module names from ext/Setup (or
|
1999-01-20 07:59:39 +03:00
|
|
|
add module names if not present), if you want to link modules
|
|
|
|
statically.
|
1998-01-16 15:13:05 +03:00
|
|
|
|
1999-01-20 07:59:39 +03: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 15:13:05 +03:00
|
|
|
|
2000-12-27 08:59:03 +03:00
|
|
|
5. Run make.
|
1998-01-16 15:13:05 +03:00
|
|
|
|
2000-12-27 08:59:03 +03:00
|
|
|
6. Optionally, run 'make test' to check whether the compiled Ruby
|
1999-01-20 07:59:39 +03:00
|
|
|
interpreter works well. If you see the message "test succeeded",
|
|
|
|
your ruby works as it should (hopefully).
|
1998-01-16 15:13:05 +03:00
|
|
|
|
2000-12-27 08:59:03 +03:00
|
|
|
7. Run 'make install'
|
1998-01-16 15:13:05 +03:00
|
|
|
|
1999-01-20 07:59:39 +03: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 15:13:05 +03:00
|
|
|
the error log and machine/OS type, to help others.
|
|
|
|
|
1998-01-16 15:19:22 +03:00
|
|
|
|
2001-07-11 23:25:52 +04:00
|
|
|
* Copying
|
1998-01-16 15:13:05 +03:00
|
|
|
|
2001-07-11 23:25:52 +04:00
|
|
|
See the file COPYING.
|
1998-01-16 15:13:05 +03: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 18:17:53 +04:00
|
|
|
matz@netlab.jp
|
1998-01-16 15:13:05 +03:00
|
|
|
|
|
|
|
-------------------------------------------------------
|
|
|
|
created at: Thu Aug 3 11:57:36 JST 1995
|
|
|
|
Local variables:
|
|
|
|
mode: indented-text
|
|
|
|
end:
|