source: general/prog/ruby.xml@ 256ee72c

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 256ee72c was 256ee72c, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Adding automatized scripts generation related tags. Prog chapter.

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

  • Property mode set to 100644
File size: 6.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY ruby-download-http "http://www.ibiblio.org/pub/languages/ruby/ruby/ruby-&ruby-version;.tar.gz">
8 <!ENTITY ruby-download-ftp "ftp://ftp.ruby-lang.org/pub/ruby/ruby-&ruby-version;.tar.gz">
9 <!ENTITY ruby-md5sum "8ffc79d96f336b80f2690a17601dea9b">
10 <!ENTITY ruby-size "3.5 MB">
11 <!ENTITY ruby-buildsize "55.2 MB">
12 <!ENTITY ruby-time "0.9 SBU">
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 <keywordset>
22 <keyword role="package">ruby-&ruby-version;.tar</keyword>
23 <keyword role="ftptdir">ruby</keyword>
24 </keywordset>
25 </sect1info>
26
27 <title>Ruby-&ruby-version;</title>
28
29 <indexterm zone="ruby">
30 <primary sortas="a-Ruby">Ruby</primary>
31 </indexterm>
32
33 <sect2 role="package">
34 <title>Introduction to Ruby</title>
35
36 <para>The <application>Ruby</application> package contains the
37 <application>Ruby</application> development environment. This
38 is useful for object-oriented scripting.</para>
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>Download (HTTP): <ulink url="&ruby-download-http;"/></para>
44 </listitem>
45 <listitem>
46 <para>Download (FTP): <ulink url="&ruby-download-ftp;"/></para>
47 </listitem>
48 <listitem>
49 <para>Download MD5 sum: &ruby-md5sum;</para>
50 </listitem>
51 <listitem>
52 <para>Download size: &ruby-size;</para>
53 </listitem>
54 <listitem>
55 <para>Estimated disk space required: &ruby-buildsize;</para>
56 </listitem>
57 <listitem>
58 <para>Estimated build time: &ruby-time;</para>
59 </listitem>
60 </itemizedlist>
61
62 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
63 <itemizedlist spacing="compact">
64 <listitem>
65 <para>Required patch to fix a vulnerability which allows remote
66 attackers to execute arbitrary commands: <ulink
67 url="http://www.ruby-lang.org/patches/ruby-&ruby-version;-xmlrpc-ipimethods-fix.diff"/></para>
68 </listitem>
69 </itemizedlist>
70
71 <bridgehead renderas="sect3">Ruby Dependencies</bridgehead>
72
73 <bridgehead renderas="sect4">Optional</bridgehead>
74 <para role="optional"><xref linkend="openssl"/>,
75 <xref linkend="tk"/>,
76 <xref linkend="db"/> and
77 <xref linkend="gdbm"/></para>
78
79 </sect2>
80
81 <sect2 role="installation">
82 <title>Installation of Ruby</title>
83
84 <para>Install <application>Ruby</application> by running the following
85 commands:</para>
86
87<screen><userinput>patch -Np1 -i ../ruby-&ruby-version;-xmlrpc-ipimethods-fix.diff &amp;&amp;
88./configure --prefix=/usr --enable-shared \
89 --enable-pthread --enable-install-doc &amp;&amp;
90make</userinput></screen>
91
92 <para>To test the results, issue: <command>make test</command>.</para>
93
94 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
95
96<screen role="root"><userinput>make install</userinput></screen>
97
98 </sect2>
99
100 <sect2 role="commands">
101 <title>Command Explanations</title>
102
103 <para><parameter>--enable-shared</parameter>: This parameter builds the
104 <filename class='libraryfile'>libruby</filename> shared library.</para>
105
106 <para><parameter>--enable-pthread</parameter>: This parameter links the
107 threading library into the <application>Ruby</application> build.</para>
108
109 </sect2>
110
111 <sect2 role="content">
112 <title>Contents</title>
113
114 <segmentedlist>
115 <segtitle>Installed Programs</segtitle>
116 <segtitle>Installed Libraries</segtitle>
117 <segtitle>Installed Directories</segtitle>
118
119 <seglistitem>
120 <seg>ruby, irb, erb, rdoc, ri, and testrb</seg>
121 <seg>libruby.so and numerous modules located in the
122 <filename class='directory'>/usr/lib/ruby</filename> hierarchy.</seg>
123 <seg>/usr/lib/ruby and /usr/share/ri</seg>
124 </seglistitem>
125 </segmentedlist>
126
127 <variablelist>
128 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
129 <?dbfo list-presentation="list"?>
130 <?dbhtml list-presentation="table"?>
131
132 <varlistentry id="ruby-prog">
133 <term><command>ruby</command></term>
134 <listitem>
135 <para>is an interpreted scripting language for quick
136 and easy object-oriented programming.</para>
137 <indexterm zone="ruby ruby-prog">
138 <primary sortas="b-ruby">ruby</primary>
139 </indexterm>
140 </listitem>
141 </varlistentry>
142
143 <varlistentry id="irb">
144 <term><command>irb</command></term>
145 <listitem>
146 <para>is the interactive interface for
147 <application>Ruby</application>.</para>
148 <indexterm zone="ruby irb">
149 <primary sortas="b-irb">irb</primary>
150 </indexterm>
151 </listitem>
152 </varlistentry>
153
154 <varlistentry id="erb">
155 <term><command>erb</command></term>
156 <listitem>
157 <para>is Tiny eRuby. It interprets a
158 <application>Ruby</application> code embedded text file.</para>
159 <indexterm zone="ruby erb">
160 <primary sortas="b-erb">erb</primary>
161 </indexterm>
162 </listitem>
163 </varlistentry>
164
165 <varlistentry id="ri">
166 <term><command>ri</command></term>
167 <listitem>
168 <para>displays documentation from a database on
169 <application>Ruby</application> classes, modules and methods.</para>
170 <indexterm zone="ruby ri">
171 <primary sortas="b-ri">ri</primary>
172 </indexterm>
173 </listitem>
174 </varlistentry>
175
176 <varlistentry id="libruby">
177 <term><filename role="library">libruby.so</filename></term>
178 <listitem>
179 <para>contains the API functions required
180 by <application>Ruby</application>.</para>
181 <indexterm zone="ruby libruby">
182 <primary sortas="c-libruby">libruby.so</primary>
183 </indexterm>
184 </listitem>
185 </varlistentry>
186
187 </variablelist>
188
189 </sect2>
190
191</sect1>
Note: See TracBrowser for help on using the repository browser.