source: general/prog/ruby.xml@ 8461a06

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 8461a06 was 8461a06, checked in by Fernando de Oliveira <fernando@…>, 9 years ago

haveged-1.9.1: change URL.
wget-1.16.1: include IO::Socket::SSL optional for the test suite.
Update to -ruby-2.2.0.

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

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