source: general/prog/ruby.xml@ ad86df81

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.7 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 ad86df81 was 38b3eab, checked in by Fernando de Oliveira <fernando@…>, 9 years ago

Update to xterm-314.
ruby-2.2.0 and doxygen-1.8.9: typos.

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

  • Property mode set to 100644
File size: 7.0 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.1/ruby-&ruby-version;-p&ruby-patch-version;.tar.bz2">
11-->
12 <!ENTITY ruby-md5sum "54b43c6c6c9dd4c4b08ceb03ad0ded7a">
13 <!ENTITY ruby-size "9.9 MB">
14 <!ENTITY ruby-buildsize "342 MB (additional 183 MB for docs)">
15 <!ENTITY ruby-time "1.9 SBU (additional 1.1 SBU for docs and 0.2 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 &lfs76_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;</userinput></screen>
105
106 <para>
107 Optionally, build the CAPI documents by running the following
108 commands:
109 </para>
110
111<screen><userinput>cp -v template/Doxyfile.tmpl Doxyfile &amp;&amp;
112doxygen</userinput></screen>
113
114 <para>
115 Compile and link <application>Ruby</application> by running the following
116 command:
117 </para>
118
119<screen><userinput>make</userinput></screen>
120
121 <para>
122 To test the results, issue: <command>make test</command>.
123 </para>
124
125 <para>
126 Now, as the <systemitem class="username">root</systemitem> user:
127 </para>
128
129<screen role="root"><userinput>make install</userinput></screen>
130
131 </sect2>
132
133 <sect2 role="commands">
134 <title>Command Explanations</title>
135
136 <para>
137 <parameter>--enable-shared</parameter>: This switch enables building of
138 the <filename class="libraryfile">libruby</filename> shared library.
139 </para>
140
141 <para>
142 <option>--disable-install-doc</option>: This switch disables building and
143 installing rdoc indexes and C API documents.
144 </para>
145
146 <para>
147 <option>--disable-install-rdoc</option>: This switch disables building
148 and installing rdoc indexes.
149 </para>
150
151 <para>
152 <option>--disable-install-capi</option>: This switch disables building
153 and installing C API documents.
154 </para>
155
156 </sect2>
157
158 <sect2 role="content">
159 <title>Contents</title>
160
161 <segmentedlist>
162 <segtitle>Installed Programs</segtitle>
163 <segtitle>Installed Libraries</segtitle>
164 <segtitle>Installed Directories</segtitle>
165
166 <seglistitem>
167 <seg>
168 erb, gem, irb, rake, rdoc, ri, and ruby
169 </seg>
170 <seg>
171 libruby.so and libruby-static.a
172 </seg>
173 <seg>
174 /usr/include/ruby-&ruby-version;
175 /usr/lib/ruby,
176 /usr/share/doc/ruby-&ruby-version; and
177 /usr/share/ri
178 </seg>
179 </seglistitem>
180 </segmentedlist>
181
182 <variablelist>
183 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
184 <?dbfo list-presentation="list"?>
185 <?dbhtml list-presentation="table"?>
186
187 <varlistentry id="ruby-prog">
188 <term><command>ruby</command></term>
189 <listitem>
190 <para>
191 is an interpreted scripting language for quick
192 and easy object-oriented programming.
193 </para>
194 <indexterm zone="ruby ruby-prog">
195 <primary sortas="b-ruby">ruby</primary>
196 </indexterm>
197 </listitem>
198 </varlistentry>
199
200 <varlistentry id="irb">
201 <term><command>irb</command></term>
202 <listitem>
203 <para>
204 is the interactive interface for
205 <application>Ruby</application>.
206 </para>
207 <indexterm zone="ruby irb">
208 <primary sortas="b-irb">irb</primary>
209 </indexterm>
210 </listitem>
211 </varlistentry>
212
213 <varlistentry id="erb">
214 <term><command>erb</command></term>
215 <listitem>
216 <para>
217 is Tiny eRuby. It interprets a
218 <application>Ruby</application> code embedded text file.
219 </para>
220 <indexterm zone="ruby erb">
221 <primary sortas="b-erb">erb</primary>
222 </indexterm>
223 </listitem>
224 </varlistentry>
225
226 <varlistentry id="ri">
227 <term><command>ri</command></term>
228 <listitem>
229 <para>
230 displays documentation from a database on
231 <application>Ruby</application> classes, modules, and methods.
232 </para>
233 <indexterm zone="ruby ri">
234 <primary sortas="b-ri">ri</primary>
235 </indexterm>
236 </listitem>
237 </varlistentry>
238
239 <varlistentry id="libruby">
240 <term><filename role="libraryfile">libruby.so</filename></term>
241 <listitem>
242 <para>
243 contains the API functions required by <application>Ruby</application>.
244 </para>
245 <indexterm zone="ruby libruby">
246 <primary sortas="c-libruby">libruby.so</primary>
247 </indexterm>
248 </listitem>
249 </varlistentry>
250
251 </variablelist>
252
253 </sect2>
254
255</sect1>
Note: See TracBrowser for help on using the repository browser.