source: general/prog/ruby.xml@ 57945e0

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.8 7.9 8.0 8.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 nosym 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 57945e0 was fbeccbfc, checked in by Fernando de Oliveira <fernando@…>, 9 years ago

Update to ruby-2.2.2.

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

  • Property mode set to 100644
File size: 6.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/2.2/ruby-&ruby-version;.tar.xz">
8 <!ENTITY ruby-download-ftp " ">
9<!--
10 <!ENTITY ruby-download-ftp "ftp://ftp.ruby-lang.org/pub/ruby/2.2/ruby-&ruby-version;.tar.xz">
11-->
12 <!ENTITY ruby-md5sum "dbce9b9d79d90f213ba8d448b0b6ed86">
13 <!ENTITY ruby-size "10 MB">
14 <!ENTITY ruby-buildsize "585 MB (additional 467 MB for C API docs)">
15 <!ENTITY ruby-time "2.3 SBU (additional 0.4 SBU for C API docs and 0.1 SBU for tests)">
16]>
17
18<sect1 id="ruby" xreflabel="Ruby-&ruby-version;">
19 <?dbhtml filename="ruby.html"?>
20
21 <sect1info>
22 <othername>$LastChangedBy$</othername>
23 <date>$Date$</date>
24 </sect1info>
25
26 <title>Ruby-&ruby-version;</title>
27
28 <indexterm zone="ruby">
29 <primary sortas="a-Ruby">Ruby</primary>
30 </indexterm>
31
32 <sect2 role="package">
33 <title>Introduction to Ruby</title>
34
35 <para>
36 The <application>Ruby</application> package contains the
37 <application>Ruby</application> development environment. This
38 is useful for object-oriented scripting.
39 </para>
40
41 &lfs77_checked;
42
43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
46 <para>
47 Download (HTTP): <ulink url="&ruby-download-http;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download (FTP): <ulink url="&ruby-download-ftp;"/>
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download MD5 sum: &ruby-md5sum;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Download size: &ruby-size;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated disk space required: &ruby-buildsize;
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Estimated build time: &ruby-time;
73 </para>
74 </listitem>
75 </itemizedlist>
76
77 <bridgehead renderas="sect3">Ruby Dependencies</bridgehead>
78
79 <bridgehead renderas="sect4">Optional</bridgehead>
80 <para role="optional">
81 <xref linkend="db"/>,
82 <xref linkend="doxygen"/>,
83 <xref linkend="graphviz"/>,
84 <xref linkend="openssl"/>,
85 <xref linkend="tk"/>, and
86 <ulink url="http://pyyaml.org/wiki/LibYAML">libyaml</ulink>
87 </para>
88
89 <para condition="html" role="usernotes">User Notes:
90 <ulink url="&blfs-wiki;/ruby"/>
91 </para>
92 </sect2>
93
94 <sect2 role="installation">
95 <title>Installation of Ruby</title>
96
97 <para>
98 Install <application>Ruby</application> by running the following
99 command:
100 </para>
101
102<screen><userinput>./configure --prefix=/usr \
103 --enable-shared \
104 --docdir=/usr/share/doc/ruby-&ruby-version; &amp;&amp;
105make</userinput></screen>
106
107 <para>
108 Optionally, build the CAPI documents by running the following
109 commands:
110 </para>
111
112<screen><userinput>make capi</userinput></screen>
113
114 <para>
115 To test the results, issue: <command>make test</command>.
116 </para>
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 </sect2>
125
126 <sect2 role="commands">
127 <title>Command Explanations</title>
128
129 <para>
130 <parameter>--enable-shared</parameter>: This switch enables building of
131 the <filename class="libraryfile">libruby</filename> shared library.
132 </para>
133
134 <para>
135 <option>--disable-install-doc</option>: This switch disables building and
136 installing rdoc indexes and C API documents.
137 </para>
138
139 <para>
140 <option>--disable-install-rdoc</option>: This switch disables building
141 and installing rdoc indexes.
142 </para>
143
144 <para>
145 <option>--disable-install-capi</option>: This switch disables building
146 and installing C API documents.
147 </para>
148
149 </sect2>
150
151 <sect2 role="content">
152 <title>Contents</title>
153
154 <segmentedlist>
155 <segtitle>Installed Programs</segtitle>
156 <segtitle>Installed Libraries</segtitle>
157 <segtitle>Installed Directories</segtitle>
158
159 <seglistitem>
160 <seg>
161 erb, gem, irb, rake, rdoc, ri, and ruby
162 </seg>
163 <seg>
164 libruby.so and libruby-static.a
165 </seg>
166 <seg>
167 /usr/include/ruby-2.2.0
168 /usr/lib/ruby,
169 /usr/share/doc/ruby-&ruby-version; and
170 /usr/share/ri
171 </seg>
172 </seglistitem>
173 </segmentedlist>
174
175 <variablelist>
176 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
177 <?dbfo list-presentation="list"?>
178 <?dbhtml list-presentation="table"?>
179
180 <varlistentry id="ruby-prog">
181 <term><command>ruby</command></term>
182 <listitem>
183 <para>
184 is an interpreted scripting language for quick
185 and easy object-oriented programming.
186 </para>
187 <indexterm zone="ruby ruby-prog">
188 <primary sortas="b-ruby">ruby</primary>
189 </indexterm>
190 </listitem>
191 </varlistentry>
192
193 <varlistentry id="irb">
194 <term><command>irb</command></term>
195 <listitem>
196 <para>
197 is the interactive interface for
198 <application>Ruby</application>.
199 </para>
200 <indexterm zone="ruby irb">
201 <primary sortas="b-irb">irb</primary>
202 </indexterm>
203 </listitem>
204 </varlistentry>
205
206 <varlistentry id="erb">
207 <term><command>erb</command></term>
208 <listitem>
209 <para>
210 is Tiny eRuby. It interprets a
211 <application>Ruby</application> code embedded text file.
212 </para>
213 <indexterm zone="ruby erb">
214 <primary sortas="b-erb">erb</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218
219 <varlistentry id="ri">
220 <term><command>ri</command></term>
221 <listitem>
222 <para>
223 displays documentation from a database on
224 <application>Ruby</application> classes, modules, and methods.
225 </para>
226 <indexterm zone="ruby ri">
227 <primary sortas="b-ri">ri</primary>
228 </indexterm>
229 </listitem>
230 </varlistentry>
231
232 <varlistentry id="libruby">
233 <term><filename role="libraryfile">libruby.so</filename></term>
234 <listitem>
235 <para>
236 contains the API functions required by <application>Ruby</application>.
237 </para>
238 <indexterm zone="ruby libruby">
239 <primary sortas="c-libruby">libruby.so</primary>
240 </indexterm>
241 </listitem>
242 </varlistentry>
243
244 </variablelist>
245
246 </sect2>
247
248</sect1>
Note: See TracBrowser for help on using the repository browser.