1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| cd src && make linux make[1]: Entering directory '/usr/local/src/lua-5.1.5/src' make all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses" make[2]: Entering directory '/usr/local/src/lua-5.1.5/src' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/usr/local/src/lua-5.1.5/src' make[1]: Leaving directory '/usr/local/src/lua-5.1.5/src'
$ make install
cd src && mkdir -p /usr/local/bin /usr/local/include /usr/local/lib /usr/local/man/man1 /usr/local/share/lua/5.1 /usr/local/lib/lua/5.1 cd src && install -p -m 0755 lua luac /usr/local/bin cd src && install -p -m 0644 lua.h luaconf.h lualib.h lauxlib.h ../etc/lua.hpp /usr/local/include cd src && install -p -m 0644 liblua.a /usr/local/lib cd doc && install -p -m 0644 lua.1 luac.1 /usr/local/man/man1
$ whereis lua lua: /usr/bin/lua /usr/lib64/lua /usr/local/bin/lua /usr/local/lib/lua /usr/share/lua /usr/share/man/man1/lua.1.gz
$ /usr/local/bin/lua Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio
|