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