source: general/prog/ruby.xml@ a1813d08

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 a1813d08 was a1813d08, checked in by Ken Moffat <ken@…>, 13 years ago

Bring forward the openssl-1.0.0 upgrade because of the security fix in 1.0.0b (also in 0.9.8p). This will break the versions of mutt, heimdal, postgresql (probably) and ruby currently in the book if used (it's optional for all of them) - added temporary explanatory para to each of those packages. For openssl itself, bc is no longer required by the testsuite, without it there is a brief whinge hidden in the output, but it still reports that all tests succeedded.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@8697 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.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 <!-- FIXME -->
39 <para>If you intend to link this application to <xref linkend="openssl"/>
40 you will need to use ruby-1.9.2-p0 or newer.</para>
41
42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>Download (HTTP): <ulink url="&ruby-download-http;"/></para>
46 </listitem>
47 <listitem>
48 <para>Download (FTP): <ulink url="&ruby-download-ftp;"/></para>
49 </listitem>
50 <listitem>
51 <para>Download MD5 sum: &ruby-md5sum;</para>
52 </listitem>
53 <listitem>
54 <para>Download size: &ruby-size;</para>
55 </listitem>
56 <listitem>
57 <para>Estimated disk space required: &ruby-buildsize;</para>
58 </listitem>
59 <listitem>
60 <para>Estimated build time: &ruby-time;</para>
61 </listitem>
62 </itemizedlist>
63
64 <bridgehead renderas="sect3">Ruby Dependencies</bridgehead>
65
66 <bridgehead renderas="sect4">Optional</bridgehead>
67 <para role="optional"><xref linkend="openssl"/>,
68 <xref linkend="tk"/>, and
69 <xref linkend="db"/></para>
70 <!-- <xref linkend="gdbm"/></para> -->
71
72 <para condition="html" role="usernotes">User Notes:
73 <ulink url="&blfs-wiki;/ruby"/></para>
74
75 </sect2>
76
77 <sect2 role="installation">
78 <title>Installation of Ruby</title>
79
80 <para>Install <application>Ruby</application> by running the following
81 commands:</para>
82
83<screen><userinput>./configure --prefix=/usr \
84 --enable-shared \
85 --enable-pthread \
86 --enable-install-doc &amp;&amp;
87make</userinput></screen>
88
89 <para>To test the results, issue: <command>make test</command>. As many
90 as seven of the 6000+ tests may show failure.</para>
91
92 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
93
94<screen role="root"><userinput>make install</userinput></screen>
95
96 </sect2>
97
98 <sect2 role="commands">
99 <title>Command Explanations</title>
100
101 <para><parameter>--enable-shared</parameter>: This parameter builds the
102 <filename class='libraryfile'>libruby</filename> shared library.</para>
103
104 <para><parameter>--enable-pthread</parameter>: This parameter links the
105 threading library into the <application>Ruby</application> build.</para>
106
107 </sect2>
108
109 <sect2 role="content">
110 <title>Contents</title>
111
112 <segmentedlist>
113 <segtitle>Installed Programs</segtitle>
114 <segtitle>Installed Libraries</segtitle>
115 <segtitle>Installed Directories</segtitle>
116
117 <seglistitem>
118 <seg>erb, gem, irb, rake, rdoc, ri, ruby, and testrb</seg>
119 <seg>libruby.so, libruby-static.a and numerous modules located in the
120 <filename class='directory'>/usr/lib/ruby</filename> hierarchy.</seg>
121 <seg>/usr/include/ruby-1.9.1, /usr/lib/ruby and /usr/share/ri</seg>
122 </seglistitem>
123 </segmentedlist>
124
125 <variablelist>
126 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
127 <?dbfo list-presentation="list"?>
128 <?dbhtml list-presentation="table"?>
129
130 <varlistentry id="ruby-prog">
131 <term><command>ruby</command></term>
132 <listitem>
133 <para>is an interpreted scripting language for quick
134 and easy object-oriented programming.</para>
135 <indexterm zone="ruby ruby-prog">
136 <primary sortas="b-ruby">ruby</primary>
137 </indexterm>
138 </listitem>
139 </varlistentry>
140
141 <varlistentry id="irb">
142 <term><command>irb</command></term>
143 <listitem>
144 <para>is the interactive interface for
145 <application>Ruby</application>.</para>
146 <indexterm zone="ruby irb">
147 <primary sortas="b-irb">irb</primary>
148 </indexterm>
149 </listitem>
150 </varlistentry>
151
152 <varlistentry id="erb">
153 <term><command>erb</command></term>
154 <listitem>
155 <para>is Tiny eRuby. It interprets a
156 <application>Ruby</application> code embedded text file.</para>
157 <indexterm zone="ruby erb">
158 <primary sortas="b-erb">erb</primary>
159 </indexterm>
160 </listitem>
161 </varlistentry>
162
163 <varlistentry id="ri">
164 <term><command>ri</command></term>
165 <listitem>
166 <para>displays documentation from a database on
167 <application>Ruby</application> classes, modules and methods.</para>
168 <indexterm zone="ruby ri">
169 <primary sortas="b-ri">ri</primary>
170 </indexterm>
171 </listitem>
172 </varlistentry>
173
174 <varlistentry id="libruby">
175 <term><filename role="library">libruby.so</filename></term>
176 <listitem>
177 <para>contains the API functions required
178 by <application>Ruby</application>.</para>
179 <indexterm zone="ruby libruby">
180 <primary sortas="c-libruby">libruby.so</primary>
181 </indexterm>
182 </listitem>
183 </varlistentry>
184
185 </variablelist>
186
187 </sect2>
188
189</sect1>
Note: See TracBrowser for help on using the repository browser.