source: general/prog/ruby.xml@ e23dd212

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since e23dd212 was 7b45a275, checked in by Bruce Dubbs <bdubbs@…>, 6 years ago

Update to libinput-1.9.4.
Update to vala-0.38.4.
Update to ruby-2.4.3.
Update to cmake-3.10.1.

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

  • Property mode set to 100644
File size: 8.1 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 "5975bf6ad576a191b0ec9000a925c386">
10 <!ENTITY ruby-size "9.6 MB">
11 <!ENTITY ruby-buildsize "339 MB, with checks (add 206 MB for C API docs)">
12 <!ENTITY ruby-time "1.7 SBU (using parallelism=4; add 3.7 SBU for tests; add 0.4 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 &lfs81_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="openssl"/>,
82 <xref linkend="tk"/>,
83 <xref linkend="valgrind"/>, and
84 <xref linkend="yaml"/>
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
114 are 16938 tests. Several (about 10) fail and one test hangs, but
115 the test process can continue with ctrl-C. If the tests are
116 run in a directory that has a world writable component (e.g /tmp)
117 then several additioanl tests fail and the tests terminate after
118 25 failures.
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 erb, gem, irb, rake, rdoc, ri, and ruby
165 </seg>
166 <seg>
167 libruby.so and libruby-static.a
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="erb">
184 <term><command>erb</command></term>
185 <listitem>
186 <para>
187 is Tiny eRuby. It interprets a
188 <application>Ruby</application> code embedded text file.
189 </para>
190 <indexterm zone="ruby erb">
191 <primary sortas="b-erb">erb</primary>
192 </indexterm>
193 </listitem>
194 </varlistentry>
195
196 <varlistentry id="gem">
197 <term><command>gem</command></term>
198 <listitem>
199 <para>
200 command for RubyGems - a sophisticated package manager for
201 <application>Ruby</application>.
202 </para>
203 <indexterm zone="ruby gem">
204 <primary sortas="b-gem">gem</primary>
205 </indexterm>
206 </listitem>
207 </varlistentry>
208
209 <varlistentry id="irb">
210 <term><command>irb</command></term>
211 <listitem>
212 <para>
213 is the interactive interface for
214 <application>Ruby</application>.
215 </para>
216 <indexterm zone="ruby irb">
217 <primary sortas="b-irb">irb</primary>
218 </indexterm>
219 </listitem>
220 </varlistentry>
221
222 <varlistentry id="rake">
223 <term><command>rake</command></term>
224 <listitem>
225 <para>
226 a make-like build utility for <application>Ruby</application>.
227 </para>
228 <indexterm zone="ruby rake">
229 <primary sortas="b-rake">rake</primary>
230 </indexterm>
231 </listitem>
232 </varlistentry>
233
234 <varlistentry id="rdoc">
235 <term><command>rdoc</command></term>
236 <listitem>
237 <para>
238 generates <application>Ruby</application> documentation.
239 </para>
240 <indexterm zone="ruby rdoc">
241 <primary sortas="b-rdoc">rdoc</primary>
242 </indexterm>
243 </listitem>
244 </varlistentry>
245
246 <varlistentry id="ri">
247 <term><command>ri</command></term>
248 <listitem>
249 <para>
250 displays documentation from a database on
251 <application>Ruby</application> classes, modules, and methods.
252 </para>
253 <indexterm zone="ruby ri">
254 <primary sortas="b-ri">ri</primary>
255 </indexterm>
256 </listitem>
257 </varlistentry>
258
259 <varlistentry id="ruby-prog">
260 <term><command>ruby</command></term>
261 <listitem>
262 <para>
263 is an interpreted scripting language for quick
264 and easy object-oriented programming.
265 </para>
266 <indexterm zone="ruby ruby-prog">
267 <primary sortas="b-ruby">ruby</primary>
268 </indexterm>
269 </listitem>
270 </varlistentry>
271
272 <varlistentry id="libruby">
273 <term><filename role="libraryfile">libruby.so</filename></term>
274 <listitem>
275 <para>
276 contains the API functions required by <application>Ruby</application>.
277 </para>
278 <indexterm zone="ruby libruby">
279 <primary sortas="c-libruby">libruby.so</primary>
280 </indexterm>
281 </listitem>
282 </varlistentry>
283
284 </variablelist>
285
286 </sect2>
287
288</sect1>
Note: See TracBrowser for help on using the repository browser.