source: general/prog/ruby.xml@ eed39e3

11.3 12.0 12.1 gimp3 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since eed39e3 was 9a8633f6, checked in by Pierre Labastie <pierre.labastie@…>, 18 months ago

Document --without-baseruby for ruby

If using this option, the build system uses a newly built version
of ruby instead of the installed version of ruby, if it is
already installed. This is worth documenting.

  • Property mode set to 100644
File size: 10.5 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
[c6b192c]7 <!ENTITY ruby-download-http "https://cache.ruby-lang.org/pub/ruby/&ruby-minor-version;/ruby-&ruby-version;.tar.xz">
[2f3226d]8 <!ENTITY ruby-download-ftp " ">
[de944b9]9 <!ENTITY ruby-md5sum "169bbbd82b7ced3d39a4be36f50db459">
10 <!ENTITY ruby-size "14 MB">
11 <!ENTITY ruby-buildsize "574 MB (add 547 MB for C API docs)">
12 <!ENTITY ruby-time "1.3 SBU (using parallelism=4; add 5.0 SBU for tests; add 0.5 SBU for C API docs)">
[52d29f7]13]>
14
[5db3785e]15<sect1 id="ruby" xreflabel="Ruby-&ruby-version;">
[16f3afb3]16 <?dbhtml filename="ruby.html"?>
17
18
19 <title>Ruby-&ruby-version;</title>
20
21 <indexterm zone="ruby">
22 <primary sortas="a-Ruby">Ruby</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to Ruby</title>
27
[cc13920]28 <para>
29 The <application>Ruby</application> package contains the
30 <application>Ruby</application> development environment. This
31 is useful for object-oriented scripting.
32 </para>
[16f3afb3]33
[8b225938]34 &lfs112_checked;
[a1813d08]35
[16f3afb3]36 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
[cc13920]39 <para>
40 Download (HTTP): <ulink url="&ruby-download-http;"/>
41 </para>
[16f3afb3]42 </listitem>
43 <listitem>
[cc13920]44 <para>
45 Download (FTP): <ulink url="&ruby-download-ftp;"/>
46 </para>
[16f3afb3]47 </listitem>
48 <listitem>
[cc13920]49 <para>
50 Download MD5 sum: &ruby-md5sum;
51 </para>
[16f3afb3]52 </listitem>
53 <listitem>
[cc13920]54 <para>
55 Download size: &ruby-size;
56 </para>
[16f3afb3]57 </listitem>
58 <listitem>
[cc13920]59 <para>
60 Estimated disk space required: &ruby-buildsize;
61 </para>
[16f3afb3]62 </listitem>
63 <listitem>
[cc13920]64 <para>
65 Estimated build time: &ruby-time;
66 </para>
[16f3afb3]67 </listitem>
68 </itemizedlist>
69
70 <bridgehead renderas="sect3">Ruby Dependencies</bridgehead>
71
72 <bridgehead renderas="sect4">Optional</bridgehead>
[955b7fd2]73 <para role="optional">
[82fac2c]74 <xref linkend="db"/>,
[955b7fd2]75 <xref linkend="doxygen"/>,
[cc13920]76 <xref linkend="graphviz"/>,
[b738ceb]77 <xref linkend="libyaml"/>,
[d28648d]78 <xref linkend="tk"/>,
79 <xref linkend="valgrind"/>, and
80 <ulink url="http://dtrace.org/blogs/about/">DTrace</ulink>
[955b7fd2]81 </para>
[16f3afb3]82
[1039de3]83 <para condition="html" role="usernotes">User Notes:
[cc13920]84 <ulink url="&blfs-wiki;/ruby"/>
85 </para>
[16f3afb3]86 </sect2>
87
88 <sect2 role="installation">
89 <title>Installation of Ruby</title>
90
[cc13920]91 <para>
92 Install <application>Ruby</application> by running the following
[75457cc]93 command:
[cc13920]94 </para>
[16f3afb3]95
[9d4de3fb]96<screen><userinput>./configure --prefix=/usr \
[b9d56ad4]97 --enable-shared \
[e02c1e3]98 --docdir=/usr/share/doc/ruby-&ruby-version; &amp;&amp;
99make</userinput></screen>
[75457cc]100
101 <para>
102 Optionally, build the CAPI documents by running the following
103 commands:
104 </para>
105
[e02c1e3]106<screen><userinput>make capi</userinput></screen>
[16f3afb3]107
[cc13920]108 <para>
[e6b445c]109 To test the results, issue: <command>make check</command>. There are over
[de944b9]110 25,000 tests. Some tests related to ipv6 may indicate errors. If the
[372597e]111 tests are run in a directory that has a world writable component (e.g.
[c6d1a80c]112 /tmp) then several additional tests may fail. A few tests may fail due
[e4c4af6]113 to system configuration expectations.
[cc13920]114 </para>
[8558044]115<!-- With 3.0.2:
[de944b9]116Finished tests in 443.541527s, 47.5739 tests/s, 6031.9921 assertions/s.
11721101 tests, 2675439 assertions, 4 failures, 1 errors, 45 skips
118
119with 3.2.0 there are several summaries:
120* PASS all 1789 tests
121* Finished tests in 6.815561s, 45.6309 tests/s, 264.2482 assertions/s.
122 311 tests, 1801 assertions, 0 failures, 0 errors, 12 skips
123* Finished tests in 462.613063s, 50.5649 tests/s, 12069.0885 assertions/s.
124 23392 tests, 5583318 assertions, 3 failures, 0 errors, 79 skips
125-->
[40d6bab]126
[cc13920]127 <para>
128 Now, as the <systemitem class="username">root</systemitem> user:
129 </para>
[16f3afb3]130
131<screen role="root"><userinput>make install</userinput></screen>
132
[edfcf34d]133 <note>
134 <para>
135 If you have Ruby-On-Rails applications installed and did an
136 upgrade of <application>Ruby</application> by installing this
[eb19100e]137 package, you might need to run an update there, too
138 (as the &root; user):
[edfcf34d]139 </para>
140
[eb19100e]141<screen role="nodump"><userinput>cd /path/to/web/app
[809c6b5]142bundle update rake</userinput></screen>
143
144 <para>
145 and restart the webserver which serves the application.
146 </para>
147
[edfcf34d]148 </note>
149
[16f3afb3]150 </sect2>
151
152 <sect2 role="commands">
153 <title>Command Explanations</title>
154
[b9d56ad4]155 <para>
[0771e2f]156 <parameter>--enable-shared</parameter>: This switch enables building
[cc13920]157 the <filename class="libraryfile">libruby</filename> shared library.
158 </para>
[16f3afb3]159
[5d388f2]160 <para>
161 <option>--disable-install-doc</option>: This switch disables building and
162 installing rdoc indexes and C API documents.
163 </para>
164
165 <para>
166 <option>--disable-install-rdoc</option>: This switch disables building
167 and installing rdoc indexes.
168 </para>
169
170 <para>
171 <option>--disable-install-capi</option>: This switch disables building
172 and installing C API documents.
173 </para>
174
[9a8633f6]175 <para>
176 <option>--without-baseruby</option>: This switch prevents using the
177 system <command>ruby</command> if it is already installed. The build
178 system will use the newly built version instead.
179 </para>
180
[16f3afb3]181 </sect2>
182
183 <sect2 role="content">
184 <title>Contents</title>
185
186 <segmentedlist>
187 <segtitle>Installed Programs</segtitle>
188 <segtitle>Installed Libraries</segtitle>
189 <segtitle>Installed Directories</segtitle>
190
191 <seglistitem>
[cc13920]192 <seg>
[8558044]193 bundle,
194 bundler,
195 erb,
196 gem,
197 irb,
198 racc,
199 rake,
200 rbs,
[6b8f495]201 rdbg,
[8558044]202 rdoc,
203 ri,
[e4c4af6]204 ruby, and
205 typeprof
[cc13920]206 </seg>
207 <seg>
[d28648d]208 libruby.so
[cc13920]209 </seg>
210 <seg>
[6b8f495]211 /usr/include/ruby-&ruby-minor-version;.0,
[cc13920]212 /usr/lib/ruby,
[7cc1bcd]213 /usr/share/doc/ruby-&ruby-version; and
[cc13920]214 /usr/share/ri
215 </seg>
[16f3afb3]216 </seglistitem>
217 </segmentedlist>
218
219 <variablelist>
220 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
221 <?dbfo list-presentation="list"?>
222 <?dbhtml list-presentation="table"?>
223
[d28648d]224 <varlistentry id="bundle">
225 <term><command>bundle</command></term>
226 <listitem>
227 <para>
[4c24eb0a]228 creates bundles of Ruby Gems
[d28648d]229 </para>
230 <indexterm zone="ruby bundle">
231 <primary sortas="b-bundle">bundle</primary>
232 </indexterm>
233 </listitem>
234 </varlistentry>
235
236 <varlistentry id="bundler">
237 <term><command>bundler</command></term>
238 <listitem>
239 <para>
[4c24eb0a]240 manages an application's dependencies throughout it's lifecycle
[d28648d]241 </para>
242 <indexterm zone="ruby bundler">
243 <primary sortas="b-bundler">bundler</primary>
244 </indexterm>
245 </listitem>
246 </varlistentry>
247
[909a015]248 <varlistentry id="erb">
249 <term><command>erb</command></term>
[16f3afb3]250 <listitem>
[cc13920]251 <para>
[0771e2f]252 is a command line front-end for eRuby, which provides a templating
253 system for <application>Ruby</application>
[cc13920]254 </para>
[909a015]255 <indexterm zone="ruby erb">
256 <primary sortas="b-erb">erb</primary>
257 </indexterm>
258 </listitem>
259 </varlistentry>
260
261 <varlistentry id="gem">
262 <term><command>gem</command></term>
263 <listitem>
264 <para>
[0771e2f]265 is the command for RubyGems, which is a sophisticated package
266 manager for <application>Ruby</application>. This is similar
267 to Python's 'pip' command
[909a015]268 </para>
269 <indexterm zone="ruby gem">
270 <primary sortas="b-gem">gem</primary>
[16f3afb3]271 </indexterm>
272 </listitem>
273 </varlistentry>
274
275 <varlistentry id="irb">
276 <term><command>irb</command></term>
277 <listitem>
[cc13920]278 <para>
279 is the interactive interface for
[4c24eb0a]280 <application>Ruby</application>
[cc13920]281 </para>
[16f3afb3]282 <indexterm zone="ruby irb">
283 <primary sortas="b-irb">irb</primary>
284 </indexterm>
285 </listitem>
286 </varlistentry>
287
[909a015]288 <varlistentry id="rake">
289 <term><command>rake</command></term>
[16f3afb3]290 <listitem>
[cc13920]291 <para>
[0771e2f]292 is a make-like build utility for <application>Ruby</application>
[cc13920]293 </para>
[909a015]294 <indexterm zone="ruby rake">
295 <primary sortas="b-rake">rake</primary>
296 </indexterm>
297 </listitem>
298 </varlistentry>
299
[6b8f495]300 <varlistentry id="rdbg">
301 <term><command>rdbg</command></term>
302 <listitem>
303 <para>
304 is an interactive debugger for <application>Ruby</application>
305 </para>
306 <indexterm zone="ruby rdbg">
307 <primary sortas="b-rdbg">rdbg</primary>
308 </indexterm>
309 </listitem>
310 </varlistentry>
311
[909a015]312 <varlistentry id="rdoc">
313 <term><command>rdoc</command></term>
314 <listitem>
315 <para>
[4c24eb0a]316 generates <application>Ruby</application> documentation
[909a015]317 </para>
318 <indexterm zone="ruby rdoc">
319 <primary sortas="b-rdoc">rdoc</primary>
[16f3afb3]320 </indexterm>
321 </listitem>
322 </varlistentry>
323
324 <varlistentry id="ri">
325 <term><command>ri</command></term>
326 <listitem>
[cc13920]327 <para>
328 displays documentation from a database on
[4c24eb0a]329 <application>Ruby</application> classes, modules, and methods
[cc13920]330 </para>
[16f3afb3]331 <indexterm zone="ruby ri">
332 <primary sortas="b-ri">ri</primary>
333 </indexterm>
334 </listitem>
335 </varlistentry>
336
[909a015]337 <varlistentry id="ruby-prog">
338 <term><command>ruby</command></term>
339 <listitem>
340 <para>
341 is an interpreted scripting language for quick
[4c24eb0a]342 and easy object-oriented programming
[909a015]343 </para>
344 <indexterm zone="ruby ruby-prog">
345 <primary sortas="b-ruby">ruby</primary>
346 </indexterm>
347 </listitem>
348 </varlistentry>
349
[16f3afb3]350 <varlistentry id="libruby">
[92b0b42]351 <term><filename role="libraryfile">libruby.so</filename></term>
[16f3afb3]352 <listitem>
[cc13920]353 <para>
[4c24eb0a]354 contains the API functions required by <application>Ruby</application>
[cc13920]355 </para>
[16f3afb3]356 <indexterm zone="ruby libruby">
357 <primary sortas="c-libruby">libruby.so</primary>
358 </indexterm>
359 </listitem>
360 </varlistentry>
361
362 </variablelist>
363
364 </sect2>
[a1f7daa]365
366</sect1>
Note: See TracBrowser for help on using the repository browser.