Skip to content

Instantly share code, notes, and snippets.

@aiwhj
Last active August 29, 2019 05:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aiwhj/bdc5efee2a47f356d82f216b576d5a91 to your computer and use it in GitHub Desktop.
Save aiwhj/bdc5efee2a47f356d82f216b576d5a91 to your computer and use it in GitHub Desktop.
编译 ngx_http_lua 的时候 LUAJIT_INC 和 LUAJIT_LIB 的指定问题
export LUAJIT_INC=/usr/local/Cellar/luajit/2.0.5/include/luajit-2.0/
export LUAJIT_LIB=/usr/local/Cellar/luajit/2.0.5/lib
./configure --prefix=/Users/roger/bin/nginx-1.14.2 --with-select_module --with-poll_module --with-http_geoip_module --with-debug --add-module=/Users/roger/source/nginx-1.14.2/myModule/post_handler --add-module=/Users/roger/source/nginx-1.14.2/myModule/helloWord --with-ld-opt="-Wl,-rpath,/usr/local/Cellar/luajit/2.0.5/lib" \
--add-module=/Users/roger/source/nginx-1.14.2/ngx_devel_kit \
--add-module=/Users/roger/source/nginx-1.14.2/lua-nginx-module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment