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