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