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
|
|
|
|
2006-04-21 19:38:21 +08:00
|
|
|
<!ENTITY ruby-download-http " ">
|
2013-06-02 17:55:42 +08:00
|
|
|
<!ENTITY ruby-download-ftp "ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-&ruby-version;-p&ruby-patch-version;.tar.bz2">
|
2013-11-22 22:28:42 +08:00
|
|
|
<!ENTITY ruby-md5sum "20eb8f067d20f6b76b7e16cce2a85a55">
|
|
|
|
<!ENTITY ruby-size "11 MB">
|
|
|
|
<!ENTITY ruby-buildsize "885 MB">
|
|
|
|
<!ENTITY ruby-time "3.4 SBU (additional 0.3 SBU for tests)">
|
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
|
|
|
|
2013-08-25 19:52:57 +08:00
|
|
|
&lfs74_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"/>,
|
2013-01-19 01:08:57 +08:00
|
|
|
<ulink url="http://pyyaml.org/wiki/LibYAML">libyaml</ulink>,
|
2013-07-23 07:27:19 +08:00
|
|
|
<xref linkend="openssl"/>, and
|
2012-07-20 07:08:29 +08:00
|
|
|
<xref linkend="tk"/>
|
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
|
|
|
|
commands:
|
|
|
|
</para>
|
2005-05-06 04:20:01 +08:00
|
|
|
|
2013-06-02 17:55:42 +08:00
|
|
|
<screen><userinput>./configure --prefix=/usr --docdir=/usr/share/doc/ruby-&ruby-version; --enable-shared &&
|
2005-05-06 04:20:01 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
2012-07-20 07:08:29 +08:00
|
|
|
<para>
|
|
|
|
To test the results, issue: <command>make test</command>.
|
|
|
|
</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>
|
|
|
|
|
2012-07-20 07:08:29 +08:00
|
|
|
<para>
|
2013-01-03 03:19:46 +08:00
|
|
|
<option>--enable-shared</option>: 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
|
|
|
|
|
|
|
</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>
|
2013-07-23 07:27:19 +08:00
|
|
|
erb, gem, irb, rake, rdoc, ri, ruby, and testrb
|
2012-07-20 07:08:29 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
2013-07-23 07:27:19 +08:00
|
|
|
libruby.so, libruby-static.a, and numerous modules located in the
|
2012-07-20 07:08:29 +08:00
|
|
|
<filename class="directory">/usr/lib/ruby</filename> hierarchy.
|
|
|
|
</seg>
|
|
|
|
<seg>
|
2013-06-02 17:55:42 +08:00
|
|
|
/usr/include/ruby-&ruby-version;,
|
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"?>
|
|
|
|
|
|
|
|
<varlistentry id="ruby-prog">
|
|
|
|
<term><command>ruby</command></term>
|
|
|
|
<listitem>
|
2012-07-20 07:08:29 +08:00
|
|
|
<para>
|
|
|
|
is an interpreted scripting language for quick
|
|
|
|
and easy object-oriented programming.
|
|
|
|
</para>
|
2005-05-06 04:20:01 +08:00
|
|
|
<indexterm zone="ruby ruby-prog">
|
|
|
|
<primary sortas="b-ruby">ruby</primary>
|
|
|
|
</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>
|
|
|
|
|
|
|
|
<varlistentry id="erb">
|
|
|
|
<term><command>erb</command></term>
|
|
|
|
<listitem>
|
2012-07-20 07:08:29 +08:00
|
|
|
<para>
|
|
|
|
is Tiny eRuby. It interprets a
|
|
|
|
<application>Ruby</application> code embedded text file.
|
|
|
|
</para>
|
2005-05-06 04:20:01 +08:00
|
|
|
<indexterm zone="ruby erb">
|
|
|
|
<primary sortas="b-erb">erb</primary>
|
|
|
|
</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>
|
|
|
|
|
|
|
|
<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>
|