source: general/prog/lua.xml@ 41c36b3

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 41c36b3 was 41c36b3, checked in by Bruce Dubbs <bdubbs@…>, 9 years ago

Tags

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

  • Property mode set to 100644
File size: 6.4 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 "797adacada8d85761c079390ff1d9961">
10 <!ENTITY lua-size "276 KB">
11 <!ENTITY lua-buildsize "3.9 MB (with test)">
12 <!ENTITY lua-time "less than 0.1 SBU (with test)">
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 is implemented as a small library of C functions, written in ANSI C, and
37 compiles unmodified in all known platforms. The implementation goals are
38 simplicity, efficiency, portability, and low embedding cost. The result is
39 a fast language engine with small footprint, making it ideal in embedded
40 systems too.
41 </para>
42
43 &lfs78_checked;
44
45 <bridgehead renderas="sect3">Package Information</bridgehead>
46 <itemizedlist spacing="compact">
47 <listitem>
48 <para>
49 Download (HTTP): <ulink url="&lua-download-http;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download (FTP): <ulink url="&lua-download-ftp;"/>
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download MD5 sum: &lua-md5sum;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Download size: &lua-size;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated disk space required: &lua-buildsize;
70 </para>
71 </listitem>
72 <listitem>
73 <para>
74 Estimated build time: &lua-time;
75 </para>
76 </listitem>
77 </itemizedlist>
78
79 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
80 <itemizedlist spacing="compact">
81 <listitem>
82 <para>
83 Required patch:
84 <ulink url="&patch-root;/lua-&lua-version;-shared_library-1.patch"/>
85 </para>
86 </listitem>
87 </itemizedlist>
88
89 <para condition="html" role="usernotes">User Notes:
90 <ulink url="&blfs-wiki;/lua"/>
91 </para>
92 </sect2>
93
94 <sect2 role="installation">
95 <title>Installation of Lua</title>
96
97 <para>
98 Install <application>Lua</application> by running the following
99 commands:
100 </para>
101
102<screen><userinput>patch -Np1 -i ../lua-&lua-version;-shared_library-1.patch &amp;&amp;
103sed -i '/#define LUA_ROOT/s:/usr/local/:/usr/:' src/luaconf.h &amp;&amp;
104make linux</userinput></screen>
105
106 <para>
107 To test the results, issue: <command>make test</command>.
108 <quote>This will run the interpreter and print its version.</quote>
109 </para>
110
111 <para>
112 Now, as the <systemitem class="username">root</systemitem> user:
113 </para>
114
115<screen role="root"><userinput>make INSTALL_TOP=/usr TO_LIB="liblua.so liblua.so.5.3 liblua.so.&lua-version;" \
116 INSTALL_DATA="cp -d" INSTALL_MAN=/usr/share/man/man1 install &amp;&amp;
117mkdir -pv /usr/share/doc/lua-&lua-version; &amp;&amp;
118cp -v doc/*.{html,css,gif,png} /usr/share/doc/lua-&lua-version;</userinput></screen>
119
120 <para>Some packages check for the <application>pkg-config</application> file
121 for <application>Lua</application>. As the
122 <systemitem class="username">root</systemitem> user:</para>
123
124<screen role="root"><userinput>cat &gt; /usr/lib/pkgconfig/lua.pc &lt;&lt; "EOF"
125<literal>V=5.3
126R=&lua-version;
127
128prefix=/usr
129INSTALL_BIN=${prefix}/bin
130INSTALL_INC=${prefix}/include
131INSTALL_LIB=${prefix}/lib
132INSTALL_MAN=${prefix}/man/man1
133INSTALL_LMOD=${prefix}/share/lua/${V}
134INSTALL_CMOD=${prefix}/lib/lua/${V}
135exec_prefix=${prefix}
136libdir=${exec_prefix}/lib
137includedir=${prefix}/include
138
139Name: Lua
140Description: An Extensible Extension Language
141Version: ${R}
142Requires:
143Libs: -L${libdir} -llua -lm
144Cflags: -I${includedir}</literal>
145EOF</userinput></screen>
146
147 </sect2>
148
149 <sect2 role="commands">
150 <title>Command Explanations</title>
151
152 <para>
153 <command>sed -i ... src/luaconf.h</command>: This command changes
154 <application>Lua</application> search path to match the install paths.
155 </para>
156
157 </sect2>
158
159 <sect2 role="content">
160 <title>Contents</title>
161
162 <segmentedlist>
163 <segtitle>Installed Programs</segtitle>
164 <segtitle>Installed Library</segtitle>
165 <segtitle>Installed Directories</segtitle>
166
167 <seglistitem>
168 <seg>
169 lua and luac
170 </seg>
171 <seg>
172 liblua.so
173 </seg>
174 <seg>
175 /usr/lib/lua,
176 /usr/share/lua and
177 /usr/share/doc/lua-&lua-version;
178 </seg>
179 </seglistitem>
180 </segmentedlist>
181
182 <variablelist>
183 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
184 <?dbfo list-presentation="list"?>
185 <?dbhtml list-presentation="table"?>
186
187 <varlistentry id="lua-prog">
188 <term><command>lua</command></term>
189 <listitem>
190 <para>
191 is the standalone Lua interpreter.
192 </para>
193 <indexterm zone="lua lua-prog">
194 <primary sortas="b-lua">lua</primary>
195 </indexterm>
196 </listitem>
197 </varlistentry>
198
199 <varlistentry id="luac">
200 <term><command>luac</command></term>
201 <listitem>
202 <para>
203 is the Lua compiler.
204 </para>
205 <indexterm zone="lua luac">
206 <primary sortas="b-luac">luac</primary>
207 </indexterm>
208 </listitem>
209 </varlistentry>
210
211 <varlistentry id="liblua">
212 <term><filename class="libraryfile">liblua.so</filename></term>
213 <listitem>
214 <para>
215 contains the <application>Lua</application> API functions.
216 </para>
217 <indexterm zone="lua liblua">
218 <primary sortas="c-liblua">liblua.so</primary>
219 </indexterm>
220 </listitem>
221 </varlistentry>
222
223 </variablelist>
224
225 </sect2>
226
227</sect1>
Note: See TracBrowser for help on using the repository browser.