source: general/prog/lua.xml@ c1a0390

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 c1a0390 was c1a0390, checked in by Igor Živković <igor@…>, 11 years ago

Added Lua-5.2.2

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@11306 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 5.8 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
7 <!ENTITY lua-download-http "http://www.lua.org/ftp/lua-&lua-version;.tar.gz">
8 <!ENTITY lua-download-ftp " ">
9 <!ENTITY lua-md5sum "efbb645e897eae37cad4344ce8b0a614">
10 <!ENTITY lua-size "246 KB">
11 <!ENTITY lua-buildsize "3.5 MB">
12 <!ENTITY lua-time "0.1 SBU">
13]>
14
15<sect1 id="lua" xreflabel="Lua-&lua-version;">
16 <?dbhtml filename="lua.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>Lua-&lua-version;</title>
24
25 <indexterm zone="lua">
26 <primary sortas="a-Lua">Lua</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Lua</title>
31
32 <para>
33 <application>Lua</application> is a powerful light-weight programming
34 language designed for extending applications. It is also frequently used
35 as a general-purpose, stand-alone language. <application>Lua</application>
36 combines simple procedural syntax with powerful data description
37 constructs based on associative arrays and extensible semantics. It is
38 dynamically typed, interpreted from bytecodes, and has automatic memory
39 management with garbage collection, making it ideal for configuration,
40 scripting, and rapid prototyping. A fundamental concept in the design of
41 <application>Lua</application> is to provide meta-mechanisms for
42 implementing features, instead of providing a host of features directly in
43 the language. For example, although <application>Lua</application> is not
44 a pure object-oriented language, it does provide meta-mechanisms for
45 implementing classes and inheritance. <application>Lua</application>'s
46 meta-mechanisms bring an economy of concepts and keep the language small,
47 while allowing the semantics to be extended in unconventional ways.
48 Extensible semantics is a distinguishing feature of
49 <application>Lua</application>. <application>Lua</application> is a
50 language engine that you can embed into your application. This means that,
51 besides syntax and semantics, it has an API that allows the application to
52 exchange data with <application>Lua</application> programs and also to
53 extend <application>Lua</application> with C functions. In this sense, it
54 can be regarded as a language framework for building domain-specific
55 languages. <application>Lua</application> is implemented as a small
56 library of C functions, written in ANSI C, and compiles unmodified in all
57 known platforms. The implementation goals are simplicity, efficiency,
58 portability, and low embedding cost. The result is a fast language engine
59 with small footprint, making it ideal in embedded systems too.
60 </para>
61
62 &lfs73_checked;
63
64 <bridgehead renderas="sect3">Package Information</bridgehead>
65 <itemizedlist spacing="compact">
66 <listitem>
67 <para>
68 Download (HTTP): <ulink url="&lua-download-http;"/>
69 </para>
70 </listitem>
71 <listitem>
72 <para>
73 Download (FTP): <ulink url="&lua-download-ftp;"/>
74 </para>
75 </listitem>
76 <listitem>
77 <para>
78 Download MD5 sum: &lua-md5sum;
79 </para>
80 </listitem>
81 <listitem>
82 <para>
83 Download size: &lua-size;
84 </para>
85 </listitem>
86 <listitem>
87 <para>
88 Estimated disk space required: &lua-buildsize;
89 </para>
90 </listitem>
91 <listitem>
92 <para>
93 Estimated build time: &lua-time;
94 </para>
95 </listitem>
96 </itemizedlist>
97
98 <para condition="html" role="usernotes">User Notes:
99 <ulink url="&blfs-wiki;/lua"/>
100 </para>
101 </sect2>
102
103 <sect2 role="installation">
104 <title>Installation of Lua</title>
105
106 <para>
107 Install <application>Lua</application> by running the following
108 commands:
109 </para>
110
111<screen><userinput>make linux</userinput></screen>
112
113 <para>
114 To test the results, issue: <command>make test</command>.
115 </para>
116
117 <para>
118 Now, as the <systemitem class="username">root</systemitem> user:
119 </para>
120
121<screen role="root"><userinput>make INSTALL_TOP=/usr install &amp;&amp;
122mkdir -pv /usr/share/doc/lua-&lua-version; &amp;&amp;
123cp -v doc/*.{html,css,gif,png} /usr/share/doc/lua-&lua-version;</userinput></screen>
124
125 </sect2>
126
127 <sect2 role="content">
128 <title>Contents</title>
129
130 <segmentedlist>
131 <segtitle>Installed Programs</segtitle>
132 <segtitle>Installed Libraries</segtitle>
133 <segtitle>Installed Directories</segtitle>
134
135 <seglistitem>
136 <seg>
137 lua and luac
138 </seg>
139 <seg>
140 liblua.a
141 </seg>
142 <seg>
143 /usr/lib/lua,
144 /usr/share/lua and
145 /usr/share/doc/lua-&lua-version;
146 </seg>
147 </seglistitem>
148 </segmentedlist>
149
150 <variablelist>
151 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
152 <?dbfo list-presentation="list"?>
153 <?dbhtml list-presentation="table"?>
154
155 <varlistentry id="lua-prog">
156 <term><command>lua</command></term>
157 <listitem>
158 <para>
159 is the standalone Lua interpreter.
160 </para>
161 <indexterm zone="lua lua-prog">
162 <primary sortas="b-lua">lua</primary>
163 </indexterm>
164 </listitem>
165 </varlistentry>
166
167 <varlistentry id="luac">
168 <term><command>luac</command></term>
169 <listitem>
170 <para>
171 is the Lua compiler.
172 </para>
173 <indexterm zone="lua luac">
174 <primary sortas="b-luac">luac</primary>
175 </indexterm>
176 </listitem>
177 </varlistentry>
178
179 </variablelist>
180
181 </sect2>
182
183</sect1>
Note: See TracBrowser for help on using the repository browser.