[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 |
|
---|
[8461a06] | 7 | <!ENTITY ruby-download-http "http://cache.ruby-lang.org/pub/ruby/2.2/ruby-&ruby-version;.tar.xz">
|
---|
[2f3226d] | 8 | <!ENTITY ruby-download-ftp " ">
|
---|
| 9 | <!--
|
---|
[e02c1e3] | 10 | <!ENTITY ruby-download-ftp "ftp://ftp.ruby-lang.org/pub/ruby/2.2/ruby-&ruby-version;.tar.xz">
|
---|
[2f3226d] | 11 | -->
|
---|
[fbeccbfc] | 12 | <!ENTITY ruby-md5sum "dbce9b9d79d90f213ba8d448b0b6ed86">
|
---|
| 13 | <!ENTITY ruby-size "10 MB">
|
---|
| 14 | <!ENTITY ruby-buildsize "585 MB (additional 467 MB for C API docs)">
|
---|
| 15 | <!ENTITY ruby-time "2.3 SBU (additional 0.4 SBU for C API docs and 0.1 SBU for tests)">
|
---|
[52d29f7] | 16 | ]>
|
---|
| 17 |
|
---|
[5db3785e] | 18 | <sect1 id="ruby" xreflabel="Ruby-&ruby-version;">
|
---|
[16f3afb3] | 19 | <?dbhtml filename="ruby.html"?>
|
---|
| 20 |
|
---|
| 21 | <sect1info>
|
---|
| 22 | <othername>$LastChangedBy$</othername>
|
---|
| 23 | <date>$Date$</date>
|
---|
| 24 | </sect1info>
|
---|
| 25 |
|
---|
| 26 | <title>Ruby-&ruby-version;</title>
|
---|
| 27 |
|
---|
| 28 | <indexterm zone="ruby">
|
---|
| 29 | <primary sortas="a-Ruby">Ruby</primary>
|
---|
| 30 | </indexterm>
|
---|
| 31 |
|
---|
| 32 | <sect2 role="package">
|
---|
| 33 | <title>Introduction to Ruby</title>
|
---|
| 34 |
|
---|
[cc13920] | 35 | <para>
|
---|
| 36 | The <application>Ruby</application> package contains the
|
---|
| 37 | <application>Ruby</application> development environment. This
|
---|
| 38 | is useful for object-oriented scripting.
|
---|
| 39 | </para>
|
---|
[16f3afb3] | 40 |
|
---|
[a456eedd] | 41 | &lfs77_checked; &gcc5_checked;
|
---|
[a1813d08] | 42 |
|
---|
[16f3afb3] | 43 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 44 | <itemizedlist spacing="compact">
|
---|
| 45 | <listitem>
|
---|
[cc13920] | 46 | <para>
|
---|
| 47 | Download (HTTP): <ulink url="&ruby-download-http;"/>
|
---|
| 48 | </para>
|
---|
[16f3afb3] | 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
[cc13920] | 51 | <para>
|
---|
| 52 | Download (FTP): <ulink url="&ruby-download-ftp;"/>
|
---|
| 53 | </para>
|
---|
[16f3afb3] | 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
[cc13920] | 56 | <para>
|
---|
| 57 | Download MD5 sum: &ruby-md5sum;
|
---|
| 58 | </para>
|
---|
[16f3afb3] | 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
[cc13920] | 61 | <para>
|
---|
| 62 | Download size: &ruby-size;
|
---|
| 63 | </para>
|
---|
[16f3afb3] | 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
[cc13920] | 66 | <para>
|
---|
| 67 | Estimated disk space required: &ruby-buildsize;
|
---|
| 68 | </para>
|
---|
[16f3afb3] | 69 | </listitem>
|
---|
| 70 | <listitem>
|
---|
[cc13920] | 71 | <para>
|
---|
| 72 | Estimated build time: &ruby-time;
|
---|
| 73 | </para>
|
---|
[16f3afb3] | 74 | </listitem>
|
---|
| 75 | </itemizedlist>
|
---|
| 76 |
|
---|
| 77 | <bridgehead renderas="sect3">Ruby Dependencies</bridgehead>
|
---|
| 78 |
|
---|
| 79 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[955b7fd2] | 80 | <para role="optional">
|
---|
[82fac2c] | 81 | <xref linkend="db"/>,
|
---|
[955b7fd2] | 82 | <xref linkend="doxygen"/>,
|
---|
[cc13920] | 83 | <xref linkend="graphviz"/>,
|
---|
[248a536] | 84 | <xref linkend="openssl"/>,
|
---|
| 85 | <xref linkend="tk"/>, and
|
---|
| 86 | <ulink url="http://pyyaml.org/wiki/LibYAML">libyaml</ulink>
|
---|
[955b7fd2] | 87 | </para>
|
---|
[16f3afb3] | 88 |
|
---|
[1039de3] | 89 | <para condition="html" role="usernotes">User Notes:
|
---|
[cc13920] | 90 | <ulink url="&blfs-wiki;/ruby"/>
|
---|
| 91 | </para>
|
---|
[16f3afb3] | 92 | </sect2>
|
---|
| 93 |
|
---|
| 94 | <sect2 role="installation">
|
---|
| 95 | <title>Installation of Ruby</title>
|
---|
| 96 |
|
---|
[cc13920] | 97 | <para>
|
---|
| 98 | Install <application>Ruby</application> by running the following
|
---|
[75457cc] | 99 | command:
|
---|
[cc13920] | 100 | </para>
|
---|
[16f3afb3] | 101 |
|
---|
[9d4de3fb] | 102 | <screen><userinput>./configure --prefix=/usr \
|
---|
[b9d56ad4] | 103 | --enable-shared \
|
---|
[e02c1e3] | 104 | --docdir=/usr/share/doc/ruby-&ruby-version; &&
|
---|
| 105 | make</userinput></screen>
|
---|
[75457cc] | 106 |
|
---|
| 107 | <para>
|
---|
| 108 | Optionally, build the CAPI documents by running the following
|
---|
| 109 | commands:
|
---|
| 110 | </para>
|
---|
| 111 |
|
---|
[e02c1e3] | 112 | <screen><userinput>make capi</userinput></screen>
|
---|
[16f3afb3] | 113 |
|
---|
[cc13920] | 114 | <para>
|
---|
| 115 | To test the results, issue: <command>make test</command>.
|
---|
| 116 | </para>
|
---|
[40d6bab] | 117 |
|
---|
[cc13920] | 118 | <para>
|
---|
| 119 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 120 | </para>
|
---|
[16f3afb3] | 121 |
|
---|
| 122 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 123 |
|
---|
| 124 | </sect2>
|
---|
| 125 |
|
---|
| 126 | <sect2 role="commands">
|
---|
| 127 | <title>Command Explanations</title>
|
---|
| 128 |
|
---|
[b9d56ad4] | 129 | <para>
|
---|
| 130 | <parameter>--enable-shared</parameter>: This switch enables building of
|
---|
[cc13920] | 131 | the <filename class="libraryfile">libruby</filename> shared library.
|
---|
| 132 | </para>
|
---|
[16f3afb3] | 133 |
|
---|
[5d388f2] | 134 | <para>
|
---|
| 135 | <option>--disable-install-doc</option>: This switch disables building and
|
---|
| 136 | installing rdoc indexes and C API documents.
|
---|
| 137 | </para>
|
---|
| 138 |
|
---|
| 139 | <para>
|
---|
| 140 | <option>--disable-install-rdoc</option>: This switch disables building
|
---|
| 141 | and installing rdoc indexes.
|
---|
| 142 | </para>
|
---|
| 143 |
|
---|
| 144 | <para>
|
---|
| 145 | <option>--disable-install-capi</option>: This switch disables building
|
---|
| 146 | and installing C API documents.
|
---|
| 147 | </para>
|
---|
| 148 |
|
---|
[16f3afb3] | 149 | </sect2>
|
---|
| 150 |
|
---|
| 151 | <sect2 role="content">
|
---|
| 152 | <title>Contents</title>
|
---|
| 153 |
|
---|
| 154 | <segmentedlist>
|
---|
| 155 | <segtitle>Installed Programs</segtitle>
|
---|
| 156 | <segtitle>Installed Libraries</segtitle>
|
---|
| 157 | <segtitle>Installed Directories</segtitle>
|
---|
| 158 |
|
---|
| 159 | <seglistitem>
|
---|
[cc13920] | 160 | <seg>
|
---|
[8461a06] | 161 | erb, gem, irb, rake, rdoc, ri, and ruby
|
---|
[cc13920] | 162 | </seg>
|
---|
| 163 | <seg>
|
---|
[8461a06] | 164 | libruby.so and libruby-static.a
|
---|
[cc13920] | 165 | </seg>
|
---|
| 166 | <seg>
|
---|
[fbeccbfc] | 167 | /usr/include/ruby-2.2.0
|
---|
[cc13920] | 168 | /usr/lib/ruby,
|
---|
[7cc1bcd] | 169 | /usr/share/doc/ruby-&ruby-version; and
|
---|
[cc13920] | 170 | /usr/share/ri
|
---|
| 171 | </seg>
|
---|
[16f3afb3] | 172 | </seglistitem>
|
---|
| 173 | </segmentedlist>
|
---|
| 174 |
|
---|
| 175 | <variablelist>
|
---|
| 176 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 177 | <?dbfo list-presentation="list"?>
|
---|
| 178 | <?dbhtml list-presentation="table"?>
|
---|
| 179 |
|
---|
| 180 | <varlistentry id="ruby-prog">
|
---|
| 181 | <term><command>ruby</command></term>
|
---|
| 182 | <listitem>
|
---|
[cc13920] | 183 | <para>
|
---|
| 184 | is an interpreted scripting language for quick
|
---|
| 185 | and easy object-oriented programming.
|
---|
| 186 | </para>
|
---|
[16f3afb3] | 187 | <indexterm zone="ruby ruby-prog">
|
---|
| 188 | <primary sortas="b-ruby">ruby</primary>
|
---|
| 189 | </indexterm>
|
---|
| 190 | </listitem>
|
---|
| 191 | </varlistentry>
|
---|
| 192 |
|
---|
| 193 | <varlistentry id="irb">
|
---|
| 194 | <term><command>irb</command></term>
|
---|
| 195 | <listitem>
|
---|
[cc13920] | 196 | <para>
|
---|
| 197 | is the interactive interface for
|
---|
| 198 | <application>Ruby</application>.
|
---|
| 199 | </para>
|
---|
[16f3afb3] | 200 | <indexterm zone="ruby irb">
|
---|
| 201 | <primary sortas="b-irb">irb</primary>
|
---|
| 202 | </indexterm>
|
---|
| 203 | </listitem>
|
---|
| 204 | </varlistentry>
|
---|
| 205 |
|
---|
| 206 | <varlistentry id="erb">
|
---|
| 207 | <term><command>erb</command></term>
|
---|
| 208 | <listitem>
|
---|
[cc13920] | 209 | <para>
|
---|
| 210 | is Tiny eRuby. It interprets a
|
---|
| 211 | <application>Ruby</application> code embedded text file.
|
---|
| 212 | </para>
|
---|
[16f3afb3] | 213 | <indexterm zone="ruby erb">
|
---|
| 214 | <primary sortas="b-erb">erb</primary>
|
---|
| 215 | </indexterm>
|
---|
| 216 | </listitem>
|
---|
| 217 | </varlistentry>
|
---|
| 218 |
|
---|
| 219 | <varlistentry id="ri">
|
---|
| 220 | <term><command>ri</command></term>
|
---|
| 221 | <listitem>
|
---|
[cc13920] | 222 | <para>
|
---|
| 223 | displays documentation from a database on
|
---|
[00217270] | 224 | <application>Ruby</application> classes, modules, and methods.
|
---|
[cc13920] | 225 | </para>
|
---|
[16f3afb3] | 226 | <indexterm zone="ruby ri">
|
---|
| 227 | <primary sortas="b-ri">ri</primary>
|
---|
| 228 | </indexterm>
|
---|
| 229 | </listitem>
|
---|
| 230 | </varlistentry>
|
---|
| 231 |
|
---|
| 232 | <varlistentry id="libruby">
|
---|
[92b0b42] | 233 | <term><filename role="libraryfile">libruby.so</filename></term>
|
---|
[16f3afb3] | 234 | <listitem>
|
---|
[cc13920] | 235 | <para>
|
---|
| 236 | contains the API functions required by <application>Ruby</application>.
|
---|
| 237 | </para>
|
---|
[16f3afb3] | 238 | <indexterm zone="ruby libruby">
|
---|
| 239 | <primary sortas="c-libruby">libruby.so</primary>
|
---|
| 240 | </indexterm>
|
---|
| 241 | </listitem>
|
---|
| 242 | </varlistentry>
|
---|
| 243 |
|
---|
| 244 | </variablelist>
|
---|
| 245 |
|
---|
| 246 | </sect2>
|
---|
[a1f7daa] | 247 |
|
---|
| 248 | </sect1>
|
---|