source: general/prog/ruby.xml@ 6d44b69

10.1 11.0 11.1 11.2 lazarus plabs/python-mods qt5new trunk upgradedb xry111/intltool xry111/soup3 xry111/test-20220226
Last change on this file since 6d44b69 was 6d44b69, checked in by Bruce Dubbs <bdubbs@…>, 2 years ago

Update to iw-5.9.
Update to gobject-introspection-1.66.1.
Update to ruby-2.7.2.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@23789 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 8.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 "http://cache.ruby-lang.org/pub/ruby/&ruby-minor-version;/ruby-&ruby-version;.tar.xz">
8 <!ENTITY ruby-download-ftp " ">
9 <!ENTITY ruby-md5sum "60adb09227ff188a53fd13b6e854edd2">
10 <!ENTITY ruby-size "11 MB">
11 <!ENTITY ruby-buildsize "567 MB (add 230 MB for C API docs)">
12 <!ENTITY ruby-time "1.3 SBU (using parallelism=4; add 4.4 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 <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
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>
37
38 &lfs10_checked;
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&ruby-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&ruby-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &ruby-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &ruby-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &ruby-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &ruby-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">Ruby Dependencies</bridgehead>
75
76 <bridgehead renderas="sect4">Optional</bridgehead>
77 <para role="optional">
78 <xref linkend="db"/>,
79 <xref linkend="doxygen"/>,
80 <xref linkend="graphviz"/>,
81 <xref linkend="libyaml"/>,
82 <xref linkend="tk"/>,
83 <xref linkend="valgrind"/>, and
84 <ulink url="http://dtrace.org/blogs/about/">DTrace</ulink>
85 </para>
86
87 <para condition="html" role="usernotes">User Notes:
88 <ulink url="&blfs-wiki;/ruby"/>
89 </para>
90 </sect2>
91
92 <sect2 role="installation">
93 <title>Installation of Ruby</title>
94
95 <para>
96 Install <application>Ruby</application> by running the following
97 command:
98 </para>
99
100<screen><userinput>./configure --prefix=/usr \
101 --enable-shared \
102 --docdir=/usr/share/doc/ruby-&ruby-version; &amp;&amp;
103make</userinput></screen>
104
105 <para>
106 Optionally, build the CAPI documents by running the following
107 commands:
108 </para>
109
110<screen><userinput>make capi</userinput></screen>
111
112 <para>
113 To test the results, issue: <command>make check</command>. There are over
114 21,000 tests. Some tests related to ipv6 may indicate errors. If the
115 tests are run in a directory that has a world writable component (e.g.
116 /tmp) then several additional tests may fail. One test related to
117 the time function may fail due to a change in expectations as a result of
118 glibc-2.31.
119 </para>
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 of
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, bundler, erb, gem, irb, rake, rdoc, ri, and ruby
165 </seg>
166 <seg>
167 libruby.so
168 </seg>
169 <seg>
170 /usr/include/ruby-&ruby-minor-version;.0
171 /usr/lib/ruby,
172 /usr/share/doc/ruby-&ruby-version; and
173 /usr/share/ri
174 </seg>
175 </seglistitem>
176 </segmentedlist>
177
178 <variablelist>
179 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
180 <?dbfo list-presentation="list"?>
181 <?dbhtml list-presentation="table"?>
182
183 <varlistentry id="bundle">
184 <term><command>bundle</command></term>
185 <listitem>
186 <para>
187 creates bundles of Ruby Gems.
188 </para>
189 <indexterm zone="ruby bundle">
190 <primary sortas="b-bundle">bundle</primary>
191 </indexterm>
192 </listitem>
193 </varlistentry>
194
195 <varlistentry id="bundler">
196 <term><command>bundler</command></term>
197 <listitem>
198 <para>
199 manages an application's dependencies throughout it's lifecycle.
200 </para>
201 <indexterm zone="ruby bundler">
202 <primary sortas="b-bundler">bundler</primary>
203 </indexterm>
204 </listitem>
205 </varlistentry>
206
207 <varlistentry id="erb">
208 <term><command>erb</command></term>
209 <listitem>
210 <para>
211 is Tiny eRuby. It interprets a
212 <application>Ruby</application> code embedded text file.
213 </para>
214 <indexterm zone="ruby erb">
215 <primary sortas="b-erb">erb</primary>
216 </indexterm>
217 </listitem>
218 </varlistentry>
219
220 <varlistentry id="gem">
221 <term><command>gem</command></term>
222 <listitem>
223 <para>
224 command for RubyGems - a sophisticated package manager for
225 <application>Ruby</application>.
226 </para>
227 <indexterm zone="ruby gem">
228 <primary sortas="b-gem">gem</primary>
229 </indexterm>
230 </listitem>
231 </varlistentry>
232
233 <varlistentry id="irb">
234 <term><command>irb</command></term>
235 <listitem>
236 <para>
237 is the interactive interface for
238 <application>Ruby</application>.
239 </para>
240 <indexterm zone="ruby irb">
241 <primary sortas="b-irb">irb</primary>
242 </indexterm>
243 </listitem>
244 </varlistentry>
245
246 <varlistentry id="rake">
247 <term><command>rake</command></term>
248 <listitem>
249 <para>
250 a make-like build utility for <application>Ruby</application>.
251 </para>
252 <indexterm zone="ruby rake">
253 <primary sortas="b-rake">rake</primary>
254 </indexterm>
255 </listitem>
256 </varlistentry>
257
258 <varlistentry id="rdoc">
259 <term><command>rdoc</command></term>
260 <listitem>
261 <para>
262 generates <application>Ruby</application> documentation.
263 </para>
264 <indexterm zone="ruby rdoc">
265 <primary sortas="b-rdoc">rdoc</primary>
266 </indexterm>
267 </listitem>
268 </varlistentry>
269
270 <varlistentry id="ri">
271 <term><command>ri</command></term>
272 <listitem>
273 <para>
274 displays documentation from a database on
275 <application>Ruby</application> classes, modules, and methods.
276 </para>
277 <indexterm zone="ruby ri">
278 <primary sortas="b-ri">ri</primary>
279 </indexterm>
280 </listitem>
281 </varlistentry>
282
283 <varlistentry id="ruby-prog">
284 <term><command>ruby</command></term>
285 <listitem>
286 <para>
287 is an interpreted scripting language for quick
288 and easy object-oriented programming.
289 </para>
290 <indexterm zone="ruby ruby-prog">
291 <primary sortas="b-ruby">ruby</primary>
292 </indexterm>
293 </listitem>
294 </varlistentry>
295
296 <varlistentry id="libruby">
297 <term><filename role="libraryfile">libruby.so</filename></term>
298 <listitem>
299 <para>
300 contains the API functions required by <application>Ruby</application>.
301 </para>
302 <indexterm zone="ruby libruby">
303 <primary sortas="c-libruby">libruby.so</primary>
304 </indexterm>
305 </listitem>
306 </varlistentry>
307
308 </variablelist>
309
310 </sect2>
311
312</sect1>
Note: See TracBrowser for help on using the repository browser.