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