[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 " ">
|
---|
[55e02112] | 10 | <!ENTITY ruby-download-ftp "ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-&ruby-version;.tar.bz2">
|
---|
[955b7fd2] | 11 | <!ENTITY ruby-md5sum "096758c3e853b839dc980b183227b182">
|
---|
| 12 | <!ENTITY ruby-size "8.4 MB">
|
---|
| 13 | <!ENTITY ruby-buildsize "403 MB (including tests)">
|
---|
| 14 | <!ENTITY ruby-time "3.6 SBU (including tests)">
|
---|
[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 |
|
---|
[4c77a949] | 38 | &lfs71_checked;
|
---|
[a1813d08] | 39 |
|
---|
[16f3afb3] | 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>
|
---|
[955b7fd2] | 65 | <para role="optional">
|
---|
| 66 | <xref linkend="doxygen"/>,
|
---|
| 67 | <xref linkend="openssl"/>,
|
---|
| 68 | <xref linkend="tk"/>, and
|
---|
| 69 | <xref linkend="db"/>
|
---|
| 70 | </para>
|
---|
[16f3afb3] | 71 |
|
---|
[1039de3] | 72 | <para condition="html" role="usernotes">User Notes:
|
---|
| 73 | <ulink url="&blfs-wiki;/ruby"/></para>
|
---|
| 74 |
|
---|
[16f3afb3] | 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 |
|
---|
[955b7fd2] | 83 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 84 | --enable-shared \
|
---|
[ec6a601] | 85 | --enable-pthread \
|
---|
| 86 | --enable-install-doc &&
|
---|
[16f3afb3] | 87 | make</userinput></screen>
|
---|
| 88 |
|
---|
[955b7fd2] | 89 | <para>To test the results, issue: <command>make test</command>.</para>
|
---|
[40d6bab] | 90 |
|
---|
[16f3afb3] | 91 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 92 |
|
---|
| 93 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 94 |
|
---|
| 95 | </sect2>
|
---|
| 96 |
|
---|
| 97 | <sect2 role="commands">
|
---|
| 98 | <title>Command Explanations</title>
|
---|
| 99 |
|
---|
[481b3e8] | 100 | <para><parameter>--enable-shared</parameter>: This parameter builds the
|
---|
[16f3afb3] | 101 | <filename class='libraryfile'>libruby</filename> shared library.</para>
|
---|
| 102 |
|
---|
[481b3e8] | 103 | <para><parameter>--enable-pthread</parameter>: This parameter links the
|
---|
[16f3afb3] | 104 | threading library into the <application>Ruby</application> build.</para>
|
---|
| 105 |
|
---|
| 106 | </sect2>
|
---|
| 107 |
|
---|
| 108 | <sect2 role="content">
|
---|
| 109 | <title>Contents</title>
|
---|
| 110 |
|
---|
| 111 | <segmentedlist>
|
---|
| 112 | <segtitle>Installed Programs</segtitle>
|
---|
| 113 | <segtitle>Installed Libraries</segtitle>
|
---|
| 114 | <segtitle>Installed Directories</segtitle>
|
---|
| 115 |
|
---|
| 116 | <seglistitem>
|
---|
[55e02112] | 117 | <seg>erb, gem, irb, rake, rdoc, ri, ruby, and testrb</seg>
|
---|
[2f91ac60] | 118 | <seg>libruby.so, libruby-static.a and numerous modules located in the
|
---|
[16f3afb3] | 119 | <filename class='directory'>/usr/lib/ruby</filename> hierarchy.</seg>
|
---|
[55e02112] | 120 | <seg>/usr/include/ruby-1.9.1, /usr/lib/ruby and /usr/share/ri</seg>
|
---|
[16f3afb3] | 121 | </seglistitem>
|
---|
| 122 | </segmentedlist>
|
---|
| 123 |
|
---|
| 124 | <variablelist>
|
---|
| 125 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 126 | <?dbfo list-presentation="list"?>
|
---|
| 127 | <?dbhtml list-presentation="table"?>
|
---|
| 128 |
|
---|
| 129 | <varlistentry id="ruby-prog">
|
---|
| 130 | <term><command>ruby</command></term>
|
---|
| 131 | <listitem>
|
---|
| 132 | <para>is an interpreted scripting language for quick
|
---|
| 133 | and easy object-oriented programming.</para>
|
---|
| 134 | <indexterm zone="ruby ruby-prog">
|
---|
| 135 | <primary sortas="b-ruby">ruby</primary>
|
---|
| 136 | </indexterm>
|
---|
| 137 | </listitem>
|
---|
| 138 | </varlistentry>
|
---|
| 139 |
|
---|
| 140 | <varlistentry id="irb">
|
---|
| 141 | <term><command>irb</command></term>
|
---|
| 142 | <listitem>
|
---|
| 143 | <para>is the interactive interface for
|
---|
| 144 | <application>Ruby</application>.</para>
|
---|
| 145 | <indexterm zone="ruby irb">
|
---|
| 146 | <primary sortas="b-irb">irb</primary>
|
---|
| 147 | </indexterm>
|
---|
| 148 | </listitem>
|
---|
| 149 | </varlistentry>
|
---|
| 150 |
|
---|
| 151 | <varlistentry id="erb">
|
---|
| 152 | <term><command>erb</command></term>
|
---|
| 153 | <listitem>
|
---|
| 154 | <para>is Tiny eRuby. It interprets a
|
---|
| 155 | <application>Ruby</application> code embedded text file.</para>
|
---|
| 156 | <indexterm zone="ruby erb">
|
---|
| 157 | <primary sortas="b-erb">erb</primary>
|
---|
| 158 | </indexterm>
|
---|
| 159 | </listitem>
|
---|
| 160 | </varlistentry>
|
---|
| 161 |
|
---|
| 162 | <varlistentry id="ri">
|
---|
| 163 | <term><command>ri</command></term>
|
---|
| 164 | <listitem>
|
---|
| 165 | <para>displays documentation from a database on
|
---|
| 166 | <application>Ruby</application> classes, modules and methods.</para>
|
---|
| 167 | <indexterm zone="ruby ri">
|
---|
| 168 | <primary sortas="b-ri">ri</primary>
|
---|
| 169 | </indexterm>
|
---|
| 170 | </listitem>
|
---|
| 171 | </varlistentry>
|
---|
| 172 |
|
---|
| 173 | <varlistentry id="libruby">
|
---|
| 174 | <term><filename role="library">libruby.so</filename></term>
|
---|
| 175 | <listitem>
|
---|
[481b3e8] | 176 | <para>contains the API functions required
|
---|
[16f3afb3] | 177 | by <application>Ruby</application>.</para>
|
---|
| 178 | <indexterm zone="ruby libruby">
|
---|
| 179 | <primary sortas="c-libruby">libruby.so</primary>
|
---|
| 180 | </indexterm>
|
---|
| 181 | </listitem>
|
---|
| 182 | </varlistentry>
|
---|
| 183 |
|
---|
| 184 | </variablelist>
|
---|
| 185 |
|
---|
| 186 | </sect2>
|
---|
[a1f7daa] | 187 |
|
---|
| 188 | </sect1>
|
---|