[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;
|
---|
[cc13920] | 6 |
|
---|
[edeebe2] | 7 | <!ENTITY ruby-download-http " ">
|
---|
[7cc1bcd] | 8 | <!ENTITY ruby-download-ftp "ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-&ruby-version;-p&ruby-patch-version;.tar.bz2">
|
---|
[00217270] | 9 | <!ENTITY ruby-md5sum "60913f3eec0c4071f44df42600be2604">
|
---|
| 10 | <!ENTITY ruby-size "10.3 MB">
|
---|
| 11 | <!ENTITY ruby-buildsize "583 MB">
|
---|
| 12 | <!ENTITY ruby-time "3.9 SBU (including all tests)">
|
---|
[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 |
|
---|
[cc13920] | 32 | <para>
|
---|
| 33 | The <application>Ruby</application> package contains the
|
---|
| 34 | <application>Ruby</application> development environment. This
|
---|
| 35 | is useful for object-oriented scripting.
|
---|
| 36 | </para>
|
---|
[16f3afb3] | 37 |
|
---|
[23d3543c] | 38 | &lfs73_checked;
|
---|
[a1813d08] | 39 |
|
---|
[16f3afb3] | 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
[cc13920] | 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&ruby-download-http;"/>
|
---|
| 45 | </para>
|
---|
[16f3afb3] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[cc13920] | 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&ruby-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
[16f3afb3] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[cc13920] | 53 | <para>
|
---|
| 54 | Download MD5 sum: &ruby-md5sum;
|
---|
| 55 | </para>
|
---|
[16f3afb3] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[cc13920] | 58 | <para>
|
---|
| 59 | Download size: &ruby-size;
|
---|
| 60 | </para>
|
---|
[16f3afb3] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[cc13920] | 63 | <para>
|
---|
| 64 | Estimated disk space required: &ruby-buildsize;
|
---|
| 65 | </para>
|
---|
[16f3afb3] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[cc13920] | 68 | <para>
|
---|
| 69 | Estimated build time: &ruby-time;
|
---|
| 70 | </para>
|
---|
[16f3afb3] | 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
| 74 | <bridgehead renderas="sect3">Ruby Dependencies</bridgehead>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[955b7fd2] | 77 | <para role="optional">
|
---|
[82fac2c] | 78 | <xref linkend="db"/>,
|
---|
[955b7fd2] | 79 | <xref linkend="doxygen"/>,
|
---|
[cc13920] | 80 | <xref linkend="graphviz"/>,
|
---|
[ecb66167] | 81 | <ulink url="http://pyyaml.org/wiki/LibYAML">libyaml</ulink>,
|
---|
[00217270] | 82 | <xref linkend="openssl"/>, and
|
---|
[cc13920] | 83 | <xref linkend="tk"/>
|
---|
[955b7fd2] | 84 | </para>
|
---|
[16f3afb3] | 85 |
|
---|
[1039de3] | 86 | <para condition="html" role="usernotes">User Notes:
|
---|
[cc13920] | 87 | <ulink url="&blfs-wiki;/ruby"/>
|
---|
| 88 | </para>
|
---|
[16f3afb3] | 89 | </sect2>
|
---|
| 90 |
|
---|
| 91 | <sect2 role="installation">
|
---|
| 92 | <title>Installation of Ruby</title>
|
---|
| 93 |
|
---|
[cc13920] | 94 | <para>
|
---|
| 95 | Install <application>Ruby</application> by running the following
|
---|
| 96 | commands:
|
---|
| 97 | </para>
|
---|
[16f3afb3] | 98 |
|
---|
[7cc1bcd] | 99 | <screen><userinput>./configure --prefix=/usr --docdir=/usr/share/doc/ruby-&ruby-version; --enable-shared &&
|
---|
[16f3afb3] | 100 | make</userinput></screen>
|
---|
| 101 |
|
---|
[cc13920] | 102 | <para>
|
---|
| 103 | To test the results, issue: <command>make test</command>.
|
---|
| 104 | </para>
|
---|
[40d6bab] | 105 |
|
---|
[cc13920] | 106 | <para>
|
---|
| 107 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 108 | </para>
|
---|
[16f3afb3] | 109 |
|
---|
| 110 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 111 |
|
---|
| 112 | </sect2>
|
---|
| 113 |
|
---|
| 114 | <sect2 role="commands">
|
---|
| 115 | <title>Command Explanations</title>
|
---|
| 116 |
|
---|
[cc13920] | 117 | <para>
|
---|
[92b0b42] | 118 | <option>--enable-shared</option>: This switch enables building of
|
---|
[cc13920] | 119 | the <filename class="libraryfile">libruby</filename> shared library.
|
---|
| 120 | </para>
|
---|
[16f3afb3] | 121 |
|
---|
| 122 | </sect2>
|
---|
| 123 |
|
---|
| 124 | <sect2 role="content">
|
---|
| 125 | <title>Contents</title>
|
---|
| 126 |
|
---|
| 127 | <segmentedlist>
|
---|
| 128 | <segtitle>Installed Programs</segtitle>
|
---|
| 129 | <segtitle>Installed Libraries</segtitle>
|
---|
| 130 | <segtitle>Installed Directories</segtitle>
|
---|
| 131 |
|
---|
| 132 | <seglistitem>
|
---|
[cc13920] | 133 | <seg>
|
---|
[00217270] | 134 | erb, gem, irb, rake, rdoc, ri, ruby, and testrb
|
---|
[cc13920] | 135 | </seg>
|
---|
| 136 | <seg>
|
---|
[00217270] | 137 | libruby.so, libruby-static.a, and numerous modules located in the
|
---|
[cc13920] | 138 | <filename class="directory">/usr/lib/ruby</filename> hierarchy.
|
---|
| 139 | </seg>
|
---|
| 140 | <seg>
|
---|
[7cc1bcd] | 141 | /usr/include/ruby-&ruby-version;,
|
---|
[cc13920] | 142 | /usr/lib/ruby,
|
---|
[7cc1bcd] | 143 | /usr/share/doc/ruby-&ruby-version; and
|
---|
[cc13920] | 144 | /usr/share/ri
|
---|
| 145 | </seg>
|
---|
[16f3afb3] | 146 | </seglistitem>
|
---|
| 147 | </segmentedlist>
|
---|
| 148 |
|
---|
| 149 | <variablelist>
|
---|
| 150 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 151 | <?dbfo list-presentation="list"?>
|
---|
| 152 | <?dbhtml list-presentation="table"?>
|
---|
| 153 |
|
---|
| 154 | <varlistentry id="ruby-prog">
|
---|
| 155 | <term><command>ruby</command></term>
|
---|
| 156 | <listitem>
|
---|
[cc13920] | 157 | <para>
|
---|
| 158 | is an interpreted scripting language for quick
|
---|
| 159 | and easy object-oriented programming.
|
---|
| 160 | </para>
|
---|
[16f3afb3] | 161 | <indexterm zone="ruby ruby-prog">
|
---|
| 162 | <primary sortas="b-ruby">ruby</primary>
|
---|
| 163 | </indexterm>
|
---|
| 164 | </listitem>
|
---|
| 165 | </varlistentry>
|
---|
| 166 |
|
---|
| 167 | <varlistentry id="irb">
|
---|
| 168 | <term><command>irb</command></term>
|
---|
| 169 | <listitem>
|
---|
[cc13920] | 170 | <para>
|
---|
| 171 | is the interactive interface for
|
---|
| 172 | <application>Ruby</application>.
|
---|
| 173 | </para>
|
---|
[16f3afb3] | 174 | <indexterm zone="ruby irb">
|
---|
| 175 | <primary sortas="b-irb">irb</primary>
|
---|
| 176 | </indexterm>
|
---|
| 177 | </listitem>
|
---|
| 178 | </varlistentry>
|
---|
| 179 |
|
---|
| 180 | <varlistentry id="erb">
|
---|
| 181 | <term><command>erb</command></term>
|
---|
| 182 | <listitem>
|
---|
[cc13920] | 183 | <para>
|
---|
| 184 | is Tiny eRuby. It interprets a
|
---|
| 185 | <application>Ruby</application> code embedded text file.
|
---|
| 186 | </para>
|
---|
[16f3afb3] | 187 | <indexterm zone="ruby erb">
|
---|
| 188 | <primary sortas="b-erb">erb</primary>
|
---|
| 189 | </indexterm>
|
---|
| 190 | </listitem>
|
---|
| 191 | </varlistentry>
|
---|
| 192 |
|
---|
| 193 | <varlistentry id="ri">
|
---|
| 194 | <term><command>ri</command></term>
|
---|
| 195 | <listitem>
|
---|
[cc13920] | 196 | <para>
|
---|
| 197 | displays documentation from a database on
|
---|
[00217270] | 198 | <application>Ruby</application> classes, modules, and methods.
|
---|
[cc13920] | 199 | </para>
|
---|
[16f3afb3] | 200 | <indexterm zone="ruby ri">
|
---|
| 201 | <primary sortas="b-ri">ri</primary>
|
---|
| 202 | </indexterm>
|
---|
| 203 | </listitem>
|
---|
| 204 | </varlistentry>
|
---|
| 205 |
|
---|
| 206 | <varlistentry id="libruby">
|
---|
[92b0b42] | 207 | <term><filename role="libraryfile">libruby.so</filename></term>
|
---|
[16f3afb3] | 208 | <listitem>
|
---|
[cc13920] | 209 | <para>
|
---|
| 210 | contains the API functions required by <application>Ruby</application>.
|
---|
| 211 | </para>
|
---|
[16f3afb3] | 212 | <indexterm zone="ruby libruby">
|
---|
| 213 | <primary sortas="c-libruby">libruby.so</primary>
|
---|
| 214 | </indexterm>
|
---|
| 215 | </listitem>
|
---|
| 216 | </varlistentry>
|
---|
| 217 |
|
---|
| 218 | </variablelist>
|
---|
| 219 |
|
---|
| 220 | </sect2>
|
---|
[a1f7daa] | 221 |
|
---|
| 222 | </sect1>
|
---|