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 " ">
|
2010-03-31 03:18:05 +08:00
|
|
|
<!ENTITY ruby-download-ftp "ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-&ruby-version;.tar.bz2">
|
2012-10-17 06:54:52 +08:00
|
|
|
<!ENTITY ruby-md5sum "e76848a86606a4fd5dcf14fc4b4e755e">
|
|
|
|
<!ENTITY ruby-size "9.5 MB">
|
|
|
|
<!ENTITY ruby-buildsize "546 MB">
|
|
|
|
<!ENTITY ruby-time "4.7 SBU">
|
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
|
|
|
|
2012-10-17 06:54:52 +08:00
|
|
|
&lfs72_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">
|
|
|
|
<xref linkend="doxygen"/>,
|
2012-07-20 07:08:29 +08:00
|
|
|
<xref linkend="graphviz"/>,
|
|
|
|
<ulink url="http://pyyaml.org/wiki/LibYAML">libyaml</ulink>,
|
|
|
|
<xref linkend="openssl"/> and
|
|
|
|
<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
|
|
|
|
2011-10-27 05:29:54 +08:00
|
|
|
<screen><userinput>./configure --prefix=/usr \
|
|
|
|
--enable-shared \
|
2012-07-20 07:08:29 +08:00
|
|
|
--enable-pthread &&
|
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>
|
|
|
|
<option>--enable-shared</option>: This parameter enables building of
|
|
|
|
the <filename class="libraryfile">libruby</filename> shared library.
|
|
|
|
</para>
|
2005-05-06 04:20:01 +08:00
|
|
|
|
2012-07-20 07:08:29 +08:00
|
|
|
<para>
|
|
|
|
<option>--enable-pthread</option>: This parameter enables linking of the
|
|
|
|
threading library into the <application>Ruby</application> build.
|
|
|
|
</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>
|
|
|
|
erb, gem, irb, rake, rdoc, ri, ruby and testrb
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
libruby.so, libruby-static.a and numerous modules located in the
|
|
|
|
<filename class="directory">/usr/lib/ruby</filename> hierarchy.
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
/usr/include/ruby-1.9.1,
|
|
|
|
/usr/lib/ruby,
|
|
|
|
/usr/share/doc/ruby and
|
|
|
|
/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
|
|
|
|
<application>Ruby</application> classes, modules and methods.
|
|
|
|
</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">
|
2012-07-20 07:08:29 +08:00
|
|
|
<term><filename role='library'>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>
|