[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>
|
---|
[939cf0da] | 43 | <para><xref linkend="openssl-package"/>,
|
---|
[4ba4e7c] | 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>
|
---|
[5cb3ea7] | 84 | <segtitle>Installed Directories</segtitle>
|
---|
[35a9977] | 85 | <seglistitem>
|
---|
[20cdff51] | 86 | <seg>ruby, irb, erb, rdoc, ri and testrb</seg>
|
---|
[0ef1837] | 87 | <seg>libruby.so</seg>
|
---|
[5cb3ea7] | 88 | <seg>/usr/lib/ruby and /usr/share/ri</seg></seglistitem>
|
---|
[35a9977] | 89 | </segmentedlist>
|
---|
| 90 |
|
---|
| 91 | <variablelist>
|
---|
| 92 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 93 | <?dbfo list-presentation="list"?>
|
---|
| 94 |
|
---|
| 95 | <varlistentry id="ruby">
|
---|
[0ef1837] | 96 | <term><command>ruby</command></term>
|
---|
[35a9977] | 97 | <listitem><para>is an interpreted scripting language for quick
|
---|
[03ab977] | 98 | and easy object-oriented programming.</para>
|
---|
| 99 | <indexterm zone="ruby-package ruby"><primary sortas="b-ruby">ruby</primary></indexterm>
|
---|
| 100 | </listitem>
|
---|
[35a9977] | 101 | </varlistentry>
|
---|
| 102 |
|
---|
| 103 | <varlistentry id="irb">
|
---|
| 104 | <term><command>irb</command></term>
|
---|
[5cb3ea7] | 105 | <listitem><para>is the interactive interface for
|
---|
| 106 | <application>Ruby</application>.</para>
|
---|
[20cdff51] | 107 | <indexterm zone="ruby-package irb"><primary sortas="b-irb">irb</primary></indexterm>
|
---|
[03ab977] | 108 | </listitem>
|
---|
[35a9977] | 109 | </varlistentry>
|
---|
[5cb3ea7] | 110 |
|
---|
| 111 | <varlistentry id="erb">
|
---|
| 112 | <term><command>erb</command></term>
|
---|
| 113 | <listitem><para>is Tiny eRuby. It interprets a
|
---|
| 114 | <application>Ruby</application> code embedded text file.</para>
|
---|
[20cdff51] | 115 | <indexterm zone="ruby-package erb"><primary sortas="b-erb">erb</primary></indexterm>
|
---|
[5cb3ea7] | 116 | </listitem>
|
---|
| 117 | </varlistentry>
|
---|
| 118 |
|
---|
| 119 | <varlistentry id="ri">
|
---|
| 120 | <term><command>ri</command></term>
|
---|
| 121 | <listitem><para>displays documentation from a database on
|
---|
| 122 | <application>Ruby</application> classes, modules and methods.</para>
|
---|
[20cdff51] | 123 | <indexterm zone="ruby-package ri"><primary sortas="b-ri">ri</primary></indexterm>
|
---|
[5cb3ea7] | 124 | </listitem>
|
---|
| 125 | </varlistentry>
|
---|
[7302427] | 126 |
|
---|
| 127 | <varlistentry id="libruby">
|
---|
| 128 | <term><filename role="library">libruby.so</filename></term>
|
---|
| 129 | <listitem><para>contains the <acronym>API</acronym> functions required
|
---|
| 130 | by <application>Ruby</application>.</para>
|
---|
| 131 | <indexterm zone="ruby-package libruby"><primary
|
---|
| 132 | sortas="c-libruby">libruby.so</primary></indexterm>
|
---|
| 133 | </listitem>
|
---|
| 134 | </varlistentry>
|
---|
| 135 |
|
---|
| 136 |
|
---|
[35a9977] | 137 | </variablelist>
|
---|
[4ba4e7c] | 138 |
|
---|
[52d29f7] | 139 | </sect2>
|
---|
[a1f7daa] | 140 |
|
---|
| 141 | </sect1>
|
---|
| 142 |
|
---|