[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[dea551da] | 7 | <!ENTITY ruby-download-http "http://www.ibiblio.org/pub/languages/ruby/ruby/ruby-&ruby-version;.tar.gz">
|
---|
[aacf50a] | 8 | <!ENTITY ruby-download-ftp "ftp://ftp.ruby-lang.org/pub/ruby/ruby-&ruby-version;.tar.gz">
|
---|
| 9 | <!ENTITY ruby-md5sum "63d6c2bddd6af86664e338b31f3189a6">
|
---|
| 10 | <!ENTITY ruby-size "4.2 MB">
|
---|
| 11 | <!ENTITY ruby-buildsize "63.9 MB">
|
---|
| 12 | <!ENTITY ruby-time "1.0 SBU">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[5db3785e] | 15 | <sect1 id="ruby" xreflabel="Ruby-&ruby-version;">
|
---|
[16f3afb3] | 16 | <?dbhtml filename="ruby.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
[256ee72c] | 21 | <keywordset>
|
---|
| 22 | <keyword role="package">ruby-&ruby-version;.tar</keyword>
|
---|
[22ac237] | 23 | <keyword role="ftpdir">ruby</keyword>
|
---|
[256ee72c] | 24 | </keywordset>
|
---|
[16f3afb3] | 25 | </sect1info>
|
---|
| 26 |
|
---|
| 27 | <title>Ruby-&ruby-version;</title>
|
---|
| 28 |
|
---|
| 29 | <indexterm zone="ruby">
|
---|
| 30 | <primary sortas="a-Ruby">Ruby</primary>
|
---|
| 31 | </indexterm>
|
---|
| 32 |
|
---|
| 33 | <sect2 role="package">
|
---|
| 34 | <title>Introduction to Ruby</title>
|
---|
| 35 |
|
---|
| 36 | <para>The <application>Ruby</application> package contains the
|
---|
| 37 | <application>Ruby</application> development environment. This
|
---|
| 38 | is useful for object-oriented scripting.</para>
|
---|
| 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (HTTP): <ulink url="&ruby-download-http;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download (FTP): <ulink url="&ruby-download-ftp;"/></para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download MD5 sum: &ruby-md5sum;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download size: &ruby-size;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated disk space required: &ruby-buildsize;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Estimated build time: &ruby-time;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | </itemizedlist>
|
---|
| 61 |
|
---|
| 62 | <bridgehead renderas="sect3">Ruby Dependencies</bridgehead>
|
---|
| 63 |
|
---|
| 64 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[256ee72c] | 65 | <para role="optional"><xref linkend="openssl"/>,
|
---|
[3f87e4a] | 66 | <xref linkend="tk"/>, and
|
---|
| 67 | <!-- <xref linkend="db"/>, -->
|
---|
[16f3afb3] | 68 | <xref linkend="gdbm"/></para>
|
---|
| 69 |
|
---|
| 70 | </sect2>
|
---|
| 71 |
|
---|
| 72 | <sect2 role="installation">
|
---|
| 73 | <title>Installation of Ruby</title>
|
---|
| 74 |
|
---|
[481b3e8] | 75 | <para>Install <application>Ruby</application> by running the following
|
---|
[16f3afb3] | 76 | commands:</para>
|
---|
| 77 |
|
---|
[aacf50a] | 78 | <screen><userinput>./configure --prefix=/usr --enable-shared \
|
---|
[40d6bab] | 79 | --enable-pthread --enable-install-doc &&
|
---|
[16f3afb3] | 80 | make</userinput></screen>
|
---|
| 81 |
|
---|
[40d6bab] | 82 | <para>To test the results, issue: <command>make test</command>.</para>
|
---|
| 83 |
|
---|
[16f3afb3] | 84 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 85 |
|
---|
| 86 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 87 |
|
---|
| 88 | </sect2>
|
---|
| 89 |
|
---|
| 90 | <sect2 role="commands">
|
---|
| 91 | <title>Command Explanations</title>
|
---|
| 92 |
|
---|
[481b3e8] | 93 | <para><parameter>--enable-shared</parameter>: This parameter builds the
|
---|
[16f3afb3] | 94 | <filename class='libraryfile'>libruby</filename> shared library.</para>
|
---|
| 95 |
|
---|
[481b3e8] | 96 | <para><parameter>--enable-pthread</parameter>: This parameter links the
|
---|
[16f3afb3] | 97 | threading library into the <application>Ruby</application> build.</para>
|
---|
| 98 |
|
---|
| 99 | </sect2>
|
---|
| 100 |
|
---|
| 101 | <sect2 role="content">
|
---|
| 102 | <title>Contents</title>
|
---|
| 103 |
|
---|
| 104 | <segmentedlist>
|
---|
| 105 | <segtitle>Installed Programs</segtitle>
|
---|
| 106 | <segtitle>Installed Libraries</segtitle>
|
---|
| 107 | <segtitle>Installed Directories</segtitle>
|
---|
| 108 |
|
---|
| 109 | <seglistitem>
|
---|
| 110 | <seg>ruby, irb, erb, rdoc, ri, and testrb</seg>
|
---|
[481b3e8] | 111 | <seg>libruby.so and numerous modules located in the
|
---|
[16f3afb3] | 112 | <filename class='directory'>/usr/lib/ruby</filename> hierarchy.</seg>
|
---|
| 113 | <seg>/usr/lib/ruby and /usr/share/ri</seg>
|
---|
| 114 | </seglistitem>
|
---|
| 115 | </segmentedlist>
|
---|
| 116 |
|
---|
| 117 | <variablelist>
|
---|
| 118 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 119 | <?dbfo list-presentation="list"?>
|
---|
| 120 | <?dbhtml list-presentation="table"?>
|
---|
| 121 |
|
---|
| 122 | <varlistentry id="ruby-prog">
|
---|
| 123 | <term><command>ruby</command></term>
|
---|
| 124 | <listitem>
|
---|
| 125 | <para>is an interpreted scripting language for quick
|
---|
| 126 | and easy object-oriented programming.</para>
|
---|
| 127 | <indexterm zone="ruby ruby-prog">
|
---|
| 128 | <primary sortas="b-ruby">ruby</primary>
|
---|
| 129 | </indexterm>
|
---|
| 130 | </listitem>
|
---|
| 131 | </varlistentry>
|
---|
| 132 |
|
---|
| 133 | <varlistentry id="irb">
|
---|
| 134 | <term><command>irb</command></term>
|
---|
| 135 | <listitem>
|
---|
| 136 | <para>is the interactive interface for
|
---|
| 137 | <application>Ruby</application>.</para>
|
---|
| 138 | <indexterm zone="ruby irb">
|
---|
| 139 | <primary sortas="b-irb">irb</primary>
|
---|
| 140 | </indexterm>
|
---|
| 141 | </listitem>
|
---|
| 142 | </varlistentry>
|
---|
| 143 |
|
---|
| 144 | <varlistentry id="erb">
|
---|
| 145 | <term><command>erb</command></term>
|
---|
| 146 | <listitem>
|
---|
| 147 | <para>is Tiny eRuby. It interprets a
|
---|
| 148 | <application>Ruby</application> code embedded text file.</para>
|
---|
| 149 | <indexterm zone="ruby erb">
|
---|
| 150 | <primary sortas="b-erb">erb</primary>
|
---|
| 151 | </indexterm>
|
---|
| 152 | </listitem>
|
---|
| 153 | </varlistentry>
|
---|
| 154 |
|
---|
| 155 | <varlistentry id="ri">
|
---|
| 156 | <term><command>ri</command></term>
|
---|
| 157 | <listitem>
|
---|
| 158 | <para>displays documentation from a database on
|
---|
| 159 | <application>Ruby</application> classes, modules and methods.</para>
|
---|
| 160 | <indexterm zone="ruby ri">
|
---|
| 161 | <primary sortas="b-ri">ri</primary>
|
---|
| 162 | </indexterm>
|
---|
| 163 | </listitem>
|
---|
| 164 | </varlistentry>
|
---|
| 165 |
|
---|
| 166 | <varlistentry id="libruby">
|
---|
| 167 | <term><filename role="library">libruby.so</filename></term>
|
---|
| 168 | <listitem>
|
---|
[481b3e8] | 169 | <para>contains the API functions required
|
---|
[16f3afb3] | 170 | by <application>Ruby</application>.</para>
|
---|
| 171 | <indexterm zone="ruby libruby">
|
---|
| 172 | <primary sortas="c-libruby">libruby.so</primary>
|
---|
| 173 | </indexterm>
|
---|
| 174 | </listitem>
|
---|
| 175 | </varlistentry>
|
---|
| 176 |
|
---|
| 177 | </variablelist>
|
---|
| 178 |
|
---|
| 179 | </sect2>
|
---|
[a1f7daa] | 180 |
|
---|
| 181 | </sect1>
|
---|