2004-06-13 06:56:28 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-04-05 03:42:53 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-06-13 06:56:28 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
2012-07-20 07:08:29 +08:00
|
|
|
|
2015-12-26 00:11:47 +08:00
|
|
|
<!ENTITY ruby-download-http "http://cache.ruby-lang.org/pub/ruby/&ruby-minor-version;/ruby-&ruby-version;.tar.xz">
|
2013-12-26 09:53:27 +08:00
|
|
|
<!ENTITY ruby-download-ftp " ">
|
2020-10-07 07:35:12 +08:00
|
|
|
<!ENTITY ruby-md5sum "60adb09227ff188a53fd13b6e854edd2">
|
2017-12-29 05:42:14 +08:00
|
|
|
<!ENTITY ruby-size "11 MB">
|
2020-10-07 07:35:12 +08:00
|
|
|
<!ENTITY ruby-buildsize "567 MB (add 230 MB for C API docs)">
|
|
|
|
<!ENTITY ruby-time "1.3 SBU (using parallelism=4; add 4.4 SBU for tests; add 0.5 SBU for C API docs)">
|
2004-06-13 06:56:28 +08:00
|
|
|
]>
|
|
|
|
|
2005-01-26 00:48:26 +08:00
|
|
|
<sect1 id="ruby" xreflabel="Ruby-&ruby-version;">
|
2005-05-06 04:20:01 +08:00
|
|
|
<?dbhtml filename="ruby.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>Ruby-&ruby-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="ruby">
|
|
|
|
<primary sortas="a-Ruby">Ruby</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to Ruby</title>
|
|
|
|
|
2012-07-20 07:08:29 +08:00
|
|
|
<para>
|
|
|
|
The <application>Ruby</application> package contains the
|
|
|
|
<application>Ruby</application> development environment. This
|
|
|
|
is useful for object-oriented scripting.
|
|
|
|
</para>
|
2005-05-06 04:20:01 +08:00
|
|
|
|
2020-08-18 00:13:28 +08:00
|
|
|
&lfs10_checked;
|
2010-11-18 09:06:14 +08:00
|
|
|
|
2005-05-06 04:20:01 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
2012-07-20 07:08:29 +08:00
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&ruby-download-http;"/>
|
|
|
|
</para>
|
2005-05-06 04:20:01 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-20 07:08:29 +08:00
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&ruby-download-ftp;"/>
|
|
|
|
</para>
|
2005-05-06 04:20:01 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-20 07:08:29 +08:00
|
|
|
<para>
|
|
|
|
Download MD5 sum: &ruby-md5sum;
|
|
|
|
</para>
|
2005-05-06 04:20:01 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-20 07:08:29 +08:00
|
|
|
<para>
|
|
|
|
Download size: &ruby-size;
|
|
|
|
</para>
|
2005-05-06 04:20:01 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-20 07:08:29 +08:00
|
|
|
<para>
|
|
|
|
Estimated disk space required: &ruby-buildsize;
|
|
|
|
</para>
|
2005-05-06 04:20:01 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-20 07:08:29 +08:00
|
|
|
<para>
|
|
|
|
Estimated build time: &ruby-time;
|
|
|
|
</para>
|
2005-05-06 04:20:01 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Ruby Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2011-10-27 05:29:54 +08:00
|
|
|
<para role="optional">
|
2013-01-18 23:06:25 +08:00
|
|
|
<xref linkend="db"/>,
|
2011-10-27 05:29:54 +08:00
|
|
|
<xref linkend="doxygen"/>,
|
2012-07-20 07:08:29 +08:00
|
|
|
<xref linkend="graphviz"/>,
|
2019-04-17 00:41:13 +08:00
|
|
|
<xref linkend="libyaml"/>,
|
2019-08-31 13:29:21 +08:00
|
|
|
<xref linkend="tk"/>,
|
|
|
|
<xref linkend="valgrind"/>, and
|
|
|
|
<ulink url="http://dtrace.org/blogs/about/">DTrace</ulink>
|
2011-10-27 05:29:54 +08:00
|
|
|
</para>
|
2005-05-06 04:20:01 +08:00
|
|
|
|
2006-04-11 02:35:56 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
2012-07-20 07:08:29 +08:00
|
|
|
<ulink url="&blfs-wiki;/ruby"/>
|
|
|
|
</para>
|
2005-05-06 04:20:01 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Ruby</title>
|
|
|
|
|
2012-07-20 07:08:29 +08:00
|
|
|
<para>
|
|
|
|
Install <application>Ruby</application> by running the following
|
2014-12-29 01:50:10 +08:00
|
|
|
command:
|
2012-07-20 07:08:29 +08:00
|
|
|
</para>
|
2005-05-06 04:20:01 +08:00
|
|
|
|
2014-04-28 07:02:27 +08:00
|
|
|
<screen><userinput>./configure --prefix=/usr \
|
2014-03-17 05:57:46 +08:00
|
|
|
--enable-shared \
|
2015-03-12 06:10:21 +08:00
|
|
|
--docdir=/usr/share/doc/ruby-&ruby-version; &&
|
|
|
|
make</userinput></screen>
|
2014-12-29 01:50:10 +08:00
|
|
|
|
|
|
|
<para>
|
|
|
|
Optionally, build the CAPI documents by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
|
|
|
|
2015-03-12 06:10:21 +08:00
|
|
|
<screen><userinput>make capi</userinput></screen>
|
2005-05-06 04:20:01 +08:00
|
|
|
|
2012-07-20 07:08:29 +08:00
|
|
|
<para>
|
2019-12-31 04:19:06 +08:00
|
|
|
To test the results, issue: <command>make check</command>. There are over
|
|
|
|
21,000 tests. Some tests related to ipv6 may indicate errors. If the
|
|
|
|
tests are run in a directory that has a world writable component (e.g.
|
2020-02-18 05:54:09 +08:00
|
|
|
/tmp) then several additional tests may fail. One test related to
|
|
|
|
the time function may fail due to a change in expectations as a result of
|
|
|
|
glibc-2.31.
|
2012-07-20 07:08:29 +08:00
|
|
|
</para>
|
2005-07-28 04:49:55 +08:00
|
|
|
|
2012-07-20 07:08:29 +08:00
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
2005-05-06 04:20:01 +08:00
|
|
|
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2014-03-17 05:57:46 +08:00
|
|
|
<para>
|
|
|
|
<parameter>--enable-shared</parameter>: This switch enables building of
|
2012-07-20 07:08:29 +08:00
|
|
|
the <filename class="libraryfile">libruby</filename> shared library.
|
|
|
|
</para>
|
2005-05-06 04:20:01 +08:00
|
|
|
|
2014-10-28 22:56:04 +08:00
|
|
|
<para>
|
|
|
|
<option>--disable-install-doc</option>: This switch disables building and
|
|
|
|
installing rdoc indexes and C API documents.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<option>--disable-install-rdoc</option>: This switch disables building
|
|
|
|
and installing rdoc indexes.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<option>--disable-install-capi</option>: This switch disables building
|
|
|
|
and installing C API documents.
|
|
|
|
</para>
|
|
|
|
|
2005-05-06 04:20:01 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2012-07-20 07:08:29 +08:00
|
|
|
<seg>
|
2019-08-31 13:29:21 +08:00
|
|
|
bundle, bundler, erb, gem, irb, rake, rdoc, ri, and ruby
|
2012-07-20 07:08:29 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
2019-08-31 13:29:21 +08:00
|
|
|
libruby.so
|
2012-07-20 07:08:29 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
2015-12-26 00:11:47 +08:00
|
|
|
/usr/include/ruby-&ruby-minor-version;.0
|
2012-07-20 07:08:29 +08:00
|
|
|
/usr/lib/ruby,
|
2013-06-02 17:55:42 +08:00
|
|
|
/usr/share/doc/ruby-&ruby-version; and
|
2012-07-20 07:08:29 +08:00
|
|
|
/usr/share/ri
|
|
|
|
</seg>
|
2005-05-06 04:20:01 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
2019-08-31 13:29:21 +08:00
|
|
|
<varlistentry id="bundle">
|
|
|
|
<term><command>bundle</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
creates bundles of Ruby Gems.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="ruby bundle">
|
|
|
|
<primary sortas="b-bundle">bundle</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="bundler">
|
|
|
|
<term><command>bundler</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
manages an application's dependencies throughout it's lifecycle.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="ruby bundler">
|
|
|
|
<primary sortas="b-bundler">bundler</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2015-12-26 00:11:47 +08:00
|
|
|
<varlistentry id="erb">
|
|
|
|
<term><command>erb</command></term>
|
2005-05-06 04:20:01 +08:00
|
|
|
<listitem>
|
2012-07-20 07:08:29 +08:00
|
|
|
<para>
|
2015-12-26 00:11:47 +08:00
|
|
|
is Tiny eRuby. It interprets a
|
|
|
|
<application>Ruby</application> code embedded text file.
|
2012-07-20 07:08:29 +08:00
|
|
|
</para>
|
2015-12-26 00:11:47 +08:00
|
|
|
<indexterm zone="ruby erb">
|
|
|
|
<primary sortas="b-erb">erb</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="gem">
|
|
|
|
<term><command>gem</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
command for RubyGems - a sophisticated package manager for
|
|
|
|
<application>Ruby</application>.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="ruby gem">
|
|
|
|
<primary sortas="b-gem">gem</primary>
|
2005-05-06 04:20:01 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="irb">
|
|
|
|
<term><command>irb</command></term>
|
|
|
|
<listitem>
|
2012-07-20 07:08:29 +08:00
|
|
|
<para>
|
|
|
|
is the interactive interface for
|
|
|
|
<application>Ruby</application>.
|
|
|
|
</para>
|
2005-05-06 04:20:01 +08:00
|
|
|
<indexterm zone="ruby irb">
|
|
|
|
<primary sortas="b-irb">irb</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2015-12-26 00:11:47 +08:00
|
|
|
<varlistentry id="rake">
|
|
|
|
<term><command>rake</command></term>
|
2005-05-06 04:20:01 +08:00
|
|
|
<listitem>
|
2012-07-20 07:08:29 +08:00
|
|
|
<para>
|
2015-12-26 00:11:47 +08:00
|
|
|
a make-like build utility for <application>Ruby</application>.
|
2012-07-20 07:08:29 +08:00
|
|
|
</para>
|
2015-12-26 00:11:47 +08:00
|
|
|
<indexterm zone="ruby rake">
|
|
|
|
<primary sortas="b-rake">rake</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="rdoc">
|
|
|
|
<term><command>rdoc</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
generates <application>Ruby</application> documentation.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="ruby rdoc">
|
|
|
|
<primary sortas="b-rdoc">rdoc</primary>
|
2005-05-06 04:20:01 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="ri">
|
|
|
|
<term><command>ri</command></term>
|
|
|
|
<listitem>
|
2012-07-20 07:08:29 +08:00
|
|
|
<para>
|
|
|
|
displays documentation from a database on
|
2013-07-23 07:27:19 +08:00
|
|
|
<application>Ruby</application> classes, modules, and methods.
|
2012-07-20 07:08:29 +08:00
|
|
|
</para>
|
2005-05-06 04:20:01 +08:00
|
|
|
<indexterm zone="ruby ri">
|
|
|
|
<primary sortas="b-ri">ri</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2015-12-26 00:11:47 +08:00
|
|
|
<varlistentry id="ruby-prog">
|
|
|
|
<term><command>ruby</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is an interpreted scripting language for quick
|
|
|
|
and easy object-oriented programming.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="ruby ruby-prog">
|
|
|
|
<primary sortas="b-ruby">ruby</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2005-05-06 04:20:01 +08:00
|
|
|
<varlistentry id="libruby">
|
2013-01-03 03:19:46 +08:00
|
|
|
<term><filename role="libraryfile">libruby.so</filename></term>
|
2005-05-06 04:20:01 +08:00
|
|
|
<listitem>
|
2012-07-20 07:08:29 +08:00
|
|
|
<para>
|
|
|
|
contains the API functions required by <application>Ruby</application>.
|
|
|
|
</para>
|
2005-05-06 04:20:01 +08:00
|
|
|
<indexterm zone="ruby libruby">
|
|
|
|
<primary sortas="c-libruby">libruby.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
2002-08-08 11:47:21 +08:00
|
|
|
|
|
|
|
</sect1>
|