[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY ruby-download-http "http://rubyforge.org/download.php/262/ruby-&ruby-version;.tar.gz">
|
---|
| 8 | <!ENTITY ruby-download-ftp " ">
|
---|
| 9 | <!ENTITY ruby-size "2.6 MB">
|
---|
[4ba4e7c] | 10 | <!ENTITY ruby-buildsize "36.2 MB">
|
---|
| 11 | <!ENTITY ruby-time "0.62 SBU">
|
---|
[52d29f7] | 12 | ]>
|
---|
| 13 |
|
---|
[13f51bbc] | 14 | <sect1 id="ruby" xreflabel="Ruby-&ruby-version;">
|
---|
[a0f03b0] | 15 | <sect1info>
|
---|
[5cd0959d] | 16 | <othername>$LastChangedBy$</othername>
|
---|
| 17 | <date>$Date$</date>
|
---|
[a0f03b0] | 18 | </sect1info>
|
---|
[19aa75a] | 19 | <?dbhtml filename="ruby.html"?>
|
---|
[13f51bbc] | 20 | <title>Ruby-&ruby-version;</title>
|
---|
[a1f7daa] | 21 |
|
---|
[52d29f7] | 22 | <sect2>
|
---|
| 23 | <title>Introduction to <application>Ruby</application></title>
|
---|
[4ba4e7c] | 24 |
|
---|
[52d29f7] | 25 | <para>The <application>Ruby</application> package contains the
|
---|
| 26 | <application>Ruby</application> development environment. This
|
---|
| 27 | is useful for object-oriented scripting.</para>
|
---|
[4ba4e7c] | 28 |
|
---|
[52d29f7] | 29 | <sect3><title>Package information</title>
|
---|
| 30 | <itemizedlist spacing='compact'>
|
---|
| 31 | <listitem><para>Download (HTTP): <ulink url="&ruby-download-http;"/></para></listitem>
|
---|
| 32 | <listitem><para>Download (FTP): <ulink url="&ruby-download-ftp;"/></para></listitem>
|
---|
| 33 | <listitem><para>Download size: &ruby-size;</para></listitem>
|
---|
[4ba4e7c] | 34 | <listitem><para>Estimated disk space required: &ruby-buildsize;</para></listitem>
|
---|
[52d29f7] | 35 | <listitem><para>Estimated build time: &ruby-time;</para></listitem></itemizedlist>
|
---|
| 36 | </sect3>
|
---|
[4ba4e7c] | 37 |
|
---|
| 38 | <sect3><title><application>Ruby</application> dependencies</title>
|
---|
| 39 | <sect4><title>Optional</title>
|
---|
| 40 | <para><xref linkend="openssl"/>,
|
---|
| 41 | <xref linkend="tk"/>,
|
---|
| 42 | <xref linkend="db"/>,
|
---|
| 43 | <xref linkend="gdbm"/></para>
|
---|
| 44 | </sect4>
|
---|
| 45 | </sect3>
|
---|
| 46 |
|
---|
[52d29f7] | 47 | </sect2>
|
---|
| 48 |
|
---|
| 49 | <sect2>
|
---|
| 50 | <title>Installation of <application>Ruby</application></title>
|
---|
[4ba4e7c] | 51 |
|
---|
| 52 | <para>Install <application>Ruby</application> by running the following
|
---|
| 53 | commands:</para>
|
---|
| 54 |
|
---|
| 55 | <screen><userinput><command>./configure --prefix=/usr \
|
---|
| 56 | --enable-shared --enable-pthread &&
|
---|
[52d29f7] | 57 | make &&
|
---|
| 58 | make install</command></userinput></screen>
|
---|
[4ba4e7c] | 59 |
|
---|
| 60 | </sect2>
|
---|
| 61 |
|
---|
| 62 | <sect2>
|
---|
| 63 | <title>Command explanations</title>
|
---|
| 64 |
|
---|
| 65 | <para><parameter>--enable-shared</parameter>: This parameter builds the
|
---|
| 66 | <filename class='libraryfile'>libruby</filename> shared library.</para>
|
---|
| 67 |
|
---|
| 68 | <para><parameter>--enable-pthread</parameter>: This parameter links the
|
---|
| 69 | threading library into the <application>Ruby</application> build.</para>
|
---|
| 70 |
|
---|
[52d29f7] | 71 | </sect2>
|
---|
| 72 |
|
---|
| 73 | <sect2>
|
---|
| 74 | <title>Contents</title>
|
---|
[4ba4e7c] | 75 |
|
---|
[52d29f7] | 76 | <para>The <application>Ruby</application> package contains
|
---|
| 77 | <command>ruby</command>,
|
---|
| 78 | <command>irb</command>,
|
---|
| 79 | <command>erb</command>,
|
---|
| 80 | <command>rdoc</command>,
|
---|
[4ba4e7c] | 81 | <command>ri</command>,
|
---|
| 82 | <command>testrb</command>,
|
---|
| 83 | <filename class='libraryfile'>libruby</filename> libraries and
|
---|
| 84 | numerous scripts and modules.</para>
|
---|
| 85 |
|
---|
[52d29f7] | 86 | </sect2>
|
---|
[4ba4e7c] | 87 |
|
---|
[52d29f7] | 88 | <sect2><title>Description</title>
|
---|
[4ba4e7c] | 89 |
|
---|
[52d29f7] | 90 | <sect3><title>ruby</title>
|
---|
| 91 | <para><command>ruby</command> is an interpreted scripting language for quick
|
---|
| 92 | and easy object-oriented programming.</para></sect3>
|
---|
[4ba4e7c] | 93 |
|
---|
[52d29f7] | 94 | <sect3><title>irb</title>
|
---|
| 95 | <para><command>irb</command> is the interactive interface for ruby.</para>
|
---|
| 96 | </sect3>
|
---|
[4ba4e7c] | 97 |
|
---|
[52d29f7] | 98 | </sect2>
|
---|
[a1f7daa] | 99 |
|
---|
| 100 | </sect1>
|
---|
| 101 |
|
---|