lua - A general purpose, lightweight programming language ChangeLog

HOWTO


# Lua 5.4.6
# =========
# Below are instructions for installing Lua.  Some things that support Lua
# that I have HOWTOs for are:
# kdelibs
# links-lua
# swig
# Nmap
# xapian-bindings
# For a list of lots more, see this page at the Lua site.

# toLua has been moved to a separate HOWTO

# Prerequisites:
# readline (as I have it configured below)
# ncurses (as I have it configured below)

# Lua version history: Lua 5.4
# Changes since Lua 5.3

# Get the source
cd
test -f installed/lua-5.4.6.tar.gz && mv installed/lua-5.4.6.tar.gz .
test ! -f lua-5.4.6.tar.gz &&
wget https://www.lua.org/ftp/lua-5.4.6.tar.gz

# Verify tarball w/ sha256sum:
echo "7d5ea1b9cb6aa0b59ca3dde1c6adcb57ef83a1ba8e5432c0ecd06bf439b3ad\
88  lua-5.4.6.tar.gz" | sha256sum -c

# Extract the source
mkdir -p -m 0700 ~/src
cd ~/src
find -maxdepth 1 -type d -name "lua-*" -exec rm -r {} \;
tar xzvf ~/lua-5.4.6.tar.gz
cd lua-5.4.6
test $UID = 0 && chown -R root:root .

# Read these:
# less ./README
# lynx doc/readme.html

# Change lib to lib64 in a few places to avoid having to use
# a text editor and INSTALL_LIB, INSTALL_CMOD
wget https://englanders.us/pub/linux/patches/lua-5.4.6.patch &&
patch -p1 < lua-5.4.6.patch

# Build it for Linux with readline support
make linux-readline MYLIBS=-ltermcap

# Become root to install it
su

# Install it
make install

# Become yourself again
exit

# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/lua-*.tar.*
mv lua-5.4.6.tar.gz installed/


# If you ever want to uninstall Lua, this should do it:
su
( /usr/local/bin ; rm -f lua luac )
( cd /usr/local/include
  rm -f lua.h luaconf.h lualib.h lauxlib.h lua.hpp )
( cd /usr/local/lib ; rm -f liblua.* liblualib.* )
( cd /usr/local/lib64 ; rm -f liblua.* liblualib.* )
test -d /usr/local/lib/lua && rm -r /usr/local/lib/lua
test -d /usr/local/lib64/lua && rm -r /usr/local/lib64/lua
( cd /usr/local/man/man1 ; rm -f lua.1 luac.1 )
test -d /usr/local/share/lua && rm -r /usr/local/share/lua
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "lua-*" -exec rm -r {} \;
rm -f ~/installed/lua-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EDT -0400)
HOWTO last updated: 2023-06-03 4:03pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]