Skip to content

k9yhuang/lua-labs

 
 

Repository files navigation

lua-labs

lua-labs is a set of sample codes whose main purpose is to experiment and test Lua and OpenResty/Apache

  • OpenResty: A fast and scalable web application platform by extending NGINX with Lua
  • luarocks: Deployment and management system for Lua modules
  • lpeg: LPeg is a new pattern-matching library for Lua
  • luabitop: Lua BitOp is a C extension module for bitwise operations on numbers
  • lua-cjson: Lua CJSON provides JSON support for Lua
  • lua-iconv: Lua binding to the POSIX 'iconv' library
  • lua-llthreads2: Low-Level threads(pthreads or WIN32 threads) for Lua
  • luacrypto: LuaCrypto is a Lua frontend to the OpenSSL cryptographic library
  • lualogging: LuaLogging provides a simple API to use logging features in Lua
  • luaposix: Lua bindings for POSIX APIs
  • luasec: LuaSec is a binding for OpenSSL library to provide TLS/SSL communication
  • luasql-mysql: LuaSQL is a simple interface from Lua to a DBMS (MySQL)
  • luasql-sqlite3: LuaSQL is a simple interface from Lua to a DBMS (sqlite3)
  • lzmq: Lua binding to ZeroMQ
  • redis-lua: A Lua client library for the redis key value storage system
  • stdlib: General Lua libraries
  • underscore.lua: A utility library for Lua
# sudo vi /usr/local/lib/perl/5.18.2/perllocal.pod
# LDT
# 1. Uncheck Execution Environment
# 2. Add Lua JIT Interpreter
#    /opt/lua/openresty/luajit/bin/luajit-2.1.0-alpha
# 3. Add Variable
#    LUA_INIT=@/home/irocha/lua/configs/init.lua
# http://download.eclipse.org/ldt/releases

luarocks --local install lpeg
luarocks --local install luabitop
luarocks --local install lua-cjson
luarocks --local install lua-iconv
luarocks --local install lua-llthreads2
luarocks --local install luacrypto
luarocks --local install lualogging
luarocks --local install luaposix

luarocks --local install luasec OPENSSL_LIBDIR=/usr/lib64/
luarocks --local install luasec OPENSSL_LIBDIR=/usr/lib/x86_64-linux-gnu
luarocks --local install luasec OPENSSL_LIBDIR=/usr/lib/i386-linux-gnu

luarocks --local install luasql-mysql \
                         MYSQL_INCDIR=/usr/include/mysql \
                         MYSQL_LIBDIR=/usr/lib64/mysql
luarocks --local install luasql-mysql \
                         MYSQL_INCDIR=/usr/include/mysql \
                         MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
luarocks --local install luasql-mysql \
                         MYSQL_INCDIR=/usr/include/mysql \
                         MYSQL_LIBDIR=/usr/lib/i386-linux-gnu

luarocks --local install luasql-sqlite3
luarocks --local install lzmq
luarocks --local install redis-lua

luarocks --local install stdlib

luarocks --local install underscore.lua \
                         --from=http://github.com/irr/underscore.lua/raw/master/rocks

luarocks --local install luabitop

Copyright and License

Copyright 2012 Ivan Ribeiro Rocha

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

lua programming repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 94.2%
  • Shell 2.2%
  • Nginx 1.6%
  • ApacheConf 0.6%
  • C 0.5%
  • Python 0.3%
  • Other 0.6%