[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 |
|
---|
[e619d74] | 7 | <!ENTITY ruby-download-http " ">
|
---|
| 8 | <!ENTITY ruby-download-ftp "ftp://ftp.ruby-lang.org/pub/ruby/ruby-&ruby-version;.tar.gz">
|
---|
[35a9977] | 9 | <!ENTITY ruby-md5sum "8ffc79d96f336b80f2690a17601dea9b">
|
---|
[e619d74] | 10 | <!ENTITY ruby-size "3.5 MB">
|
---|
[4ba4e7c] | 11 | <!ENTITY ruby-buildsize "36.2 MB">
|
---|
| 12 | <!ENTITY ruby-time "0.62 SBU">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[35a9977] | 15 | <sect1 id="ruby-package" xreflabel="Ruby-&ruby-version;">
|
---|
[a0f03b0] | 16 | <sect1info>
|
---|
[5cd0959d] | 17 | <othername>$LastChangedBy$</othername>
|
---|
| 18 | <date>$Date$</date>
|
---|
[a0f03b0] | 19 | </sect1info>
|
---|
[19aa75a] | 20 | <?dbhtml filename="ruby.html"?>
|
---|
[13f51bbc] | 21 | <title>Ruby-&ruby-version;</title>
|
---|
[03ab977] | 22 | <indexterm zone="ruby-package"><primary sortas="a-Ruby">Ruby</primary></indexterm>
|
---|
[a1f7daa] | 23 |
|
---|
[52d29f7] | 24 | <sect2>
|
---|
| 25 | <title>Introduction to <application>Ruby</application></title>
|
---|
[4ba4e7c] | 26 |
|
---|
[52d29f7] | 27 | <para>The <application>Ruby</application> package contains the
|
---|
| 28 | <application>Ruby</application> development environment. This
|
---|
| 29 | is useful for object-oriented scripting.</para>
|
---|
[4ba4e7c] | 30 |
|
---|
[52d29f7] | 31 | <sect3><title>Package information</title>
|
---|
| 32 | <itemizedlist spacing='compact'>
|
---|
| 33 | <listitem><para>Download (HTTP): <ulink url="&ruby-download-http;"/></para></listitem>
|
---|
| 34 | <listitem><para>Download (FTP): <ulink url="&ruby-download-ftp;"/></para></listitem>
|
---|
[0ef1837] | 35 | <listitem><para>Download MD5 sum: &ruby-md5sum;</para></listitem>
|
---|
[52d29f7] | 36 | <listitem><para>Download size: &ruby-size;</para></listitem>
|
---|
[4ba4e7c] | 37 | <listitem><para>Estimated disk space required: &ruby-buildsize;</para></listitem>
|
---|
[52d29f7] | 38 | <listitem><para>Estimated build time: &ruby-time;</para></listitem></itemizedlist>
|
---|
| 39 | </sect3>
|
---|
[4ba4e7c] | 40 |
|
---|
| 41 | <sect3><title><application>Ruby</application> dependencies</title>
|
---|
| 42 | <sect4><title>Optional</title>
|
---|
| 43 | <para><xref linkend="openssl"/>,
|
---|
| 44 | <xref linkend="tk"/>,
|
---|
| 45 | <xref linkend="db"/>,
|
---|
| 46 | <xref linkend="gdbm"/></para>
|
---|
| 47 | </sect4>
|
---|
| 48 | </sect3>
|
---|
| 49 |
|
---|
[52d29f7] | 50 | </sect2>
|
---|
| 51 |
|
---|
| 52 | <sect2>
|
---|
| 53 | <title>Installation of <application>Ruby</application></title>
|
---|
[4ba4e7c] | 54 |
|
---|
| 55 | <para>Install <application>Ruby</application> by running the following
|
---|
| 56 | commands:</para>
|
---|
| 57 |
|
---|
| 58 | <screen><userinput><command>./configure --prefix=/usr \
|
---|
| 59 | --enable-shared --enable-pthread &&
|
---|
[52d29f7] | 60 | make &&
|
---|
[5cb3ea7] | 61 | make install &&
|
---|
| 62 | make install-doc</command></userinput></screen>
|
---|
| 63 |
|
---|
[4ba4e7c] | 64 |
|
---|
| 65 | </sect2>
|
---|
| 66 |
|
---|
| 67 | <sect2>
|
---|
| 68 | <title>Command explanations</title>
|
---|
| 69 |
|
---|
| 70 | <para><parameter>--enable-shared</parameter>: This parameter builds the
|
---|
| 71 | <filename class='libraryfile'>libruby</filename> shared library.</para>
|
---|
| 72 |
|
---|
| 73 | <para><parameter>--enable-pthread</parameter>: This parameter links the
|
---|
| 74 | threading library into the <application>Ruby</application> build.</para>
|
---|
| 75 |
|
---|
[52d29f7] | 76 | </sect2>
|
---|
| 77 |
|
---|
| 78 | <sect2>
|
---|
| 79 | <title>Contents</title>
|
---|
[5cb3ea7] | 80 |
|
---|
[35a9977] | 81 | <segmentedlist>
|
---|
[7302427] | 82 | <segtitle>Installed Program</segtitle>
|
---|
[35a9977] | 83 | <segtitle>Installed Library</segtitle>
|
---|
[f13a39e] | 84 | <segtitle>Installed Scripts</segtitle>
|
---|
[5cb3ea7] | 85 | <segtitle>Installed Directories</segtitle>
|
---|
[35a9977] | 86 | <seglistitem>
|
---|
[f13a39e] | 87 | <seg>ruby</seg>
|
---|
[0ef1837] | 88 | <seg>libruby.so</seg>
|
---|
[f13a39e] | 89 | <seg>irb, erb, rdoc, ri and testrb</seg>
|
---|
[5cb3ea7] | 90 | <seg>/usr/lib/ruby and /usr/share/ri</seg></seglistitem>
|
---|
[35a9977] | 91 | </segmentedlist>
|
---|
| 92 |
|
---|
| 93 | <variablelist>
|
---|
| 94 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 95 | <?dbfo list-presentation="list"?>
|
---|
| 96 |
|
---|
| 97 | <varlistentry id="ruby">
|
---|
[0ef1837] | 98 | <term><command>ruby</command></term>
|
---|
[35a9977] | 99 | <listitem><para>is an interpreted scripting language for quick
|
---|
[03ab977] | 100 | and easy object-oriented programming.</para>
|
---|
| 101 | <indexterm zone="ruby-package ruby"><primary sortas="b-ruby">ruby</primary></indexterm>
|
---|
| 102 | </listitem>
|
---|
[35a9977] | 103 | </varlistentry>
|
---|
| 104 |
|
---|
| 105 | <varlistentry id="irb">
|
---|
| 106 | <term><command>irb</command></term>
|
---|
[5cb3ea7] | 107 | <listitem><para>is the interactive interface for
|
---|
| 108 | <application>Ruby</application>.</para>
|
---|
[f13a39e] | 109 | <indexterm zone="ruby-package irb"><primary sortas="d-irb">irb</primary></indexterm>
|
---|
[03ab977] | 110 | </listitem>
|
---|
[35a9977] | 111 | </varlistentry>
|
---|
[5cb3ea7] | 112 |
|
---|
| 113 | <varlistentry id="erb">
|
---|
| 114 | <term><command>erb</command></term>
|
---|
| 115 | <listitem><para>is Tiny eRuby. It interprets a
|
---|
| 116 | <application>Ruby</application> code embedded text file.</para>
|
---|
[f13a39e] | 117 | <indexterm zone="ruby-package erb"><primary sortas="d-erb">erb</primary></indexterm>
|
---|
[5cb3ea7] | 118 | </listitem>
|
---|
| 119 | </varlistentry>
|
---|
| 120 |
|
---|
| 121 | <varlistentry id="ri">
|
---|
| 122 | <term><command>ri</command></term>
|
---|
| 123 | <listitem><para>displays documentation from a database on
|
---|
| 124 | <application>Ruby</application> classes, modules and methods.</para>
|
---|
[f13a39e] | 125 | <indexterm zone="ruby-package ri"><primary sortas="d-ri">ri</primary></indexterm>
|
---|
[5cb3ea7] | 126 | </listitem>
|
---|
| 127 | </varlistentry>
|
---|
[7302427] | 128 |
|
---|
| 129 | <varlistentry id="libruby">
|
---|
| 130 | <term><filename role="library">libruby.so</filename></term>
|
---|
| 131 | <listitem><para>contains the <acronym>API</acronym> functions required
|
---|
| 132 | by <application>Ruby</application>.</para>
|
---|
| 133 | <indexterm zone="ruby-package libruby"><primary
|
---|
| 134 | sortas="c-libruby">libruby.so</primary></indexterm>
|
---|
| 135 | </listitem>
|
---|
| 136 | </varlistentry>
|
---|
| 137 |
|
---|
| 138 |
|
---|
[35a9977] | 139 | </variablelist>
|
---|
[4ba4e7c] | 140 |
|
---|
[52d29f7] | 141 | </sect2>
|
---|
[a1f7daa] | 142 |
|
---|
| 143 | </sect1>
|
---|
| 144 |
|
---|