source: general/prog/ruby.xml@ 0776cd7

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 0776cd7 was 909a015, checked in by Fernando de Oliveira <fernando@…>, 9 years ago
  • Update to at-3.1.18.
  • Update to ruby-2.3.0.

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

  • Property mode set to 100644
File size: 8.0 KB
RevLine 
[52d29f7]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[52d29f7]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
[cc13920]6
[909a015]7 <!ENTITY ruby-download-http "http://cache.ruby-lang.org/pub/ruby/&ruby-minor-version;/ruby-&ruby-version;.tar.xz">
[2f3226d]8 <!ENTITY ruby-download-ftp " ">
9<!--
[909a015]10 <!ENTITY ruby-download-ftp "ftp://ftp.ruby-lang.org/pub/ruby/&ruby-minor-version;/ruby-&ruby-version;.tar.xz">
[2f3226d]11-->
[909a015]12 <!ENTITY ruby-md5sum "92ef54e033fb95ec9bdf7023666e5f1f">
13 <!ENTITY ruby-size "11 MB">
14 <!ENTITY ruby-buildsize "614 MB, with checks (additional 478 MB for C API docs)">
15 <!ENTITY ruby-time "5.5 SBU, with checks (additional 0.5 SBU for C API docs)">
[52d29f7]16]>
17
[5db3785e]18<sect1 id="ruby" xreflabel="Ruby-&ruby-version;">
[16f3afb3]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
[cc13920]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>
[16f3afb3]40
[33c9d33]41 &lfs78_checked;
[a1813d08]42
[16f3afb3]43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
[cc13920]46 <para>
47 Download (HTTP): <ulink url="&ruby-download-http;"/>
48 </para>
[16f3afb3]49 </listitem>
50 <listitem>
[cc13920]51 <para>
52 Download (FTP): <ulink url="&ruby-download-ftp;"/>
53 </para>
[16f3afb3]54 </listitem>
55 <listitem>
[cc13920]56 <para>
57 Download MD5 sum: &ruby-md5sum;
58 </para>
[16f3afb3]59 </listitem>
60 <listitem>
[cc13920]61 <para>
62 Download size: &ruby-size;
63 </para>
[16f3afb3]64 </listitem>
65 <listitem>
[cc13920]66 <para>
67 Estimated disk space required: &ruby-buildsize;
68 </para>
[16f3afb3]69 </listitem>
70 <listitem>
[cc13920]71 <para>
72 Estimated build time: &ruby-time;
73 </para>
[16f3afb3]74 </listitem>
75 </itemizedlist>
76
77 <bridgehead renderas="sect3">Ruby Dependencies</bridgehead>
78
79 <bridgehead renderas="sect4">Optional</bridgehead>
[955b7fd2]80 <para role="optional">
[82fac2c]81 <xref linkend="db"/>,
[955b7fd2]82 <xref linkend="doxygen"/>,
[cc13920]83 <xref linkend="graphviz"/>,
[248a536]84 <xref linkend="openssl"/>,
[6a71920c]85 <xref linkend="tk"/>,
86 <xref linkend="valgrind"/>, and
[248a536]87 <ulink url="http://pyyaml.org/wiki/LibYAML">libyaml</ulink>
[955b7fd2]88 </para>
[16f3afb3]89
[1039de3]90 <para condition="html" role="usernotes">User Notes:
[cc13920]91 <ulink url="&blfs-wiki;/ruby"/>
92 </para>
[16f3afb3]93 </sect2>
94
95 <sect2 role="installation">
96 <title>Installation of Ruby</title>
97
[cc13920]98 <para>
99 Install <application>Ruby</application> by running the following
[75457cc]100 command:
[cc13920]101 </para>
[16f3afb3]102
[9d4de3fb]103<screen><userinput>./configure --prefix=/usr \
[b9d56ad4]104 --enable-shared \
[e02c1e3]105 --docdir=/usr/share/doc/ruby-&ruby-version; &amp;&amp;
106make</userinput></screen>
[75457cc]107
108 <para>
109 Optionally, build the CAPI documents by running the following
110 commands:
111 </para>
112
[e02c1e3]113<screen><userinput>make capi</userinput></screen>
[16f3afb3]114
[cc13920]115 <para>
[514797f]116 To test the results, issue: <command>make check</command>.
[cc13920]117 </para>
[40d6bab]118
[cc13920]119 <para>
120 Now, as the <systemitem class="username">root</systemitem> user:
121 </para>
[16f3afb3]122
123<screen role="root"><userinput>make install</userinput></screen>
124
125 </sect2>
126
127 <sect2 role="commands">
128 <title>Command Explanations</title>
129
[b9d56ad4]130 <para>
131 <parameter>--enable-shared</parameter>: This switch enables building of
[cc13920]132 the <filename class="libraryfile">libruby</filename> shared library.
133 </para>
[16f3afb3]134
[5d388f2]135 <para>
136 <option>--disable-install-doc</option>: This switch disables building and
137 installing rdoc indexes and C API documents.
138 </para>
139
140 <para>
141 <option>--disable-install-rdoc</option>: This switch disables building
142 and installing rdoc indexes.
143 </para>
144
145 <para>
146 <option>--disable-install-capi</option>: This switch disables building
147 and installing C API documents.
148 </para>
149
[16f3afb3]150 </sect2>
151
152 <sect2 role="content">
153 <title>Contents</title>
154
155 <segmentedlist>
156 <segtitle>Installed Programs</segtitle>
157 <segtitle>Installed Libraries</segtitle>
158 <segtitle>Installed Directories</segtitle>
159
160 <seglistitem>
[cc13920]161 <seg>
[8461a06]162 erb, gem, irb, rake, rdoc, ri, and ruby
[cc13920]163 </seg>
164 <seg>
[8461a06]165 libruby.so and libruby-static.a
[cc13920]166 </seg>
167 <seg>
[909a015]168 /usr/include/ruby-&ruby-minor-version;.0
[cc13920]169 /usr/lib/ruby,
[7cc1bcd]170 /usr/share/doc/ruby-&ruby-version; and
[cc13920]171 /usr/share/ri
172 </seg>
[16f3afb3]173 </seglistitem>
174 </segmentedlist>
175
176 <variablelist>
177 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
178 <?dbfo list-presentation="list"?>
179 <?dbhtml list-presentation="table"?>
180
[909a015]181 <varlistentry id="erb">
182 <term><command>erb</command></term>
[16f3afb3]183 <listitem>
[cc13920]184 <para>
[909a015]185 is Tiny eRuby. It interprets a
186 <application>Ruby</application> code embedded text file.
[cc13920]187 </para>
[909a015]188 <indexterm zone="ruby erb">
189 <primary sortas="b-erb">erb</primary>
190 </indexterm>
191 </listitem>
192 </varlistentry>
193
194 <varlistentry id="gem">
195 <term><command>gem</command></term>
196 <listitem>
197 <para>
198 command for RubyGems - a sophisticated package manager for
199 <application>Ruby</application>.
200 </para>
201 <indexterm zone="ruby gem">
202 <primary sortas="b-gem">gem</primary>
[16f3afb3]203 </indexterm>
204 </listitem>
205 </varlistentry>
206
207 <varlistentry id="irb">
208 <term><command>irb</command></term>
209 <listitem>
[cc13920]210 <para>
211 is the interactive interface for
212 <application>Ruby</application>.
213 </para>
[16f3afb3]214 <indexterm zone="ruby irb">
215 <primary sortas="b-irb">irb</primary>
216 </indexterm>
217 </listitem>
218 </varlistentry>
219
[909a015]220 <varlistentry id="rake">
221 <term><command>rake</command></term>
[16f3afb3]222 <listitem>
[cc13920]223 <para>
[909a015]224 a make-like build utility for <application>Ruby</application>.
[cc13920]225 </para>
[909a015]226 <indexterm zone="ruby rake">
227 <primary sortas="b-rake">rake</primary>
228 </indexterm>
229 </listitem>
230 </varlistentry>
231
232 <varlistentry id="rdoc">
233 <term><command>rdoc</command></term>
234 <listitem>
235 <para>
236 generates <application>Ruby</application> documentation.
237 </para>
238 <indexterm zone="ruby rdoc">
239 <primary sortas="b-rdoc">rdoc</primary>
[16f3afb3]240 </indexterm>
241 </listitem>
242 </varlistentry>
243
244 <varlistentry id="ri">
245 <term><command>ri</command></term>
246 <listitem>
[cc13920]247 <para>
248 displays documentation from a database on
[00217270]249 <application>Ruby</application> classes, modules, and methods.
[cc13920]250 </para>
[16f3afb3]251 <indexterm zone="ruby ri">
252 <primary sortas="b-ri">ri</primary>
253 </indexterm>
254 </listitem>
255 </varlistentry>
256
[909a015]257 <varlistentry id="ruby-prog">
258 <term><command>ruby</command></term>
259 <listitem>
260 <para>
261 is an interpreted scripting language for quick
262 and easy object-oriented programming.
263 </para>
264 <indexterm zone="ruby ruby-prog">
265 <primary sortas="b-ruby">ruby</primary>
266 </indexterm>
267 </listitem>
268 </varlistentry>
269
[16f3afb3]270 <varlistentry id="libruby">
[92b0b42]271 <term><filename role="libraryfile">libruby.so</filename></term>
[16f3afb3]272 <listitem>
[cc13920]273 <para>
274 contains the API functions required by <application>Ruby</application>.
275 </para>
[16f3afb3]276 <indexterm zone="ruby libruby">
277 <primary sortas="c-libruby">libruby.so</primary>
278 </indexterm>
279 </listitem>
280 </varlistentry>
281
282 </variablelist>
283
284 </sect2>
[a1f7daa]285
286</sect1>
Note: See TracBrowser for help on using the repository browser.