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