1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY ruby-download-http "https://cache.ruby-lang.org/pub/ruby/&ruby-minor-version;/ruby-&ruby-version;.tar.xz">
|
---|
8 | <!ENTITY ruby-download-ftp " ">
|
---|
9 | <!ENTITY ruby-md5sum "e2c35af69d1f94e8634f38c80e809c0d">
|
---|
10 | <!ENTITY ruby-size "14 MB">
|
---|
11 | <!ENTITY ruby-buildsize "612 MB (add 1.1 GB for C API docs)">
|
---|
12 | <!ENTITY ruby-time "2.2 SBU (using parallelism=4; add 7.5 SBU for tests; add 0.8 SBU for C API docs)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="ruby" xreflabel="Ruby-&ruby-version;">
|
---|
16 | <?dbhtml filename="ruby.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <date>$Date$</date>
|
---|
20 | </sect1info>
|
---|
21 |
|
---|
22 | <title>Ruby-&ruby-version;</title>
|
---|
23 |
|
---|
24 | <indexterm zone="ruby">
|
---|
25 | <primary sortas="a-Ruby">Ruby</primary>
|
---|
26 | </indexterm>
|
---|
27 |
|
---|
28 | <sect2 role="package">
|
---|
29 | <title>Introduction to Ruby</title>
|
---|
30 |
|
---|
31 | <para>
|
---|
32 | The <application>Ruby</application> package contains the
|
---|
33 | <application>Ruby</application> development environment. This
|
---|
34 | is useful for object-oriented scripting.
|
---|
35 | </para>
|
---|
36 |
|
---|
37 | &lfs111_checked;
|
---|
38 |
|
---|
39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
40 | <itemizedlist spacing="compact">
|
---|
41 | <listitem>
|
---|
42 | <para>
|
---|
43 | Download (HTTP): <ulink url="&ruby-download-http;"/>
|
---|
44 | </para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>
|
---|
48 | Download (FTP): <ulink url="&ruby-download-ftp;"/>
|
---|
49 | </para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>
|
---|
53 | Download MD5 sum: &ruby-md5sum;
|
---|
54 | </para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>
|
---|
58 | Download size: &ruby-size;
|
---|
59 | </para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para>
|
---|
63 | Estimated disk space required: &ruby-buildsize;
|
---|
64 | </para>
|
---|
65 | </listitem>
|
---|
66 | <listitem>
|
---|
67 | <para>
|
---|
68 | Estimated build time: &ruby-time;
|
---|
69 | </para>
|
---|
70 | </listitem>
|
---|
71 | </itemizedlist>
|
---|
72 |
|
---|
73 | <bridgehead renderas="sect3">Ruby Dependencies</bridgehead>
|
---|
74 |
|
---|
75 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
76 | <para role="optional">
|
---|
77 | <xref linkend="db"/>,
|
---|
78 | <xref linkend="doxygen"/>,
|
---|
79 | <xref linkend="graphviz"/>,
|
---|
80 | <xref linkend="libyaml"/>,
|
---|
81 | <xref linkend="tk"/>,
|
---|
82 | <xref linkend="valgrind"/>, and
|
---|
83 | <ulink url="http://dtrace.org/blogs/about/">DTrace</ulink>
|
---|
84 | </para>
|
---|
85 |
|
---|
86 | <para condition="html" role="usernotes">User Notes:
|
---|
87 | <ulink url="&blfs-wiki;/ruby"/>
|
---|
88 | </para>
|
---|
89 | </sect2>
|
---|
90 |
|
---|
91 | <sect2 role="installation">
|
---|
92 | <title>Installation of Ruby</title>
|
---|
93 |
|
---|
94 | <para>
|
---|
95 | Install <application>Ruby</application> by running the following
|
---|
96 | command:
|
---|
97 | </para>
|
---|
98 |
|
---|
99 | <screen><userinput>./configure --prefix=/usr \
|
---|
100 | --enable-shared \
|
---|
101 | --docdir=/usr/share/doc/ruby-&ruby-version; &&
|
---|
102 | make</userinput></screen>
|
---|
103 |
|
---|
104 | <para>
|
---|
105 | Optionally, build the CAPI documents by running the following
|
---|
106 | commands:
|
---|
107 | </para>
|
---|
108 |
|
---|
109 | <screen><userinput>make capi</userinput></screen>
|
---|
110 |
|
---|
111 | <para>
|
---|
112 | To test the results, issue: <command>make check</command>. There are over
|
---|
113 | 21,000 tests. Some tests related to ipv6 may indicate errors. If the
|
---|
114 | tests are run in a directory that has a world writable component (e.g.
|
---|
115 | /tmp) then several additional tests may fail. A few tests may fail due
|
---|
116 | to system configuration expectations.
|
---|
117 | </para>
|
---|
118 | <!-- With 3.0.2:
|
---|
119 | Finished tests in 443.541527s, 47.5739 tests/s, 6031.9921 assertions/s. 21101 tests, 2675439 assertions, 4 failures, 1 errors, 45 skips -->
|
---|
120 |
|
---|
121 | <para>
|
---|
122 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
123 | </para>
|
---|
124 |
|
---|
125 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
126 |
|
---|
127 | </sect2>
|
---|
128 |
|
---|
129 | <sect2 role="commands">
|
---|
130 | <title>Command Explanations</title>
|
---|
131 |
|
---|
132 | <para>
|
---|
133 | <parameter>--enable-shared</parameter>: This switch enables building
|
---|
134 | the <filename class="libraryfile">libruby</filename> shared library.
|
---|
135 | </para>
|
---|
136 |
|
---|
137 | <para>
|
---|
138 | <option>--disable-install-doc</option>: This switch disables building and
|
---|
139 | installing rdoc indexes and C API documents.
|
---|
140 | </para>
|
---|
141 |
|
---|
142 | <para>
|
---|
143 | <option>--disable-install-rdoc</option>: This switch disables building
|
---|
144 | and installing rdoc indexes.
|
---|
145 | </para>
|
---|
146 |
|
---|
147 | <para>
|
---|
148 | <option>--disable-install-capi</option>: This switch disables building
|
---|
149 | and installing C API documents.
|
---|
150 | </para>
|
---|
151 |
|
---|
152 | </sect2>
|
---|
153 |
|
---|
154 | <sect2 role="content">
|
---|
155 | <title>Contents</title>
|
---|
156 |
|
---|
157 | <segmentedlist>
|
---|
158 | <segtitle>Installed Programs</segtitle>
|
---|
159 | <segtitle>Installed Libraries</segtitle>
|
---|
160 | <segtitle>Installed Directories</segtitle>
|
---|
161 |
|
---|
162 | <seglistitem>
|
---|
163 | <seg>
|
---|
164 | bundle,
|
---|
165 | bundler,
|
---|
166 | erb,
|
---|
167 | gem,
|
---|
168 | irb,
|
---|
169 | racc,
|
---|
170 | rake,
|
---|
171 | rbs,
|
---|
172 | rdbg,
|
---|
173 | rdoc,
|
---|
174 | ri,
|
---|
175 | ruby, and
|
---|
176 | typeprof
|
---|
177 | </seg>
|
---|
178 | <seg>
|
---|
179 | libruby.so
|
---|
180 | </seg>
|
---|
181 | <seg>
|
---|
182 | /usr/include/ruby-&ruby-minor-version;.0,
|
---|
183 | /usr/lib/ruby,
|
---|
184 | /usr/share/doc/ruby-&ruby-version; and
|
---|
185 | /usr/share/ri
|
---|
186 | </seg>
|
---|
187 | </seglistitem>
|
---|
188 | </segmentedlist>
|
---|
189 |
|
---|
190 | <variablelist>
|
---|
191 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
192 | <?dbfo list-presentation="list"?>
|
---|
193 | <?dbhtml list-presentation="table"?>
|
---|
194 |
|
---|
195 | <varlistentry id="bundle">
|
---|
196 | <term><command>bundle</command></term>
|
---|
197 | <listitem>
|
---|
198 | <para>
|
---|
199 | creates bundles of Ruby Gems
|
---|
200 | </para>
|
---|
201 | <indexterm zone="ruby bundle">
|
---|
202 | <primary sortas="b-bundle">bundle</primary>
|
---|
203 | </indexterm>
|
---|
204 | </listitem>
|
---|
205 | </varlistentry>
|
---|
206 |
|
---|
207 | <varlistentry id="bundler">
|
---|
208 | <term><command>bundler</command></term>
|
---|
209 | <listitem>
|
---|
210 | <para>
|
---|
211 | manages an application's dependencies throughout it's lifecycle
|
---|
212 | </para>
|
---|
213 | <indexterm zone="ruby bundler">
|
---|
214 | <primary sortas="b-bundler">bundler</primary>
|
---|
215 | </indexterm>
|
---|
216 | </listitem>
|
---|
217 | </varlistentry>
|
---|
218 |
|
---|
219 | <varlistentry id="erb">
|
---|
220 | <term><command>erb</command></term>
|
---|
221 | <listitem>
|
---|
222 | <para>
|
---|
223 | is a command line front-end for eRuby, which provides a templating
|
---|
224 | system for <application>Ruby</application>
|
---|
225 | </para>
|
---|
226 | <indexterm zone="ruby erb">
|
---|
227 | <primary sortas="b-erb">erb</primary>
|
---|
228 | </indexterm>
|
---|
229 | </listitem>
|
---|
230 | </varlistentry>
|
---|
231 |
|
---|
232 | <varlistentry id="gem">
|
---|
233 | <term><command>gem</command></term>
|
---|
234 | <listitem>
|
---|
235 | <para>
|
---|
236 | is the command for RubyGems, which is a sophisticated package
|
---|
237 | manager for <application>Ruby</application>. This is similar
|
---|
238 | to Python's 'pip' command
|
---|
239 | </para>
|
---|
240 | <indexterm zone="ruby gem">
|
---|
241 | <primary sortas="b-gem">gem</primary>
|
---|
242 | </indexterm>
|
---|
243 | </listitem>
|
---|
244 | </varlistentry>
|
---|
245 |
|
---|
246 | <varlistentry id="irb">
|
---|
247 | <term><command>irb</command></term>
|
---|
248 | <listitem>
|
---|
249 | <para>
|
---|
250 | is the interactive interface for
|
---|
251 | <application>Ruby</application>
|
---|
252 | </para>
|
---|
253 | <indexterm zone="ruby irb">
|
---|
254 | <primary sortas="b-irb">irb</primary>
|
---|
255 | </indexterm>
|
---|
256 | </listitem>
|
---|
257 | </varlistentry>
|
---|
258 |
|
---|
259 | <varlistentry id="rake">
|
---|
260 | <term><command>rake</command></term>
|
---|
261 | <listitem>
|
---|
262 | <para>
|
---|
263 | is a make-like build utility for <application>Ruby</application>
|
---|
264 | </para>
|
---|
265 | <indexterm zone="ruby rake">
|
---|
266 | <primary sortas="b-rake">rake</primary>
|
---|
267 | </indexterm>
|
---|
268 | </listitem>
|
---|
269 | </varlistentry>
|
---|
270 |
|
---|
271 | <varlistentry id="rdbg">
|
---|
272 | <term><command>rdbg</command></term>
|
---|
273 | <listitem>
|
---|
274 | <para>
|
---|
275 | is an interactive debugger for <application>Ruby</application>
|
---|
276 | </para>
|
---|
277 | <indexterm zone="ruby rdbg">
|
---|
278 | <primary sortas="b-rdbg">rdbg</primary>
|
---|
279 | </indexterm>
|
---|
280 | </listitem>
|
---|
281 | </varlistentry>
|
---|
282 |
|
---|
283 | <varlistentry id="rdoc">
|
---|
284 | <term><command>rdoc</command></term>
|
---|
285 | <listitem>
|
---|
286 | <para>
|
---|
287 | generates <application>Ruby</application> documentation
|
---|
288 | </para>
|
---|
289 | <indexterm zone="ruby rdoc">
|
---|
290 | <primary sortas="b-rdoc">rdoc</primary>
|
---|
291 | </indexterm>
|
---|
292 | </listitem>
|
---|
293 | </varlistentry>
|
---|
294 |
|
---|
295 | <varlistentry id="ri">
|
---|
296 | <term><command>ri</command></term>
|
---|
297 | <listitem>
|
---|
298 | <para>
|
---|
299 | displays documentation from a database on
|
---|
300 | <application>Ruby</application> classes, modules, and methods
|
---|
301 | </para>
|
---|
302 | <indexterm zone="ruby ri">
|
---|
303 | <primary sortas="b-ri">ri</primary>
|
---|
304 | </indexterm>
|
---|
305 | </listitem>
|
---|
306 | </varlistentry>
|
---|
307 |
|
---|
308 | <varlistentry id="ruby-prog">
|
---|
309 | <term><command>ruby</command></term>
|
---|
310 | <listitem>
|
---|
311 | <para>
|
---|
312 | is an interpreted scripting language for quick
|
---|
313 | and easy object-oriented programming
|
---|
314 | </para>
|
---|
315 | <indexterm zone="ruby ruby-prog">
|
---|
316 | <primary sortas="b-ruby">ruby</primary>
|
---|
317 | </indexterm>
|
---|
318 | </listitem>
|
---|
319 | </varlistentry>
|
---|
320 |
|
---|
321 | <varlistentry id="libruby">
|
---|
322 | <term><filename role="libraryfile">libruby.so</filename></term>
|
---|
323 | <listitem>
|
---|
324 | <para>
|
---|
325 | contains the API functions required by <application>Ruby</application>
|
---|
326 | </para>
|
---|
327 | <indexterm zone="ruby libruby">
|
---|
328 | <primary sortas="c-libruby">libruby.so</primary>
|
---|
329 | </indexterm>
|
---|
330 | </listitem>
|
---|
331 | </varlistentry>
|
---|
332 |
|
---|
333 | </variablelist>
|
---|
334 |
|
---|
335 | </sect2>
|
---|
336 |
|
---|
337 | </sect1>
|
---|