BuildingLua is implemented in pure ANSI C and compiles unmodified in all platforms that have an ANSI C compiler. Lua also compiles cleanly as C++.Lua is very easy to build and install. There are detailed instructions in the package but here is a simple terminal session that downloads the current release of Lua and builds it in Linux:
LUA
Building
BuildingLua is implemented in pure ANSI C and compiles unmodified in all platforms that have an ANSI C compiler. Lua also compiles cleanly as C++.Lua is very easy to build and install. There are detailed instructions in the package but here is a simple terminal session that downloads the current release of Lua and builds it in Linux:
curl -R -O http://www.lua.org/ftp/lua-5.3.5.tar.gz
tar zxf lua-5.3.5.tar.gz
cd lua-5.3.5
make linux test
For Mac OS X, use
make macosx test
.After installed (use terminal && zsh)
echo 'export PATH="/Users/vovs03/lua-5.3.5/src/lua:$PATH"' >> ~/.zshrc
^^ Not working~/.zshrc
<-alias lua='/Users/vovs03/lua-5.3.5/src/lua'
Guide
Articles