source: general/prog/ruby.xml@ de944b9

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since de944b9 was de944b9, checked in by Bruce Dubbs <bdubbs@…>, 16 months ago

Update to ruby-3.2.0.

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