[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 |
|
---|
[2037ec4] | 7 | <!ENTITY ruby-download-http "http://cache.ruby-lang.org/pub/ruby/&ruby-minor-version;/ruby-&ruby-version;.tar.xz">
|
---|
[2f3226d] | 8 | <!ENTITY ruby-download-ftp " ">
|
---|
| 9 | <!--
|
---|
[2037ec4] | 10 | <!ENTITY ruby-download-ftp "ftp://ftp.ruby-lang.org/pub/ruby/&ruby-minor-version;/ruby-&ruby-version;.tar.xz">
|
---|
[2f3226d] | 11 | -->
|
---|
[d7bee48] | 12 | <!ENTITY ruby-md5sum "01e9d172a5c33b385e92fc0cc2899766">
|
---|
[2037ec4] | 13 | <!ENTITY ruby-size "11 MB">
|
---|
| 14 | <!ENTITY ruby-buildsize "614 MB, with checks (additional 478 MB for C API docs)">
|
---|
| 15 | <!ENTITY ruby-time "5.5 SBU, with checks (additional 0.5 SBU for C API docs)">
|
---|
[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 |
|
---|
[cf193634] | 41 | &lfs78_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"/>,
|
---|
[2037ec4] | 84 | <xref linkend="libffi"/>,
|
---|
[469bc5d4] | 85 | <xref linkend="openssl"/>,
|
---|
[2037ec4] | 86 | <xref linkend="tk"/>,
|
---|
| 87 | <xref linkend="yaml"/>, and
|
---|
| 88 | <xref linkend="valgrind"/>
|
---|
[955b7fd2] | 89 | </para>
|
---|
[16f3afb3] | 90 |
|
---|
[1039de3] | 91 | <para condition="html" role="usernotes">User Notes:
|
---|
[cc13920] | 92 | <ulink url="&blfs-wiki;/ruby"/>
|
---|
| 93 | </para>
|
---|
[16f3afb3] | 94 | </sect2>
|
---|
| 95 |
|
---|
| 96 | <sect2 role="installation">
|
---|
| 97 | <title>Installation of Ruby</title>
|
---|
| 98 |
|
---|
[cc13920] | 99 | <para>
|
---|
| 100 | Install <application>Ruby</application> by running the following
|
---|
[ac38e9dc] | 101 | command:
|
---|
[cc13920] | 102 | </para>
|
---|
[16f3afb3] | 103 |
|
---|
[9d4de3fb] | 104 | <screen><userinput>./configure --prefix=/usr \
|
---|
[b9d56ad4] | 105 | --enable-shared \
|
---|
[d9fd122] | 106 | --docdir=/usr/share/doc/ruby-&ruby-version; &&
|
---|
[16f3afb3] | 107 | make</userinput></screen>
|
---|
| 108 |
|
---|
[ac38e9dc] | 109 | <para>
|
---|
| 110 | Optionally, build the CAPI documents by running the following
|
---|
| 111 | commands:
|
---|
| 112 | </para>
|
---|
| 113 |
|
---|
| 114 | <screen><userinput>make capi</userinput></screen>
|
---|
| 115 |
|
---|
[cc13920] | 116 | <para>
|
---|
[2037ec4] | 117 | To test the results, issue: <command>make check</command>.
|
---|
[cc13920] | 118 | </para>
|
---|
[40d6bab] | 119 |
|
---|
[cc13920] | 120 | <para>
|
---|
| 121 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 122 | </para>
|
---|
[16f3afb3] | 123 |
|
---|
| 124 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 125 |
|
---|
| 126 | </sect2>
|
---|
| 127 |
|
---|
| 128 | <sect2 role="commands">
|
---|
| 129 | <title>Command Explanations</title>
|
---|
| 130 |
|
---|
[b9d56ad4] | 131 | <para>
|
---|
| 132 | <parameter>--enable-shared</parameter>: This switch enables building of
|
---|
[cc13920] | 133 | the <filename class="libraryfile">libruby</filename> shared library.
|
---|
| 134 | </para>
|
---|
[16f3afb3] | 135 |
|
---|
[b2881615] | 136 | <para>
|
---|
| 137 | <option>--disable-install-doc</option>: This switch disables building and
|
---|
[2037ec4] | 138 | installing rdoc indexes and C API documents.
|
---|
[b2881615] | 139 | </para>
|
---|
| 140 |
|
---|
| 141 | <para>
|
---|
| 142 | <option>--disable-install-rdoc</option>: This switch disables building
|
---|
| 143 | and installing rdoc indexes.
|
---|
| 144 | </para>
|
---|
| 145 |
|
---|
| 146 | <para>
|
---|
| 147 | <option>--disable-install-capi</option>: This switch disables building
|
---|
[2037ec4] | 148 | and installing C API documents.
|
---|
[b2881615] | 149 | </para>
|
---|
| 150 |
|
---|
[16f3afb3] | 151 | </sect2>
|
---|
| 152 |
|
---|
| 153 | <sect2 role="content">
|
---|
| 154 | <title>Contents</title>
|
---|
| 155 |
|
---|
| 156 | <segmentedlist>
|
---|
| 157 | <segtitle>Installed Programs</segtitle>
|
---|
| 158 | <segtitle>Installed Libraries</segtitle>
|
---|
| 159 | <segtitle>Installed Directories</segtitle>
|
---|
| 160 |
|
---|
| 161 | <seglistitem>
|
---|
[cc13920] | 162 | <seg>
|
---|
[ac38e9dc] | 163 | erb, gem, irb, rake, rdoc, ri, and ruby
|
---|
[cc13920] | 164 | </seg>
|
---|
| 165 | <seg>
|
---|
[ac38e9dc] | 166 | libruby.so and libruby-static.a
|
---|
[cc13920] | 167 | </seg>
|
---|
| 168 | <seg>
|
---|
[2037ec4] | 169 | /usr/include/ruby-&ruby-minor-version;.0
|
---|
[cc13920] | 170 | /usr/lib/ruby,
|
---|
[7cc1bcd] | 171 | /usr/share/doc/ruby-&ruby-version; and
|
---|
[cc13920] | 172 | /usr/share/ri
|
---|
| 173 | </seg>
|
---|
[16f3afb3] | 174 | </seglistitem>
|
---|
| 175 | </segmentedlist>
|
---|
| 176 |
|
---|
| 177 | <variablelist>
|
---|
| 178 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 179 | <?dbfo list-presentation="list"?>
|
---|
| 180 | <?dbhtml list-presentation="table"?>
|
---|
| 181 |
|
---|
[2037ec4] | 182 | <varlistentry id="erb">
|
---|
| 183 | <term><command>erb</command></term>
|
---|
[16f3afb3] | 184 | <listitem>
|
---|
[cc13920] | 185 | <para>
|
---|
[2037ec4] | 186 | is Tiny eRuby. It interprets a
|
---|
| 187 | <application>Ruby</application> code embedded text file.
|
---|
[cc13920] | 188 | </para>
|
---|
[2037ec4] | 189 | <indexterm zone="ruby erb">
|
---|
| 190 | <primary sortas="b-erb">erb</primary>
|
---|
| 191 | </indexterm>
|
---|
| 192 | </listitem>
|
---|
| 193 | </varlistentry>
|
---|
| 194 |
|
---|
| 195 | <varlistentry id="gem">
|
---|
| 196 | <term><command>gem</command></term>
|
---|
| 197 | <listitem>
|
---|
| 198 | <para>
|
---|
| 199 | command for RubyGems - a sophisticated package manager for
|
---|
| 200 | <application>Ruby</application>.
|
---|
| 201 | </para>
|
---|
| 202 | <indexterm zone="ruby gem">
|
---|
| 203 | <primary sortas="b-gem">gem</primary>
|
---|
[16f3afb3] | 204 | </indexterm>
|
---|
| 205 | </listitem>
|
---|
| 206 | </varlistentry>
|
---|
| 207 |
|
---|
| 208 | <varlistentry id="irb">
|
---|
| 209 | <term><command>irb</command></term>
|
---|
| 210 | <listitem>
|
---|
[cc13920] | 211 | <para>
|
---|
| 212 | is the interactive interface for
|
---|
| 213 | <application>Ruby</application>.
|
---|
| 214 | </para>
|
---|
[16f3afb3] | 215 | <indexterm zone="ruby irb">
|
---|
| 216 | <primary sortas="b-irb">irb</primary>
|
---|
| 217 | </indexterm>
|
---|
| 218 | </listitem>
|
---|
| 219 | </varlistentry>
|
---|
| 220 |
|
---|
[2037ec4] | 221 | <varlistentry id="rake">
|
---|
| 222 | <term><command>rake</command></term>
|
---|
[16f3afb3] | 223 | <listitem>
|
---|
[cc13920] | 224 | <para>
|
---|
[2037ec4] | 225 | a make-like build utility for <application>Ruby</application>.
|
---|
[cc13920] | 226 | </para>
|
---|
[2037ec4] | 227 | <indexterm zone="ruby rake">
|
---|
| 228 | <primary sortas="b-rake">rake</primary>
|
---|
| 229 | </indexterm>
|
---|
| 230 | </listitem>
|
---|
| 231 | </varlistentry>
|
---|
| 232 |
|
---|
| 233 | <varlistentry id="rdoc">
|
---|
| 234 | <term><command>rdoc</command></term>
|
---|
| 235 | <listitem>
|
---|
| 236 | <para>
|
---|
| 237 | generates <application>Ruby</application> documentation.
|
---|
| 238 | </para>
|
---|
| 239 | <indexterm zone="ruby rdoc">
|
---|
| 240 | <primary sortas="b-rdoc">rdoc</primary>
|
---|
[16f3afb3] | 241 | </indexterm>
|
---|
| 242 | </listitem>
|
---|
| 243 | </varlistentry>
|
---|
| 244 |
|
---|
| 245 | <varlistentry id="ri">
|
---|
| 246 | <term><command>ri</command></term>
|
---|
| 247 | <listitem>
|
---|
[cc13920] | 248 | <para>
|
---|
| 249 | displays documentation from a database on
|
---|
[00217270] | 250 | <application>Ruby</application> classes, modules, and methods.
|
---|
[cc13920] | 251 | </para>
|
---|
[16f3afb3] | 252 | <indexterm zone="ruby ri">
|
---|
| 253 | <primary sortas="b-ri">ri</primary>
|
---|
| 254 | </indexterm>
|
---|
| 255 | </listitem>
|
---|
| 256 | </varlistentry>
|
---|
| 257 |
|
---|
[2037ec4] | 258 | <varlistentry id="ruby-prog">
|
---|
| 259 | <term><command>ruby</command></term>
|
---|
| 260 | <listitem>
|
---|
| 261 | <para>
|
---|
| 262 | is an interpreted scripting language for quick
|
---|
| 263 | and easy object-oriented programming.
|
---|
| 264 | </para>
|
---|
| 265 | <indexterm zone="ruby ruby-prog">
|
---|
| 266 | <primary sortas="b-ruby">ruby</primary>
|
---|
| 267 | </indexterm>
|
---|
| 268 | </listitem>
|
---|
| 269 | </varlistentry>
|
---|
| 270 |
|
---|
[16f3afb3] | 271 | <varlistentry id="libruby">
|
---|
[92b0b42] | 272 | <term><filename role="libraryfile">libruby.so</filename></term>
|
---|
[16f3afb3] | 273 | <listitem>
|
---|
[cc13920] | 274 | <para>
|
---|
| 275 | contains the API functions required by <application>Ruby</application>.
|
---|
| 276 | </para>
|
---|
[16f3afb3] | 277 | <indexterm zone="ruby libruby">
|
---|
| 278 | <primary sortas="c-libruby">libruby.so</primary>
|
---|
| 279 | </indexterm>
|
---|
| 280 | </listitem>
|
---|
| 281 | </varlistentry>
|
---|
| 282 |
|
---|
| 283 | </variablelist>
|
---|
| 284 |
|
---|
| 285 | </sect2>
|
---|
[a1f7daa] | 286 |
|
---|
| 287 | </sect1>
|
---|