source: general/prog/lua52.xml@ 90c883f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 9.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt 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 90c883f was 90c883f, checked in by Bruce Dubbs <bdubbs@…>, 4 years ago

Update to proftpd-1.3.6c.
Update to gptfdisk-1.0.5.

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

  • Property mode set to 100644
File size: 7.9 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-&lua52-version;.tar.gz">
8 <!ENTITY lua-download-ftp " ">
9 <!ENTITY lua-md5sum "913fdb32207046b273fdb17aad70be13">
10 <!ENTITY lua-size "248 KB">
11 <!ENTITY lua-buildsize "3.6 MB">
12 <!ENTITY lua-time "less than 0.1 SBU">
13]>
14
15<sect1 id="lua52" xreflabel="Lua-&lua52-version;">
16 <?dbhtml filename="lua52.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>Lua-&lua52-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 5.2</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 <para>
44 This is an older verion of <application>Lua</application> needed only
45 for compatibility with other programs such as <xref linkend='wireshark'/>.
46 </para>
47
48 &lfs91_checked;
49
50 <bridgehead renderas="sect3">Package Information</bridgehead>
51 <itemizedlist spacing="compact">
52 <listitem>
53 <para>
54 Download (HTTP): <ulink url="&lua-download-http;"/>
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download (FTP): <ulink url="&lua-download-ftp;"/>
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Download MD5 sum: &lua-md5sum;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Download size: &lua-size;
70 </para>
71 </listitem>
72 <listitem>
73 <para>
74 Estimated disk space required: &lua-buildsize;
75 </para>
76 </listitem>
77 <listitem>
78 <para>
79 Estimated build time: &lua-time;
80 </para>
81 </listitem>
82 </itemizedlist>
83
84 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
85 <itemizedlist spacing="compact">
86 <listitem>
87 <para>
88 Required patch:
89 <ulink url="&patch-root;/lua-&lua52-version;-shared_library-1.patch"/>
90 </para>
91 </listitem>
92 </itemizedlist>
93
94 <para condition="html" role="usernotes">User Notes:
95 <ulink url="&blfs-wiki;/lua"/>
96 </para>
97 </sect2>
98
99 <sect2 role="installation">
100 <title>Installation of Lua 5.2</title>
101
102 <para>Some packages check for the <application>pkg-config</application> file
103 for <application>Lua</application>, which is created with:</para>
104
105<screen><userinput>cat &gt; lua.pc &lt;&lt; "EOF"
106<literal>V=5.2
107R=&lua52-version;
108
109prefix=/usr
110INSTALL_BIN=${prefix}/bin
111INSTALL_INC=${prefix}/include/lua5.2
112INSTALL_LIB=${prefix}/lib
113INSTALL_MAN=${prefix}/share/man/man1
114INSTALL_LMOD=${prefix}/share/lua/${V}
115INSTALL_CMOD=${prefix}/lib/lua/${V}
116exec_prefix=${prefix}
117libdir=${exec_prefix}/lib
118includedir=${prefix}/include/lua5.2
119
120Name: Lua
121Description: An Extensible Extension Language
122Version: ${R}
123Requires:
124Libs: -L${libdir} -llua -lm -ldl
125Cflags: -I${includedir}</literal>
126EOF</userinput></screen>
127
128 <para>
129 Install <application>Lua</application> by running the following
130 commands:
131 </para>
132
133<screen><userinput>patch -Np1 -i ../lua-&lua52-version;-shared_library-1.patch &amp;&amp;
134
135sed -i '/#define LUA_ROOT/s:/usr/local/:/usr/:' src/luaconf.h &amp;&amp;
136
137sed -r -e '/^LUA_(SO|A|T)=/ s/lua/lua5.2/' \
138 -e '/^LUAC_T=/ s/luac/luac5.2/' \
139 -i src/Makefile &amp;&amp;
140
141make MYCFLAGS="-fPIC" linux</userinput></screen>
142<!--
143 <para>
144 To test the results, issue: <command>make test</command>.
145 <quote>This will run the interpreter and print its version.</quote>.
146 More comprehensive tests can be performed if you downloaded the "Test
147 suite" tarball. Those tests need to be executed after the package is
148 installed, thus we defer to the description below.
149 </para>
150-->
151 <para>
152 The installation of this package is complex, so we will use
153 the DESTDIR method of installation:
154 </para>
155
156<screen><userinput>make TO_BIN='lua5.2 luac5.2' \
157 TO_LIB="liblua5.2.so liblua5.2.so.5.2 liblua5.2.so.&lua52-version;" \
158 INSTALL_DATA="cp -d" \
159 INSTALL_TOP=$PWD/install/usr \
160 INSTALL_INC=$PWD/install/usr/include/lua5.2 \
161 INSTALL_MAN=$PWD/install/usr/share/man/man1 \
162 install &amp;&amp;
163
164install -Dm644 lua.pc install/usr/lib/pkgconfig/lua52.pc &amp;&amp;
165
166mkdir -pv install/usr/share/doc/lua-&lua52-version; &amp;&amp;
167cp -v doc/*.{html,css,gif,png} install/usr/share/doc/lua-&lua52-version; &amp;&amp;
168
169ln -s liblua5.2.so install/usr/lib/liblua.so.5.2 &amp;&amp;
170ln -s liblua5.2.so install/usr/lib/liblua.so.&lua52-version; &amp;&amp;
171
172mv install/usr/share/man/man1/{lua.1,lua52.1} &amp;&amp;
173mv install/usr/share/man/man1/{luac.1,luac52.1}</userinput></screen>
174
175 <para>
176 Now, as the <systemitem class="username">root</systemitem> user:
177 </para>
178
179<screen role="root"><userinput>chown -R root:root install &amp;&amp;
180cp -a install/* /</userinput></screen>
181
182 </sect2>
183
184 <sect2 role="commands">
185 <title>Command Explanations</title>
186
187 <para>
188 <command>sed -i ... src/luaconf.h</command>: This command changes the
189 <application>Lua</application> search path to match the install path.
190 </para>
191
192 <para>
193 <command>sed -i ... src/Makefile</command>: This command deconflicts
194 this installation with the latest version of lua.
195 </para>
196
197 </sect2>
198
199 <sect2 role="content">
200 <title>Contents</title>
201
202 <segmentedlist>
203 <segtitle>Installed Programs</segtitle>
204 <segtitle>Installed Library</segtitle>
205 <segtitle>Installed Directories</segtitle>
206
207 <seglistitem>
208 <seg>
209 lua52 and luac52
210 </seg>
211 <seg>
212 liblua5.2.so
213 </seg>
214 <seg>
215 /usr/include/lua5.2,
216 /usr/lib/lua/5.2,
217 /usr/share/doc/lua-&lua52-version;, and
218 /usr/share/lua/5.2
219 </seg>
220 </seglistitem>
221 </segmentedlist>
222
223 <variablelist>
224 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
225 <?dbfo list-presentation="list"?>
226 <?dbhtml list-presentation="table"?>
227
228 <varlistentry id="lua52-prog">
229 <term><command>lua5.2</command></term>
230 <listitem>
231 <para>
232 is the standalone Lua version 5.2 interpreter.
233 </para>
234 <indexterm zone="lua52 lua-prog">
235 <primary sortas="b-lua52">lua52</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
240 <varlistentry id="luac52">
241 <term><command>luac5.2</command></term>
242 <listitem>
243 <para>
244 is the Lua version 5.2 compiler.
245 </para>
246 <indexterm zone="lua52 luac52">
247 <primary sortas="b-luac52">luac52</primary>
248 </indexterm>
249 </listitem>
250 </varlistentry>
251
252 <varlistentry id="liblua52">
253 <term><filename class="libraryfile">liblua5.2.so</filename></term>
254 <listitem>
255 <para>
256 contains the <application>Lua</application> version 5.2 API functions.
257 </para>
258 <indexterm zone="lua52 liblua52">
259 <primary sortas="c-liblua52">liblua5.2.so</primary>
260 </indexterm>
261 </listitem>
262 </varlistentry>
263
264 </variablelist>
265
266 </sect2>
267
268</sect1>
Note: See TracBrowser for help on using the repository browser.