source: general/prog/lua.xml@ 32d4980

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

Downgraded Lua to version 5.1.5 as too many packages in the book and outside don't support 5.2

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

  • Property mode set to 100644
File size: 6.0 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 "2e115fe26e435e33b0d5c022e4490567">
10 <!ENTITY lua-size "217 KB">
11 <!ENTITY lua-buildsize "3.4 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 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 &lfs73_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;
103make linux</userinput></screen>
104
105 <para>
106 To test the results, issue: <command>make test</command>.
107 </para>
108
109 <para>
110 Now, as the <systemitem class="username">root</systemitem> user:
111 </para>
112
113<screen role="root"><userinput>make INSTALL_TOP=/usr TO_LIB="liblua.so liblua.so.5.1 liblua.so.&lua-version;" \
114 INSTALL_DATA="cp -d" INSTALL_MAN=/usr/share/man/man1 install &amp;&amp;
115mkdir -pv /usr/share/doc/lua-&lua-version; &amp;&amp;
116cp -v doc/*.{html,css,gif,png} /usr/share/doc/lua-&lua-version;</userinput></screen>
117
118 <para>Some packages check for the <application>pkg-config</application> file
119 for <application>Lua</application>. As the
120 <systemitem class="username">root</systemitem> user:</para>
121
122<screen role="root"><userinput>cat &gt; /usr/lib/pkgconfig/lua.pc &lt;&lt; "EOF"
123<literal>V=5.1
124R=&lua-version;
125
126prefix=/usr
127INSTALL_BIN=${prefix}/bin
128INSTALL_INC=${prefix}/include
129INSTALL_LIB=${prefix}/lib
130INSTALL_MAN=${prefix}/man/man1
131INSTALL_LMOD=${prefix}/share/lua/${V}
132INSTALL_CMOD=${prefix}/lib/lua/${V}
133exec_prefix=${prefix}
134libdir=${exec_prefix}/lib
135includedir=${prefix}/include
136
137Name: Lua
138Description: An Extensible Extension Language
139Version: ${R}
140Requires:
141Libs: -L${libdir} -llua -lm
142Cflags: -I${includedir}</literal>
143EOF</userinput></screen>
144
145 </sect2>
146
147 <sect2 role="content">
148 <title>Contents</title>
149
150 <segmentedlist>
151 <segtitle>Installed Programs</segtitle>
152 <segtitle>Installed Library</segtitle>
153 <segtitle>Installed Directories</segtitle>
154
155 <seglistitem>
156 <seg>
157 lua and luac
158 </seg>
159 <seg>
160 liblua.so
161 </seg>
162 <seg>
163 /usr/lib/lua,
164 /usr/share/lua and
165 /usr/share/doc/lua-&lua-version;
166 </seg>
167 </seglistitem>
168 </segmentedlist>
169
170 <variablelist>
171 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
172 <?dbfo list-presentation="list"?>
173 <?dbhtml list-presentation="table"?>
174
175 <varlistentry id="lua-prog">
176 <term><command>lua</command></term>
177 <listitem>
178 <para>
179 is the standalone Lua interpreter.
180 </para>
181 <indexterm zone="lua lua-prog">
182 <primary sortas="b-lua">lua</primary>
183 </indexterm>
184 </listitem>
185 </varlistentry>
186
187 <varlistentry id="luac">
188 <term><command>luac</command></term>
189 <listitem>
190 <para>
191 is the Lua compiler.
192 </para>
193 <indexterm zone="lua luac">
194 <primary sortas="b-luac">luac</primary>
195 </indexterm>
196 </listitem>
197 </varlistentry>
198
199 <varlistentry id="liblua">
200 <term><filename class="libraryfile">liblua.so</filename></term>
201 <listitem>
202 <para>
203 contains the <application>Lua</application> API functions.
204 </para>
205 <indexterm zone="lua liblua">
206 <primary sortas="b-liblua">liblua.so</primary>
207 </indexterm>
208 </listitem>
209 </varlistentry>
210
211 </variablelist>
212
213 </sect2>
214
215</sect1>
Note: See TracBrowser for help on using the repository browser.