source: general/prog/ruby.xml@ a9ae025

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 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 a9ae025 was 33c9d33, checked in by Bruce Dubbs <bdubbs@…>, 9 years ago

Tags

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

  • Property mode set to 100644
File size: 6.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/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 "2a8bc1f46aba8938add70f742e8af1ff">
13 <!ENTITY ruby-size "10 MB">
14 <!ENTITY ruby-buildsize "585 MB, with checks (additional 466 MB for C API docs)">
15 <!ENTITY ruby-time "2.4 SBU (additional 3 SBU for checks and 0.4 SBU for C API docs)">
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 &lfs78_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"/>,
86 <xref linkend="valgrind"/>, and
87 <ulink url="http://pyyaml.org/wiki/LibYAML">libyaml</ulink>
88 </para>
89
90 <para condition="html" role="usernotes">User Notes:
91 <ulink url="&blfs-wiki;/ruby"/>
92 </para>
93 </sect2>
94
95 <sect2 role="installation">
96 <title>Installation of Ruby</title>
97
98 <para>
99 Install <application>Ruby</application> by running the following
100 command:
101 </para>
102
103<screen><userinput>./configure --prefix=/usr \
104 --enable-shared \
105 --docdir=/usr/share/doc/ruby-&ruby-version; &amp;&amp;
106make</userinput></screen>
107
108 <para>
109 Optionally, build the CAPI documents by running the following
110 commands:
111 </para>
112
113<screen><userinput>make capi</userinput></screen>
114
115 <para>
116 To test the results, issue: <command>make -k check</command>. One out of
117 16059 tests fails.
118 </para>
119
120 <para>
121 Now, as the <systemitem class="username">root</systemitem> user:
122 </para>
123
124<screen role="root"><userinput>make install</userinput></screen>
125
126 </sect2>
127
128 <sect2 role="commands">
129 <title>Command Explanations</title>
130
131 <para>
132 <parameter>--enable-shared</parameter>: This switch enables building of
133 the <filename class="libraryfile">libruby</filename> shared library.
134 </para>
135
136 <para>
137 <option>--disable-install-doc</option>: This switch disables building and
138 installing rdoc indexes and C API documents.
139 </para>
140
141 <para>
142 <option>--disable-install-rdoc</option>: This switch disables building
143 and installing rdoc indexes.
144 </para>
145
146 <para>
147 <option>--disable-install-capi</option>: This switch disables building
148 and installing C API documents.
149 </para>
150
151 </sect2>
152
153 <sect2 role="content">
154 <title>Contents</title>
155
156 <segmentedlist>
157 <segtitle>Installed Programs</segtitle>
158 <segtitle>Installed Libraries</segtitle>
159 <segtitle>Installed Directories</segtitle>
160
161 <seglistitem>
162 <seg>
163 erb, gem, irb, rake, rdoc, ri, and ruby
164 </seg>
165 <seg>
166 libruby.so and libruby-static.a
167 </seg>
168 <seg>
169 /usr/include/ruby-2.2.0
170 /usr/lib/ruby,
171 /usr/share/doc/ruby-&ruby-version; and
172 /usr/share/ri
173 </seg>
174 </seglistitem>
175 </segmentedlist>
176
177 <variablelist>
178 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
179 <?dbfo list-presentation="list"?>
180 <?dbhtml list-presentation="table"?>
181
182 <varlistentry id="ruby-prog">
183 <term><command>ruby</command></term>
184 <listitem>
185 <para>
186 is an interpreted scripting language for quick
187 and easy object-oriented programming.
188 </para>
189 <indexterm zone="ruby ruby-prog">
190 <primary sortas="b-ruby">ruby</primary>
191 </indexterm>
192 </listitem>
193 </varlistentry>
194
195 <varlistentry id="irb">
196 <term><command>irb</command></term>
197 <listitem>
198 <para>
199 is the interactive interface for
200 <application>Ruby</application>.
201 </para>
202 <indexterm zone="ruby irb">
203 <primary sortas="b-irb">irb</primary>
204 </indexterm>
205 </listitem>
206 </varlistentry>
207
208 <varlistentry id="erb">
209 <term><command>erb</command></term>
210 <listitem>
211 <para>
212 is Tiny eRuby. It interprets a
213 <application>Ruby</application> code embedded text file.
214 </para>
215 <indexterm zone="ruby erb">
216 <primary sortas="b-erb">erb</primary>
217 </indexterm>
218 </listitem>
219 </varlistentry>
220
221 <varlistentry id="ri">
222 <term><command>ri</command></term>
223 <listitem>
224 <para>
225 displays documentation from a database on
226 <application>Ruby</application> classes, modules, and methods.
227 </para>
228 <indexterm zone="ruby ri">
229 <primary sortas="b-ri">ri</primary>
230 </indexterm>
231 </listitem>
232 </varlistentry>
233
234 <varlistentry id="libruby">
235 <term><filename role="libraryfile">libruby.so</filename></term>
236 <listitem>
237 <para>
238 contains the API functions required by <application>Ruby</application>.
239 </para>
240 <indexterm zone="ruby libruby">
241 <primary sortas="c-libruby">libruby.so</primary>
242 </indexterm>
243 </listitem>
244 </varlistentry>
245
246 </variablelist>
247
248 </sect2>
249
250</sect1>
Note: See TracBrowser for help on using the repository browser.