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