source: general/prog/ruby.xml@ 372597e

10.0 10.1 11.0 11.1 9.1 lazarus qt5new trunk upgradedb xry111/intltool xry111/test-20220226
Last change on this file since 372597e was 372597e, checked in by Bruce Dubbs <bdubbs@…>, 2 years ago

Update to xvidcore-1.3.7.
Update to poppler-0.84.0.
Update to doxygen-1.8.17.
Update to ruby-2.7.0.
Update to NetworkManager-1.22.2.

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

  • Property mode set to 100644
File size: 8.8 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 "22262b119bf22ebe6df363c5f1b68944">
10 <!ENTITY ruby-size "11 MB">
11 <!ENTITY ruby-buildsize "451 MB (add 214 MB for C API docs)">
12 <!ENTITY ruby-time "1.7 SBU (using parallelism=4; add 4.8 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 &lfs90_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.
117 </para>
118
119 <para>
120 Now, as the <systemitem class="username">root</systemitem> user:
121 </para>
122
123<screen role="root"><userinput>make install</userinput></screen>
124
125 </sect2>
126
127 <sect2 role="commands">
128 <title>Command Explanations</title>
129
130 <para>
131 <parameter>--enable-shared</parameter>: This switch enables building of
132 the <filename class="libraryfile">libruby</filename> shared library.
133 </para>
134
135 <para>
136 <option>--disable-install-doc</option>: This switch disables building and
137 installing rdoc indexes and C API documents.
138 </para>
139
140 <para>
141 <option>--disable-install-rdoc</option>: This switch disables building
142 and installing rdoc indexes.
143 </para>
144
145 <para>
146 <option>--disable-install-capi</option>: This switch disables building
147 and installing C API documents.
148 </para>
149
150 </sect2>
151
152 <sect2 role="content">
153 <title>Contents</title>
154
155 <segmentedlist>
156 <segtitle>Installed Programs</segtitle>
157 <segtitle>Installed Libraries</segtitle>
158 <segtitle>Installed Directories</segtitle>
159
160 <seglistitem>
161 <seg>
162 bundle, bundler, erb, gem, irb, rake, rdoc, ri, and ruby
163 </seg>
164 <seg>
165 libruby.so
166 </seg>
167 <seg>
168 /usr/include/ruby-&ruby-minor-version;.0
169 /usr/lib/ruby,
170 /usr/share/doc/ruby-&ruby-version; and
171 /usr/share/ri
172 </seg>
173 </seglistitem>
174 </segmentedlist>
175
176 <variablelist>
177 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
178 <?dbfo list-presentation="list"?>
179 <?dbhtml list-presentation="table"?>
180
181 <varlistentry id="bundle">
182 <term><command>bundle</command></term>
183 <listitem>
184 <para>
185 creates bundles of Ruby Gems.
186 </para>
187 <indexterm zone="ruby bundle">
188 <primary sortas="b-bundle">bundle</primary>
189 </indexterm>
190 </listitem>
191 </varlistentry>
192
193 <varlistentry id="bundler">
194 <term><command>bundler</command></term>
195 <listitem>
196 <para>
197 manages an application's dependencies throughout it's lifecycle.
198 </para>
199 <indexterm zone="ruby bundler">
200 <primary sortas="b-bundler">bundler</primary>
201 </indexterm>
202 </listitem>
203 </varlistentry>
204
205 <varlistentry id="erb">
206 <term><command>erb</command></term>
207 <listitem>
208 <para>
209 is Tiny eRuby. It interprets a
210 <application>Ruby</application> code embedded text file.
211 </para>
212 <indexterm zone="ruby erb">
213 <primary sortas="b-erb">erb</primary>
214 </indexterm>
215 </listitem>
216 </varlistentry>
217
218 <varlistentry id="gem">
219 <term><command>gem</command></term>
220 <listitem>
221 <para>
222 command for RubyGems - a sophisticated package manager for
223 <application>Ruby</application>.
224 </para>
225 <indexterm zone="ruby gem">
226 <primary sortas="b-gem">gem</primary>
227 </indexterm>
228 </listitem>
229 </varlistentry>
230
231 <varlistentry id="irb">
232 <term><command>irb</command></term>
233 <listitem>
234 <para>
235 is the interactive interface for
236 <application>Ruby</application>.
237 </para>
238 <indexterm zone="ruby irb">
239 <primary sortas="b-irb">irb</primary>
240 </indexterm>
241 </listitem>
242 </varlistentry>
243
244 <varlistentry id="rake">
245 <term><command>rake</command></term>
246 <listitem>
247 <para>
248 a make-like build utility for <application>Ruby</application>.
249 </para>
250 <indexterm zone="ruby rake">
251 <primary sortas="b-rake">rake</primary>
252 </indexterm>
253 </listitem>
254 </varlistentry>
255
256 <varlistentry id="rdoc">
257 <term><command>rdoc</command></term>
258 <listitem>
259 <para>
260 generates <application>Ruby</application> documentation.
261 </para>
262 <indexterm zone="ruby rdoc">
263 <primary sortas="b-rdoc">rdoc</primary>
264 </indexterm>
265 </listitem>
266 </varlistentry>
267
268 <varlistentry id="ri">
269 <term><command>ri</command></term>
270 <listitem>
271 <para>
272 displays documentation from a database on
273 <application>Ruby</application> classes, modules, and methods.
274 </para>
275 <indexterm zone="ruby ri">
276 <primary sortas="b-ri">ri</primary>
277 </indexterm>
278 </listitem>
279 </varlistentry>
280
281 <varlistentry id="ruby-prog">
282 <term><command>ruby</command></term>
283 <listitem>
284 <para>
285 is an interpreted scripting language for quick
286 and easy object-oriented programming.
287 </para>
288 <indexterm zone="ruby ruby-prog">
289 <primary sortas="b-ruby">ruby</primary>
290 </indexterm>
291 </listitem>
292 </varlistentry>
293
294 <varlistentry id="libruby">
295 <term><filename role="libraryfile">libruby.so</filename></term>
296 <listitem>
297 <para>
298 contains the API functions required by <application>Ruby</application>.
299 </para>
300 <indexterm zone="ruby libruby">
301 <primary sortas="c-libruby">libruby.so</primary>
302 </indexterm>
303 </listitem>
304 </varlistentry>
305
306 </variablelist>
307
308 </sect2>
309
310</sect1>
Note: See TracBrowser for help on using the repository browser.