English | Lietuviškai

Info


Communication


COMPILATION

These are compilation instructions for lua.

#Patch files are using to adapt Lua software with the Peropesis file
#system during compilation. The orginal version of this patch was created by dcarrith
#(https://gist.github.com/dcarrith). These patch file was adapted for the Peropesis
#file system by Gediminas Mockus.

#Patch file for the main Makefile for lua-5.5.0:
wget https://peropesis.org/peropesis/compilation/lua/Makefile.patch
patch -l < Makefile.patch

#Patch file for src/Makefile for lua-5.5.0:
cd src &&
wget https://peropesis.org/peropesis/compilation/lua/src/Makefile.patch
patch -l < Makefile.patch
cd ..

make linux &&
make local &&
make install INSTALL_TOP=

#To create pkg-config file for Lua:
cat > lua.pc << "EOF"
V=5.5
R=5.5.0

prefix=/usr
INSTALL_BIN=${prefix}/bin
INSTALL_INC=${prefix}/include
INSTALL_LIB=${prefix}/lib64
INSTALL_MAN=${prefix}/share/man/man1
INSTALL_LMOD=${prefix}/share/lua/${V}
INSTALL_CMOD=${prefix}/lib64/lua/${V}
exec_prefix=${prefix}
libdir=${exec_prefix}/lib64
includedir=${prefix}/include

Name: Lua
Description: An Extensible Extension Language
Version: ${R}
Requires:
Libs: -L${libdir} -llua -lm -ldl
Cflags: -I${includedir}
EOF

install -v -m644 -D lua.pc INSTALL_TOP_DIR_PATH/usr/lib64/pkgconfig/lua.pc

Copyright © 2021-2026 Peropesis. See license terms.
E-mail: info(at)peropesis.org