source: general/prog/ruby.xml@ 3f2db3a6

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 3f2db3a6 was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 17 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

  • Property mode set to 100644
File size: 9.9 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 "093edbcb070be014991b43f499abf083">
10 <!ENTITY ruby-size "14.5 MB">
11 <!ENTITY ruby-buildsize "619 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
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 21,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. 21101 tests, 2675439 assertions, 4 failures, 1 errors, 45 skips -->
117
118 <para>
119 Now, as the <systemitem class="username">root</systemitem> user:
120 </para>
121
122<screen role="root"><userinput>make install</userinput></screen>
123
124 <note>
125 <para>
126 If you have Ruby-On-Rails applications installed and did an
127 upgrade of <application>Ruby</application> by installing this
128 package, you might need to run an update there, too:
129 </para>
130
131<screen><userinput role="nodump">cd /path/to/web/app
132bundle update rake
133/etc/rc.d/init.d/httpd restart</userinput></screen>
134 </note>
135
136 </sect2>
137
138 <sect2 role="commands">
139 <title>Command Explanations</title>
140
141 <para>
142 <parameter>--enable-shared</parameter>: This switch enables building
143 the <filename class="libraryfile">libruby</filename> shared library.
144 </para>
145
146 <para>
147 <option>--disable-install-doc</option>: This switch disables building and
148 installing rdoc indexes and C API documents.
149 </para>
150
151 <para>
152 <option>--disable-install-rdoc</option>: This switch disables building
153 and installing rdoc indexes.
154 </para>
155
156 <para>
157 <option>--disable-install-capi</option>: This switch disables building
158 and installing C API documents.
159 </para>
160
161 </sect2>
162
163 <sect2 role="content">
164 <title>Contents</title>
165
166 <segmentedlist>
167 <segtitle>Installed Programs</segtitle>
168 <segtitle>Installed Libraries</segtitle>
169 <segtitle>Installed Directories</segtitle>
170
171 <seglistitem>
172 <seg>
173 bundle,
174 bundler,
175 erb,
176 gem,
177 irb,
178 racc,
179 rake,
180 rbs,
181 rdbg,
182 rdoc,
183 ri,
184 ruby, and
185 typeprof
186 </seg>
187 <seg>
188 libruby.so
189 </seg>
190 <seg>
191 /usr/include/ruby-&ruby-minor-version;.0,
192 /usr/lib/ruby,
193 /usr/share/doc/ruby-&ruby-version; and
194 /usr/share/ri
195 </seg>
196 </seglistitem>
197 </segmentedlist>
198
199 <variablelist>
200 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
201 <?dbfo list-presentation="list"?>
202 <?dbhtml list-presentation="table"?>
203
204 <varlistentry id="bundle">
205 <term><command>bundle</command></term>
206 <listitem>
207 <para>
208 creates bundles of Ruby Gems
209 </para>
210 <indexterm zone="ruby bundle">
211 <primary sortas="b-bundle">bundle</primary>
212 </indexterm>
213 </listitem>
214 </varlistentry>
215
216 <varlistentry id="bundler">
217 <term><command>bundler</command></term>
218 <listitem>
219 <para>
220 manages an application's dependencies throughout it's lifecycle
221 </para>
222 <indexterm zone="ruby bundler">
223 <primary sortas="b-bundler">bundler</primary>
224 </indexterm>
225 </listitem>
226 </varlistentry>
227
228 <varlistentry id="erb">
229 <term><command>erb</command></term>
230 <listitem>
231 <para>
232 is a command line front-end for eRuby, which provides a templating
233 system for <application>Ruby</application>
234 </para>
235 <indexterm zone="ruby erb">
236 <primary sortas="b-erb">erb</primary>
237 </indexterm>
238 </listitem>
239 </varlistentry>
240
241 <varlistentry id="gem">
242 <term><command>gem</command></term>
243 <listitem>
244 <para>
245 is the command for RubyGems, which is a sophisticated package
246 manager for <application>Ruby</application>. This is similar
247 to Python's 'pip' command
248 </para>
249 <indexterm zone="ruby gem">
250 <primary sortas="b-gem">gem</primary>
251 </indexterm>
252 </listitem>
253 </varlistentry>
254
255 <varlistentry id="irb">
256 <term><command>irb</command></term>
257 <listitem>
258 <para>
259 is the interactive interface for
260 <application>Ruby</application>
261 </para>
262 <indexterm zone="ruby irb">
263 <primary sortas="b-irb">irb</primary>
264 </indexterm>
265 </listitem>
266 </varlistentry>
267
268 <varlistentry id="rake">
269 <term><command>rake</command></term>
270 <listitem>
271 <para>
272 is a make-like build utility for <application>Ruby</application>
273 </para>
274 <indexterm zone="ruby rake">
275 <primary sortas="b-rake">rake</primary>
276 </indexterm>
277 </listitem>
278 </varlistentry>
279
280 <varlistentry id="rdbg">
281 <term><command>rdbg</command></term>
282 <listitem>
283 <para>
284 is an interactive debugger for <application>Ruby</application>
285 </para>
286 <indexterm zone="ruby rdbg">
287 <primary sortas="b-rdbg">rdbg</primary>
288 </indexterm>
289 </listitem>
290 </varlistentry>
291
292 <varlistentry id="rdoc">
293 <term><command>rdoc</command></term>
294 <listitem>
295 <para>
296 generates <application>Ruby</application> documentation
297 </para>
298 <indexterm zone="ruby rdoc">
299 <primary sortas="b-rdoc">rdoc</primary>
300 </indexterm>
301 </listitem>
302 </varlistentry>
303
304 <varlistentry id="ri">
305 <term><command>ri</command></term>
306 <listitem>
307 <para>
308 displays documentation from a database on
309 <application>Ruby</application> classes, modules, and methods
310 </para>
311 <indexterm zone="ruby ri">
312 <primary sortas="b-ri">ri</primary>
313 </indexterm>
314 </listitem>
315 </varlistentry>
316
317 <varlistentry id="ruby-prog">
318 <term><command>ruby</command></term>
319 <listitem>
320 <para>
321 is an interpreted scripting language for quick
322 and easy object-oriented programming
323 </para>
324 <indexterm zone="ruby ruby-prog">
325 <primary sortas="b-ruby">ruby</primary>
326 </indexterm>
327 </listitem>
328 </varlistentry>
329
330 <varlistentry id="libruby">
331 <term><filename role="libraryfile">libruby.so</filename></term>
332 <listitem>
333 <para>
334 contains the API functions required by <application>Ruby</application>
335 </para>
336 <indexterm zone="ruby libruby">
337 <primary sortas="c-libruby">libruby.so</primary>
338 </indexterm>
339 </listitem>
340 </varlistentry>
341
342 </variablelist>
343
344 </sect2>
345
346</sect1>
Note: See TracBrowser for help on using the repository browser.