http://wiki.nginx.org/HttpLuaModule#Installation
install LuaJIT
$ brew install luajit
download ngx_devel_kit
$ cd /usr/local/src
$ git clone https://github.com/simpl/ngx_devel_kit.git
download lua-nginx-module
$ cd /usr/local/src
$ git clone https://github.com/chaoslawful/lua-nginx-module.git
add configure options (via brew edit nginx
)
--add-module=/usr/local/src/ngx_devel_kit
--add-module=/usr/local/src/lua-nginx-module
compile nginx
$ export LUAJIT_LIB=/usr/local/Cellar/luajit/2.0.0-beta10/lib
$ export LUAJIT_INC=/usr/local/Cellar/luajit/2.0.0-beta10/include/luajit-2.0
$ brew install nginx
logging
ngx.log(ngx.ERR, "foo")
$ brew reinstall nginx-full --with-lua-module --with-set-misc-module
bug Message :
==> Reinstalling homebrew/nginx/nginx-full with --with-lua-module, --with-set-misc-module
Error: wrong number of arguments (0 for 1..3)
Please report this bug:
https://git.io/brew-troubleshooting
/usr/local/Library/Homebrew/software_spec.rb:72:in
instance_eval' /usr/local/Library/Homebrew/software_spec.rb:72:in
bottle'/usr/local/Library/Homebrew/formula.rb:1543:in
bottle' /usr/local/Library/Taps/homebrew/homebrew-nginx/Formula/ngx-devel-kit.rb:8:in
class:NgxDevelKit'/usr/local/Library/Taps/homebrew/homebrew-nginx/Formula/ngx-devel-kit.rb:1:in
load_formula' /usr/local/Library/Homebrew/formulary.rb:21:in
module_eval'/usr/local/Library/Homebrew/formulary.rb:21:in
load_formula' /usr/local/Library/Homebrew/formulary.rb:34:in
load_formula_from_path'/usr/local/Library/Homebrew/formulary.rb:83:in
load_file' /usr/local/Library/Homebrew/formulary.rb:74:in
klass'/usr/local/Library/Homebrew/formulary.rb:70:in
get_formula' /usr/local/Library/Homebrew/formulary.rb:205:in
factory'/usr/local/Library/Homebrew/dependency.rb:32:in
to_formula' /usr/local/Library/Homebrew/dependency.rb:88:in
block in expand'/usr/local/Library/Homebrew/dependencies.rb:9:in
each' /usr/local/Library/Homebrew/dependencies.rb:9:in
each'/usr/local/Library/Homebrew/dependency.rb:76:in
expand' /usr/local/Library/Homebrew/dependency.rb:88:in
block in expand'/usr/local/Library/Homebrew/dependencies.rb:9:in
each' /usr/local/Library/Homebrew/dependencies.rb:9:in
each'/usr/local/Library/Homebrew/dependency.rb:76:in
expand' /usr/local/Library/Homebrew/formula.rb:1084:in
recursive_dependencies'/usr/local/Library/Homebrew/formula_installer.rb:111:in
verify_deps_exist' /usr/local/Library/Homebrew/formula_installer.rb:104:in
prelude'/usr/local/Library/Homebrew/cmd/reinstall.rb:30:in
reinstall_formula' /usr/local/Library/Homebrew/cmd/reinstall.rb:7:in
block in reinstall'/usr/local/Library/Homebrew/cmd/reinstall.rb:7:in
each' /usr/local/Library/Homebrew/cmd/reinstall.rb:7:in
reinstall'