2011-03-06 16:56:26 +00:00
|
|
|
# vi:ft=
|
|
|
|
|
|
|
|
use t::Config;
|
|
|
|
|
2011-09-23 08:45:42 +00:00
|
|
|
plan tests => 151;
|
2011-03-06 16:56:26 +00:00
|
|
|
|
|
|
|
#no_diff();
|
|
|
|
|
|
|
|
run_tests();
|
|
|
|
|
|
|
|
__DATA__
|
|
|
|
|
|
|
|
=== TEST 1: --help
|
|
|
|
--- cmd: ./configure --help
|
|
|
|
--- out
|
|
|
|
--help this message
|
|
|
|
|
|
|
|
--prefix=PATH set the installation prefix
|
|
|
|
|
2011-08-05 02:04:23 +00:00
|
|
|
--with-debug enable the debugging logging and also enable -O0 -g for gcc.
|
|
|
|
this not only affects nginx, but also other components.
|
|
|
|
|
|
|
|
--with-no-pool-patch enable the no-pool patch for debugging memory issues.
|
2011-03-06 16:56:26 +00:00
|
|
|
|
2011-09-23 08:45:42 +00:00
|
|
|
-jN pass -jN option to make while building the bundled
|
|
|
|
Lua 5.1 interpreter or LuaJIT 2.0.
|
|
|
|
|
2011-03-06 16:56:26 +00:00
|
|
|
--without-http_echo_module disable ngx_http_echo_module
|
|
|
|
--without-http_xss_module disable ngx_http_xss_module
|
2011-03-06 17:22:16 +00:00
|
|
|
--without-http_set_misc_module disable ngx_http_set_misc_module
|
2011-03-06 16:56:26 +00:00
|
|
|
--without-http_form_input_module disable ngx_http_form_input_module
|
|
|
|
--without-http_encrypted_session_module
|
|
|
|
disable ngx_http_encrypted_session_module
|
|
|
|
--without-http_lua_module disable ngx_http_lua_module
|
|
|
|
--without-http_headers_more_module disable ngx_http_headers_more_module
|
|
|
|
--without-http_srcache_module disable ngx_http_srcache_module
|
|
|
|
--without-http_array_var_module disable ngx_http_array_var_module
|
|
|
|
--without-http_memc_module disable ngx_http_memc_module
|
2011-03-10 10:15:39 +00:00
|
|
|
--without-http_redis2_module disable ngx_http_redis2_module
|
2011-03-06 16:56:26 +00:00
|
|
|
--without-http_upstream_keepalive_module
|
|
|
|
disable ngx_http_upstream_keepalive_module
|
|
|
|
--without-http_auth_request_module disable ngx_http_auth_request_module
|
|
|
|
--without-http_rds_json_module disable ngx_http_rds_json_module
|
2011-08-31 05:12:44 +00:00
|
|
|
--without-http_rds_csv_module disable ngx_http_rds_csv_module
|
2011-03-06 16:56:26 +00:00
|
|
|
--without-ngx_devel_kit_module disable ngx_devel_kit_module
|
|
|
|
--without-http_ssl_module disable ngx_http_ssl_module
|
|
|
|
|
|
|
|
--with-http_iconv_module enable ngx_http_iconv_module
|
2011-06-28 10:35:10 +00:00
|
|
|
--with-http_drizzle_module enable ngx_http_drizzle_module
|
2011-03-06 16:56:26 +00:00
|
|
|
--with-http_postgres_module enable ngx_http_postgres_module
|
2011-03-09 11:29:57 +00:00
|
|
|
|
2011-08-10 10:14:01 +00:00
|
|
|
--without-lua_cjson disable the lua-cjson library
|
2011-08-11 02:04:00 +00:00
|
|
|
--without-lua_redis_parser disable the lua-redis-parser library
|
2011-08-31 05:57:49 +00:00
|
|
|
--without-lua_rds_parser disable the lua-rds-parser library
|
2011-08-11 02:04:00 +00:00
|
|
|
|
2011-03-09 11:29:57 +00:00
|
|
|
--without-lua51 disable the bundled Lua 5.1 interpreter
|
2011-09-18 05:23:05 +00:00
|
|
|
--with-lua51=PATH specify the external installation of Lua 5.1 by PATH
|
2011-09-18 05:06:57 +00:00
|
|
|
--with-luajit enable and build LuaJIT 2.0
|
|
|
|
--with-luajit=PATH use the external LuaJIT 2.0 installation specified by PATH
|
2011-08-04 12:34:15 +00:00
|
|
|
--with-libdrizzle=DIR specify the libdrizzle 1.0 (or drizzle) installation prefix
|
|
|
|
--with-libpq=DIR specify the libpq (or postgresql) installation prefix
|
2011-08-05 07:21:58 +00:00
|
|
|
--with-pg_config=PATH specify the path of the pg_config utility
|
2011-03-06 16:56:26 +00:00
|
|
|
|
|
|
|
Options directly inherited from nginx
|
|
|
|
|
|
|
|
--sbin-path=PATH set path to the nginx binary file
|
|
|
|
--conf-path=PATH set path to the nginx.conf file
|
|
|
|
--error-log-path=PATH set path to the error log
|
|
|
|
--pid-path=PATH set path to nginx.pid file
|
|
|
|
--lock-path=PATH set path to nginx.lock file
|
|
|
|
|
|
|
|
--user=USER set non-privilege user
|
|
|
|
for the worker processes
|
|
|
|
--group=GROUP set non-privilege group
|
|
|
|
for the worker processes
|
|
|
|
|
|
|
|
--builddir=DIR set the build directory
|
|
|
|
|
|
|
|
--with-rtsig_module enable rtsig module
|
|
|
|
--with-select_module enable select module
|
|
|
|
--without-select_module disable select module
|
|
|
|
--with-poll_module enable poll module
|
|
|
|
--without-poll_module disable poll module
|
|
|
|
|
|
|
|
--with-file-aio enable file aio support
|
|
|
|
--with-ipv6 enable ipv6 support
|
|
|
|
|
|
|
|
--with-http_realip_module enable ngx_http_realip_module
|
|
|
|
--with-http_addition_module enable ngx_http_addition_module
|
|
|
|
--with-http_xslt_module enable ngx_http_xslt_module
|
|
|
|
--with-http_image_filter_module enable ngx_http_image_filter_module
|
|
|
|
--with-http_geoip_module enable ngx_http_geoip_module
|
|
|
|
--with-http_sub_module enable ngx_http_sub_module
|
|
|
|
--with-http_dav_module enable ngx_http_dav_module
|
|
|
|
--with-http_flv_module enable ngx_http_flv_module
|
|
|
|
--with-http_gzip_static_module enable ngx_http_gzip_static_module
|
|
|
|
--with-http_random_index_module enable ngx_http_random_index_module
|
|
|
|
--with-http_secure_link_module enable ngx_http_secure_link_module
|
|
|
|
--with-http_degradation_module enable ngx_http_degradation_module
|
|
|
|
--with-http_stub_status_module enable ngx_http_stub_status_module
|
|
|
|
|
|
|
|
--without-http_charset_module disable ngx_http_charset_module
|
|
|
|
--without-http_gzip_module disable ngx_http_gzip_module
|
|
|
|
--without-http_ssi_module disable ngx_http_ssi_module
|
|
|
|
--without-http_userid_module disable ngx_http_userid_module
|
|
|
|
--without-http_access_module disable ngx_http_access_module
|
|
|
|
--without-http_auth_basic_module disable ngx_http_auth_basic_module
|
|
|
|
--without-http_autoindex_module disable ngx_http_autoindex_module
|
|
|
|
--without-http_geo_module disable ngx_http_geo_module
|
|
|
|
--without-http_map_module disable ngx_http_map_module
|
|
|
|
--without-http_split_clients_module disable ngx_http_split_clients_module
|
|
|
|
--without-http_referer_module disable ngx_http_referer_module
|
|
|
|
--without-http_rewrite_module disable ngx_http_rewrite_module
|
|
|
|
--without-http_proxy_module disable ngx_http_proxy_module
|
|
|
|
--without-http_fastcgi_module disable ngx_http_fastcgi_module
|
|
|
|
--without-http_uwsgi_module disable ngx_http_uwsgi_module
|
|
|
|
--without-http_scgi_module disable ngx_http_scgi_module
|
|
|
|
--without-http_memcached_module disable ngx_http_memcached_module
|
|
|
|
--without-http_limit_zone_module disable ngx_http_limit_zone_module
|
|
|
|
--without-http_limit_req_module disable ngx_http_limit_req_module
|
|
|
|
--without-http_empty_gif_module disable ngx_http_empty_gif_module
|
|
|
|
--without-http_browser_module disable ngx_http_browser_module
|
|
|
|
--without-http_upstream_ip_hash_module
|
|
|
|
disable ngx_http_upstream_ip_hash_module
|
|
|
|
|
|
|
|
--with-http_perl_module enable ngx_http_perl_module
|
|
|
|
--with-perl_modules_path=PATH set path to the perl modules
|
|
|
|
--with-perl=PATH set path to the perl binary
|
|
|
|
|
|
|
|
--http-log-path=PATH set path to the http access log
|
|
|
|
--http-client-body-temp-path=PATH set path to the http client request body
|
|
|
|
temporary files
|
|
|
|
--http-proxy-temp-path=PATH set path to the http proxy temporary files
|
|
|
|
--http-fastcgi-temp-path=PATH set path to the http fastcgi temporary
|
|
|
|
files
|
|
|
|
--http-uwsgi-temp-path=PATH set path to the http uwsgi temporary files
|
|
|
|
--http-scgi-temp-path=PATH set path to the http scgi temporary files
|
|
|
|
|
|
|
|
--without-http disable HTTP server
|
|
|
|
--without-http-cache disable HTTP cache
|
|
|
|
|
|
|
|
--with-mail enable POP3/IMAP4/SMTP proxy module
|
|
|
|
--with-mail_ssl_module enable ngx_mail_ssl_module
|
|
|
|
--without-mail_pop3_module disable ngx_mail_pop3_module
|
|
|
|
--without-mail_imap_module disable ngx_mail_imap_module
|
|
|
|
--without-mail_smtp_module disable ngx_mail_smtp_module
|
|
|
|
|
|
|
|
--with-google_perftools_module enable ngx_google_perftools_module
|
|
|
|
--with-cpp_test_module enable ngx_cpp_test_module
|
|
|
|
|
|
|
|
--add-module=PATH enable an external module
|
|
|
|
|
|
|
|
--with-cc=PATH set path to C compiler
|
|
|
|
--with-cpp=PATH set path to C preprocessor
|
|
|
|
--with-cc-opt=OPTIONS set additional options for C compiler
|
|
|
|
--with-ld-opt=OPTIONS set additional options for linker
|
|
|
|
--with-cpu-opt=CPU build for specified CPU, the valid values:
|
|
|
|
pentium, pentiumpro, pentium3, pentium4,
|
|
|
|
athlon, opteron, sparc32, sparc64, ppc64
|
|
|
|
|
2011-08-07 03:26:41 +00:00
|
|
|
--with-make=PATH specify the default make utility to be used
|
|
|
|
|
2011-03-06 16:56:26 +00:00
|
|
|
--without-pcre disable PCRE library usage
|
|
|
|
--with-pcre force PCRE library usage
|
|
|
|
--with-pcre=DIR set path to PCRE library sources
|
|
|
|
--with-pcre-opt=OPTIONS set additional options for PCRE building
|
|
|
|
|
|
|
|
--with-md5=DIR set path to md5 library sources
|
|
|
|
--with-md5-opt=OPTIONS set additional options for md5 building
|
|
|
|
--with-md5-asm use md5 assembler sources
|
|
|
|
|
|
|
|
--with-sha1=DIR set path to sha1 library sources
|
|
|
|
--with-sha1-opt=OPTIONS set additional options for sha1 building
|
|
|
|
--with-sha1-asm use sha1 assembler sources
|
|
|
|
|
|
|
|
--with-zlib=DIR set path to zlib library sources
|
|
|
|
--with-zlib-opt=OPTIONS set additional options for zlib building
|
|
|
|
--with-zlib-asm=CPU use zlib assembler sources optimized
|
|
|
|
for specified CPU, the valid values:
|
|
|
|
pentium, pentiumpro
|
|
|
|
|
|
|
|
--with-libatomic force libatomic_ops library usage
|
|
|
|
--with-libatomic=DIR set path to libatomic_ops library sources
|
|
|
|
|
|
|
|
--with-openssl=DIR set path to OpenSSL library sources
|
|
|
|
--with-openssl-opt=OPTIONS set additional options for OpenSSL building
|
|
|
|
|
|
|
|
--dry-run dry running the configure, for testing only
|
2011-03-09 11:01:47 +00:00
|
|
|
--platform=PLATFORM forcibly specify a platform name, for testing only
|
2011-03-06 16:56:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-09-23 08:45:42 +00:00
|
|
|
|
2011-03-06 16:56:26 +00:00
|
|
|
=== TEST 2: default
|
|
|
|
--- cmd: ./configure --dry-run
|
|
|
|
--- out
|
2011-03-29 08:49:58 +00:00
|
|
|
platform: linux (linux)
|
2011-06-27 13:22:57 +00:00
|
|
|
cp -rp bundle/ build/
|
2011-03-06 16:56:26 +00:00
|
|
|
cd build
|
2011-03-06 18:19:54 +00:00
|
|
|
cd lua-5.1.4
|
2011-08-07 03:26:41 +00:00
|
|
|
gmake linux
|
|
|
|
gmake install INSTALL_TOP=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua
|
2011-03-06 18:19:54 +00:00
|
|
|
export LUA_LIB='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/lib'
|
|
|
|
export LUA_INC='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include'
|
|
|
|
cd ..
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-03-06 17:22:16 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
2011-06-27 13:22:57 +00:00
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
2011-03-06 17:22:16 +00:00
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
2011-09-23 08:45:42 +00:00
|
|
|
--add-module=../ngx_lua-0.3.1rc8 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
2011-07-12 10:32:04 +00:00
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
2011-07-08 11:23:09 +00:00
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
2011-07-23 03:55:35 +00:00
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
2011-03-06 17:22:16 +00:00
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
2011-09-21 11:05:24 +00:00
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
2011-03-06 17:22:16 +00:00
|
|
|
--with-http_ssl_module
|
2011-03-06 18:46:56 +00:00
|
|
|
cd ../..
|
2011-08-08 05:27:17 +00:00
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
2011-08-11 02:04:00 +00:00
|
|
|
|
2011-03-06 18:59:54 +00:00
|
|
|
--- makefile
|
2011-07-23 03:55:35 +00:00
|
|
|
.PHONY: all install clean
|
2011-03-06 18:59:54 +00:00
|
|
|
|
|
|
|
all:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) linux
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-03-06 18:59:54 +00:00
|
|
|
|
|
|
|
install:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-03-06 18:59:54 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
2011-03-06 16:56:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-07-26 03:56:29 +00:00
|
|
|
=== TEST 3: --with-debug (standard lua)
|
2011-03-06 17:00:50 +00:00
|
|
|
--- cmd: ./configure --with-debug --dry-run
|
|
|
|
--- out
|
2011-03-29 08:49:58 +00:00
|
|
|
platform: linux (linux)
|
2011-06-27 13:22:57 +00:00
|
|
|
cp -rp bundle/ build/
|
2011-03-06 17:00:50 +00:00
|
|
|
cd build
|
2011-03-06 18:19:54 +00:00
|
|
|
cd lua-5.1.4
|
2011-08-07 03:26:41 +00:00
|
|
|
gmake linux
|
|
|
|
gmake install INSTALL_TOP=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua
|
2011-03-06 18:19:54 +00:00
|
|
|
export LUA_LIB='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/lib'
|
|
|
|
export LUA_INC='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include'
|
|
|
|
cd ..
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-03-06 17:22:16 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
|
|
|
--with-debug \
|
2011-03-07 09:21:13 +00:00
|
|
|
--with-cc-opt='-O0' \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
2011-06-27 13:22:57 +00:00
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
2011-03-06 17:22:16 +00:00
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
2011-09-23 08:45:42 +00:00
|
|
|
--add-module=../ngx_lua-0.3.1rc8 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
2011-07-12 10:32:04 +00:00
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
2011-07-08 11:23:09 +00:00
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
2011-07-23 03:55:35 +00:00
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
2011-03-06 17:22:16 +00:00
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
2011-09-21 11:05:24 +00:00
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
2011-03-06 17:22:16 +00:00
|
|
|
--with-http_ssl_module
|
2011-03-06 18:46:56 +00:00
|
|
|
cd ../..
|
2011-08-08 05:27:17 +00:00
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
2011-08-11 02:04:00 +00:00
|
|
|
|
2011-03-06 18:59:54 +00:00
|
|
|
--- makefile
|
2011-07-23 03:55:35 +00:00
|
|
|
.PHONY: all install clean
|
2011-03-06 18:59:54 +00:00
|
|
|
|
|
|
|
all:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) linux
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CFLAGS="-g -O0 -Wall -pedantic" CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CFLAGS="-g -O0 -Wall" CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CFLAGS="-g -O0 -Wall" CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-03-06 18:59:54 +00:00
|
|
|
|
|
|
|
install:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CFLAGS="-g -O0 -Wall -pedantic" CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CFLAGS="-g -O0 -Wall" CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CFLAGS="-g -O0 -Wall" CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-03-06 18:59:54 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
2011-03-06 17:00:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== TEST 4: --with-http_ssl_module & --without-http_ssl_module
|
2011-03-06 16:56:26 +00:00
|
|
|
--- cmd: ./configure --with-http_ssl_module --without-http_ssl_module
|
|
|
|
--- out
|
2011-03-29 08:49:58 +00:00
|
|
|
platform: linux (linux)
|
2011-03-06 07:15:06 +00:00
|
|
|
|
2011-08-11 02:04:00 +00:00
|
|
|
--- err
|
|
|
|
--with-http_ssl_module conflicts with --without-http_ssl_module.
|
|
|
|
--- exit: 2
|
|
|
|
|
2011-03-06 18:19:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
=== TEST 5: --with-luajit
|
|
|
|
--- cmd: ./configure --with-luajit --dry-run
|
|
|
|
--- out
|
2011-03-29 08:49:58 +00:00
|
|
|
platform: linux (linux)
|
2011-06-27 13:22:57 +00:00
|
|
|
cp -rp bundle/ build/
|
2011-03-06 18:19:54 +00:00
|
|
|
cd build
|
2011-06-27 13:22:57 +00:00
|
|
|
cd LuaJIT-2.0.0-beta8
|
2011-08-07 03:26:41 +00:00
|
|
|
gmake TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit
|
|
|
|
gmake install TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit DESTDIR=$OPENRESTY_BUILD_DIR/luajit-root
|
2011-03-06 18:19:54 +00:00
|
|
|
export LUAJIT_LIB='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/lib'
|
|
|
|
export LUAJIT_INC='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0'
|
|
|
|
cd ..
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-03-06 18:19:54 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
2011-06-27 13:22:57 +00:00
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
2011-03-06 18:19:54 +00:00
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
2011-09-23 08:45:42 +00:00
|
|
|
--add-module=../ngx_lua-0.3.1rc8 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
2011-07-12 10:32:04 +00:00
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
2011-07-08 11:23:09 +00:00
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
2011-07-23 03:55:35 +00:00
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
2011-03-07 09:21:13 +00:00
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
2011-09-21 11:05:24 +00:00
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
2011-06-28 10:35:10 +00:00
|
|
|
--with-ld-opt='-Wl,-rpath,/usr/local/openresty/luajit/lib' \
|
2011-03-07 09:21:13 +00:00
|
|
|
--with-http_ssl_module
|
|
|
|
cd ../..
|
2011-08-08 05:27:17 +00:00
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
2011-08-11 02:04:00 +00:00
|
|
|
|
2011-03-07 09:21:13 +00:00
|
|
|
--- makefile
|
2011-07-23 03:55:35 +00:00
|
|
|
.PHONY: all install clean
|
2011-03-07 09:21:13 +00:00
|
|
|
|
|
|
|
all:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-03-07 09:21:13 +00:00
|
|
|
|
|
|
|
install:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) install TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR)
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-03-07 09:21:13 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-03-07 11:40:43 +00:00
|
|
|
=== TEST 6: --with-cc-opt
|
2011-03-07 09:21:13 +00:00
|
|
|
--- cmd: ./configure --with-luajit --with-cc-opt="-O3" --dry-run
|
|
|
|
--- out
|
2011-03-29 08:49:58 +00:00
|
|
|
platform: linux (linux)
|
2011-06-27 13:22:57 +00:00
|
|
|
cp -rp bundle/ build/
|
2011-03-07 09:21:13 +00:00
|
|
|
cd build
|
2011-06-27 13:22:57 +00:00
|
|
|
cd LuaJIT-2.0.0-beta8
|
2011-08-07 03:26:41 +00:00
|
|
|
gmake TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit
|
|
|
|
gmake install TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit DESTDIR=$OPENRESTY_BUILD_DIR/luajit-root
|
2011-03-07 09:21:13 +00:00
|
|
|
export LUAJIT_LIB='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/lib'
|
|
|
|
export LUAJIT_INC='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0'
|
|
|
|
cd ..
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-03-07 09:21:13 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
2011-07-23 03:55:35 +00:00
|
|
|
--with-cc-opt='-O3' \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
2011-06-27 13:22:57 +00:00
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
2011-03-07 09:21:13 +00:00
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
2011-09-23 08:45:42 +00:00
|
|
|
--add-module=../ngx_lua-0.3.1rc8 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
2011-07-12 10:32:04 +00:00
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
2011-07-08 11:23:09 +00:00
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
2011-07-23 03:55:35 +00:00
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
2011-03-06 18:19:54 +00:00
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
2011-09-21 11:05:24 +00:00
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
2011-06-28 10:35:10 +00:00
|
|
|
--with-ld-opt='-Wl,-rpath,/usr/local/openresty/luajit/lib' \
|
2011-03-06 18:19:54 +00:00
|
|
|
--with-http_ssl_module
|
2011-03-06 18:46:56 +00:00
|
|
|
cd ../..
|
2011-08-08 05:27:17 +00:00
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
2011-08-11 02:04:00 +00:00
|
|
|
|
2011-03-06 18:59:54 +00:00
|
|
|
--- makefile
|
2011-07-23 03:55:35 +00:00
|
|
|
.PHONY: all install clean
|
2011-03-06 18:59:54 +00:00
|
|
|
|
|
|
|
all:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-03-06 18:59:54 +00:00
|
|
|
|
|
|
|
install:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) install TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR)
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-03-06 18:59:54 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
2011-03-06 18:19:54 +00:00
|
|
|
|
2011-03-07 09:31:59 +00:00
|
|
|
|
|
|
|
|
2011-03-07 11:40:43 +00:00
|
|
|
=== TEST 7: --with-ld-opt
|
2011-03-07 09:31:59 +00:00
|
|
|
--- cmd: ./configure --with-luajit --with-ld-opt="-llua" --dry-run
|
|
|
|
--- out
|
2011-03-29 08:49:58 +00:00
|
|
|
platform: linux (linux)
|
2011-06-27 13:22:57 +00:00
|
|
|
cp -rp bundle/ build/
|
2011-03-07 09:31:59 +00:00
|
|
|
cd build
|
2011-06-27 13:22:57 +00:00
|
|
|
cd LuaJIT-2.0.0-beta8
|
2011-08-07 03:26:41 +00:00
|
|
|
gmake TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit
|
|
|
|
gmake install TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit DESTDIR=$OPENRESTY_BUILD_DIR/luajit-root
|
2011-03-07 11:32:13 +00:00
|
|
|
export LUAJIT_LIB='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/lib'
|
|
|
|
export LUAJIT_INC='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0'
|
|
|
|
cd ..
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-03-07 11:32:13 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
2011-06-27 13:22:57 +00:00
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
2011-03-07 11:40:43 +00:00
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
2011-09-23 08:45:42 +00:00
|
|
|
--add-module=../ngx_lua-0.3.1rc8 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
2011-07-12 10:32:04 +00:00
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
2011-07-08 11:23:09 +00:00
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
2011-07-23 03:55:35 +00:00
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
2011-03-07 11:40:43 +00:00
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
2011-09-21 11:05:24 +00:00
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
2011-06-28 10:35:10 +00:00
|
|
|
--with-ld-opt='-Wl,-rpath,/usr/local/openresty/luajit/lib -llua' \
|
2011-03-07 11:40:43 +00:00
|
|
|
--with-http_ssl_module
|
|
|
|
cd ../..
|
2011-08-08 05:27:17 +00:00
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
2011-08-11 02:04:00 +00:00
|
|
|
|
2011-03-07 11:40:43 +00:00
|
|
|
--- makefile
|
2011-07-23 03:55:35 +00:00
|
|
|
.PHONY: all install clean
|
2011-03-07 11:40:43 +00:00
|
|
|
|
|
|
|
all:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-03-07 11:40:43 +00:00
|
|
|
|
|
|
|
install:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) install TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR)
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-03-07 11:40:43 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-28 10:35:10 +00:00
|
|
|
=== TEST 8: --with-luajit & --without-http_lua_module
|
2011-03-07 11:40:43 +00:00
|
|
|
--- cmd: ./configure --with-luajit --without-http_lua_module --dry-run
|
|
|
|
--- out
|
2011-03-29 08:49:58 +00:00
|
|
|
platform: linux (linux)
|
2011-06-27 13:22:57 +00:00
|
|
|
cp -rp bundle/ build/
|
2011-03-07 11:40:43 +00:00
|
|
|
cd build
|
2011-06-27 13:22:57 +00:00
|
|
|
cd LuaJIT-2.0.0-beta8
|
2011-08-07 03:26:41 +00:00
|
|
|
gmake TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit
|
|
|
|
gmake install TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit DESTDIR=$OPENRESTY_BUILD_DIR/luajit-root
|
2011-03-07 11:40:43 +00:00
|
|
|
export LUAJIT_LIB='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/lib'
|
|
|
|
export LUAJIT_INC='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0'
|
|
|
|
cd ..
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-03-07 11:40:43 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
2011-06-27 13:22:57 +00:00
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
2011-03-07 11:40:43 +00:00
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
2011-07-12 10:32:04 +00:00
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
2011-07-08 11:23:09 +00:00
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
2011-07-23 03:55:35 +00:00
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
2011-03-07 11:40:43 +00:00
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
2011-09-21 11:05:24 +00:00
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
2011-03-29 08:49:58 +00:00
|
|
|
--with-ld-opt='-Wl,-rpath,/usr/local/openresty/luajit/lib' \
|
2011-03-07 11:40:43 +00:00
|
|
|
--with-http_ssl_module
|
|
|
|
cd ../..
|
2011-08-08 05:27:17 +00:00
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
2011-08-11 02:04:00 +00:00
|
|
|
|
2011-03-07 11:40:43 +00:00
|
|
|
--- makefile
|
2011-07-23 03:55:35 +00:00
|
|
|
.PHONY: all install clean
|
2011-03-07 11:40:43 +00:00
|
|
|
|
|
|
|
all:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-03-07 11:40:43 +00:00
|
|
|
|
|
|
|
install:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) install TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR)
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-03-07 11:40:43 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-28 10:35:10 +00:00
|
|
|
=== TEST 9: --without-http_lua_module
|
|
|
|
--- cmd: ./configure --without-http_lua_module --dry-run
|
2011-03-07 11:40:43 +00:00
|
|
|
--- out
|
2011-03-29 08:49:58 +00:00
|
|
|
platform: linux (linux)
|
2011-06-27 13:22:57 +00:00
|
|
|
cp -rp bundle/ build/
|
2011-03-07 11:40:43 +00:00
|
|
|
cd build
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-03-07 11:40:43 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
2011-06-27 13:22:57 +00:00
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
2011-03-07 11:32:13 +00:00
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
2011-07-12 10:32:04 +00:00
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
2011-07-08 11:23:09 +00:00
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
2011-07-23 03:55:35 +00:00
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
2011-03-07 11:32:13 +00:00
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
2011-09-21 11:05:24 +00:00
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
2011-03-07 11:32:13 +00:00
|
|
|
--with-http_ssl_module
|
|
|
|
cd ../..
|
2011-08-08 05:27:17 +00:00
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
2011-08-11 02:04:00 +00:00
|
|
|
|
2011-03-07 11:32:13 +00:00
|
|
|
--- makefile
|
2011-07-23 03:55:35 +00:00
|
|
|
.PHONY: all install clean
|
2011-03-07 11:32:13 +00:00
|
|
|
|
|
|
|
all:
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-03-07 11:32:13 +00:00
|
|
|
|
|
|
|
install:
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-03-07 11:32:13 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
2011-03-09 04:11:11 +00:00
|
|
|
|
|
|
|
|
2011-06-28 10:35:10 +00:00
|
|
|
=== TEST 10: --prefix
|
2011-03-09 04:11:11 +00:00
|
|
|
--- cmd: ./configure --prefix=/opt/blah --dry-run
|
|
|
|
--- out
|
2011-03-29 08:49:58 +00:00
|
|
|
platform: linux (linux)
|
2011-06-27 13:22:57 +00:00
|
|
|
cp -rp bundle/ build/
|
2011-03-09 04:11:11 +00:00
|
|
|
cd build
|
|
|
|
cd lua-5.1.4
|
2011-08-07 03:26:41 +00:00
|
|
|
gmake linux
|
|
|
|
gmake install INSTALL_TOP=$OPENRESTY_BUILD_DIR/lua-root/opt/blah/lua
|
2011-03-09 04:11:11 +00:00
|
|
|
export LUA_LIB='$OPENRESTY_BUILD_DIR/lua-root/opt/blah/lua/lib'
|
|
|
|
export LUA_INC='$OPENRESTY_BUILD_DIR/lua-root/opt/blah/lua/include'
|
|
|
|
cd ..
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-03-09 04:11:11 +00:00
|
|
|
./configure --prefix=/opt/blah/nginx \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
2011-06-27 13:22:57 +00:00
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
2011-03-09 04:11:11 +00:00
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
2011-09-23 08:45:42 +00:00
|
|
|
--add-module=../ngx_lua-0.3.1rc8 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
2011-07-12 10:32:04 +00:00
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
2011-07-08 11:23:09 +00:00
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
2011-07-23 03:55:35 +00:00
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
2011-03-09 04:11:11 +00:00
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
2011-09-21 11:05:24 +00:00
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
2011-03-09 04:11:11 +00:00
|
|
|
--with-http_ssl_module
|
|
|
|
cd ../..
|
2011-08-08 05:27:17 +00:00
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
2011-08-11 02:04:00 +00:00
|
|
|
|
2011-03-09 04:11:11 +00:00
|
|
|
--- makefile
|
2011-07-23 03:55:35 +00:00
|
|
|
.PHONY: all install clean
|
2011-03-09 04:11:11 +00:00
|
|
|
|
|
|
|
all:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) linux
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/opt/blah/lua/include LUA_LIB_DIR=/opt/blah/lualib CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/opt/blah/lua/include LUA_LIB_DIR=/opt/blah/lualib CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/opt/blah/lua/include LUA_LIB_DIR=/opt/blah/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-03-09 04:11:11 +00:00
|
|
|
|
|
|
|
install:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/opt/blah/lua
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/opt/blah/lua/include LUA_LIB_DIR=/opt/blah/lualib CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/opt/blah/lua/include LUA_LIB_DIR=/opt/blah/lualib CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/opt/blah/lua/include LUA_LIB_DIR=/opt/blah/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-03-09 04:11:11 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
2011-03-09 11:01:47 +00:00
|
|
|
|
|
|
|
|
2011-06-28 10:35:10 +00:00
|
|
|
=== TEST 11: --help on solaris
|
2011-03-09 11:01:47 +00:00
|
|
|
--- cmd: ./configure --help --platform=solaris
|
|
|
|
--- out
|
|
|
|
--help this message
|
|
|
|
|
|
|
|
--prefix=PATH set the installation prefix
|
|
|
|
|
2011-08-05 02:04:23 +00:00
|
|
|
--with-debug enable the debugging logging and also enable -O0 -g for gcc.
|
|
|
|
this not only affects nginx, but also other components.
|
|
|
|
|
|
|
|
--with-no-pool-patch enable the no-pool patch for debugging memory issues.
|
2011-03-09 11:01:47 +00:00
|
|
|
|
2011-09-23 08:45:42 +00:00
|
|
|
-jN pass -jN option to make while building the bundled
|
|
|
|
Lua 5.1 interpreter or LuaJIT 2.0.
|
|
|
|
|
2011-03-09 11:01:47 +00:00
|
|
|
--without-http_echo_module disable ngx_http_echo_module
|
|
|
|
--without-http_xss_module disable ngx_http_xss_module
|
|
|
|
--without-http_set_misc_module disable ngx_http_set_misc_module
|
|
|
|
--without-http_form_input_module disable ngx_http_form_input_module
|
|
|
|
--without-http_encrypted_session_module
|
|
|
|
disable ngx_http_encrypted_session_module
|
|
|
|
--without-http_lua_module disable ngx_http_lua_module
|
|
|
|
--without-http_headers_more_module disable ngx_http_headers_more_module
|
|
|
|
--without-http_srcache_module disable ngx_http_srcache_module
|
|
|
|
--without-http_array_var_module disable ngx_http_array_var_module
|
|
|
|
--without-http_memc_module disable ngx_http_memc_module
|
2011-03-10 10:15:39 +00:00
|
|
|
--without-http_redis2_module disable ngx_http_redis2_module
|
2011-03-09 11:01:47 +00:00
|
|
|
--without-http_upstream_keepalive_module
|
|
|
|
disable ngx_http_upstream_keepalive_module
|
|
|
|
--without-http_auth_request_module disable ngx_http_auth_request_module
|
|
|
|
--without-http_rds_json_module disable ngx_http_rds_json_module
|
2011-08-31 05:12:44 +00:00
|
|
|
--without-http_rds_csv_module disable ngx_http_rds_csv_module
|
2011-03-09 11:01:47 +00:00
|
|
|
--without-ngx_devel_kit_module disable ngx_devel_kit_module
|
|
|
|
--without-http_ssl_module disable ngx_http_ssl_module
|
|
|
|
|
|
|
|
--with-http_iconv_module enable ngx_http_iconv_module
|
|
|
|
--with-http_drizzle_module enable ngx_http_drizzle_module
|
|
|
|
--with-http_postgres_module enable ngx_http_postgres_module
|
2011-03-09 11:29:57 +00:00
|
|
|
|
2011-08-10 10:14:01 +00:00
|
|
|
--without-lua_cjson disable the lua-cjson library
|
2011-08-11 02:04:00 +00:00
|
|
|
--without-lua_redis_parser disable the lua-redis-parser library
|
2011-08-31 05:57:49 +00:00
|
|
|
--without-lua_rds_parser disable the lua-rds-parser library
|
2011-08-11 02:04:00 +00:00
|
|
|
|
2011-03-09 11:29:57 +00:00
|
|
|
--without-lua51 disable the bundled Lua 5.1 interpreter
|
2011-09-18 05:23:05 +00:00
|
|
|
--with-lua51=PATH specify the external installation of Lua 5.1 by PATH
|
2011-09-18 05:06:57 +00:00
|
|
|
--with-luajit enable and build LuaJIT 2.0
|
|
|
|
--with-luajit=PATH use the external LuaJIT 2.0 installation specified by PATH
|
2011-08-04 12:34:15 +00:00
|
|
|
--with-libdrizzle=DIR specify the libdrizzle 1.0 (or drizzle) installation prefix
|
|
|
|
--with-libpq=DIR specify the libpq (or postgresql) installation prefix
|
2011-08-05 07:21:58 +00:00
|
|
|
--with-pg_config=PATH specify the path of the pg_config utility
|
2011-03-09 11:01:47 +00:00
|
|
|
|
|
|
|
Options directly inherited from nginx
|
|
|
|
|
|
|
|
--sbin-path=PATH set path to the nginx binary file
|
|
|
|
--conf-path=PATH set path to the nginx.conf file
|
|
|
|
--error-log-path=PATH set path to the error log
|
|
|
|
--pid-path=PATH set path to nginx.pid file
|
|
|
|
--lock-path=PATH set path to nginx.lock file
|
|
|
|
|
|
|
|
--user=USER set non-privilege user
|
|
|
|
for the worker processes
|
|
|
|
--group=GROUP set non-privilege group
|
|
|
|
for the worker processes
|
|
|
|
|
|
|
|
--builddir=DIR set the build directory
|
|
|
|
|
|
|
|
--with-rtsig_module enable rtsig module
|
|
|
|
--with-select_module enable select module
|
|
|
|
--without-select_module disable select module
|
|
|
|
--with-poll_module enable poll module
|
|
|
|
--without-poll_module disable poll module
|
|
|
|
|
|
|
|
--with-file-aio enable file aio support
|
|
|
|
--with-ipv6 enable ipv6 support
|
|
|
|
|
|
|
|
--with-http_realip_module enable ngx_http_realip_module
|
|
|
|
--with-http_addition_module enable ngx_http_addition_module
|
|
|
|
--with-http_xslt_module enable ngx_http_xslt_module
|
|
|
|
--with-http_image_filter_module enable ngx_http_image_filter_module
|
|
|
|
--with-http_geoip_module enable ngx_http_geoip_module
|
|
|
|
--with-http_sub_module enable ngx_http_sub_module
|
|
|
|
--with-http_dav_module enable ngx_http_dav_module
|
|
|
|
--with-http_flv_module enable ngx_http_flv_module
|
|
|
|
--with-http_gzip_static_module enable ngx_http_gzip_static_module
|
|
|
|
--with-http_random_index_module enable ngx_http_random_index_module
|
|
|
|
--with-http_secure_link_module enable ngx_http_secure_link_module
|
|
|
|
--with-http_degradation_module enable ngx_http_degradation_module
|
|
|
|
--with-http_stub_status_module enable ngx_http_stub_status_module
|
|
|
|
|
|
|
|
--without-http_charset_module disable ngx_http_charset_module
|
|
|
|
--without-http_gzip_module disable ngx_http_gzip_module
|
|
|
|
--without-http_ssi_module disable ngx_http_ssi_module
|
|
|
|
--without-http_userid_module disable ngx_http_userid_module
|
|
|
|
--without-http_access_module disable ngx_http_access_module
|
|
|
|
--without-http_auth_basic_module disable ngx_http_auth_basic_module
|
|
|
|
--without-http_autoindex_module disable ngx_http_autoindex_module
|
|
|
|
--without-http_geo_module disable ngx_http_geo_module
|
|
|
|
--without-http_map_module disable ngx_http_map_module
|
|
|
|
--without-http_split_clients_module disable ngx_http_split_clients_module
|
|
|
|
--without-http_referer_module disable ngx_http_referer_module
|
|
|
|
--without-http_rewrite_module disable ngx_http_rewrite_module
|
|
|
|
--without-http_proxy_module disable ngx_http_proxy_module
|
|
|
|
--without-http_fastcgi_module disable ngx_http_fastcgi_module
|
|
|
|
--without-http_uwsgi_module disable ngx_http_uwsgi_module
|
|
|
|
--without-http_scgi_module disable ngx_http_scgi_module
|
|
|
|
--without-http_memcached_module disable ngx_http_memcached_module
|
|
|
|
--without-http_limit_zone_module disable ngx_http_limit_zone_module
|
|
|
|
--without-http_limit_req_module disable ngx_http_limit_req_module
|
|
|
|
--without-http_empty_gif_module disable ngx_http_empty_gif_module
|
|
|
|
--without-http_browser_module disable ngx_http_browser_module
|
|
|
|
--without-http_upstream_ip_hash_module
|
|
|
|
disable ngx_http_upstream_ip_hash_module
|
|
|
|
|
|
|
|
--with-http_perl_module enable ngx_http_perl_module
|
|
|
|
--with-perl_modules_path=PATH set path to the perl modules
|
|
|
|
--with-perl=PATH set path to the perl binary
|
|
|
|
|
|
|
|
--http-log-path=PATH set path to the http access log
|
|
|
|
--http-client-body-temp-path=PATH set path to the http client request body
|
|
|
|
temporary files
|
|
|
|
--http-proxy-temp-path=PATH set path to the http proxy temporary files
|
|
|
|
--http-fastcgi-temp-path=PATH set path to the http fastcgi temporary
|
|
|
|
files
|
|
|
|
--http-uwsgi-temp-path=PATH set path to the http uwsgi temporary files
|
|
|
|
--http-scgi-temp-path=PATH set path to the http scgi temporary files
|
|
|
|
|
|
|
|
--without-http disable HTTP server
|
|
|
|
--without-http-cache disable HTTP cache
|
|
|
|
|
|
|
|
--with-mail enable POP3/IMAP4/SMTP proxy module
|
|
|
|
--with-mail_ssl_module enable ngx_mail_ssl_module
|
|
|
|
--without-mail_pop3_module disable ngx_mail_pop3_module
|
|
|
|
--without-mail_imap_module disable ngx_mail_imap_module
|
|
|
|
--without-mail_smtp_module disable ngx_mail_smtp_module
|
|
|
|
|
|
|
|
--with-google_perftools_module enable ngx_google_perftools_module
|
|
|
|
--with-cpp_test_module enable ngx_cpp_test_module
|
|
|
|
|
|
|
|
--add-module=PATH enable an external module
|
|
|
|
|
|
|
|
--with-cc=PATH set path to C compiler
|
|
|
|
--with-cpp=PATH set path to C preprocessor
|
|
|
|
--with-cc-opt=OPTIONS set additional options for C compiler
|
|
|
|
--with-ld-opt=OPTIONS set additional options for linker
|
|
|
|
--with-cpu-opt=CPU build for specified CPU, the valid values:
|
|
|
|
pentium, pentiumpro, pentium3, pentium4,
|
|
|
|
athlon, opteron, sparc32, sparc64, ppc64
|
|
|
|
|
2011-08-07 03:26:41 +00:00
|
|
|
--with-make=PATH specify the default make utility to be used
|
|
|
|
|
2011-03-09 11:01:47 +00:00
|
|
|
--without-pcre disable PCRE library usage
|
|
|
|
--with-pcre force PCRE library usage
|
|
|
|
--with-pcre=DIR set path to PCRE library sources
|
|
|
|
--with-pcre-opt=OPTIONS set additional options for PCRE building
|
|
|
|
|
|
|
|
--with-md5=DIR set path to md5 library sources
|
|
|
|
--with-md5-opt=OPTIONS set additional options for md5 building
|
|
|
|
--with-md5-asm use md5 assembler sources
|
|
|
|
|
|
|
|
--with-sha1=DIR set path to sha1 library sources
|
|
|
|
--with-sha1-opt=OPTIONS set additional options for sha1 building
|
|
|
|
--with-sha1-asm use sha1 assembler sources
|
|
|
|
|
|
|
|
--with-zlib=DIR set path to zlib library sources
|
|
|
|
--with-zlib-opt=OPTIONS set additional options for zlib building
|
|
|
|
--with-zlib-asm=CPU use zlib assembler sources optimized
|
|
|
|
for specified CPU, the valid values:
|
|
|
|
pentium, pentiumpro
|
|
|
|
|
|
|
|
--with-libatomic force libatomic_ops library usage
|
|
|
|
--with-libatomic=DIR set path to libatomic_ops library sources
|
|
|
|
|
|
|
|
--with-openssl=DIR set path to OpenSSL library sources
|
|
|
|
--with-openssl-opt=OPTIONS set additional options for OpenSSL building
|
|
|
|
|
|
|
|
--dry-run dry running the configure, for testing only
|
|
|
|
--platform=PLATFORM forcibly specify a platform name, for testing only
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-09-23 08:45:42 +00:00
|
|
|
|
2011-06-28 10:35:10 +00:00
|
|
|
=== TEST 12: default on solaris
|
2011-03-09 11:01:47 +00:00
|
|
|
--- cmd: ./configure --dry-run --platform=solaris
|
|
|
|
--- out
|
2011-03-29 08:49:58 +00:00
|
|
|
platform: solaris (solaris)
|
2011-06-27 13:22:57 +00:00
|
|
|
cp -rp bundle/ build/
|
2011-03-09 11:01:47 +00:00
|
|
|
cd build
|
|
|
|
cd lua-5.1.4
|
2011-08-07 03:26:41 +00:00
|
|
|
gmake solaris
|
|
|
|
gmake install INSTALL_TOP=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua
|
2011-03-09 11:01:47 +00:00
|
|
|
export LUA_LIB='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/lib'
|
|
|
|
export LUA_INC='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include'
|
|
|
|
cd ..
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-03-09 11:01:47 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
2011-06-27 13:22:57 +00:00
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
2011-03-09 11:01:47 +00:00
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
2011-09-23 08:45:42 +00:00
|
|
|
--add-module=../ngx_lua-0.3.1rc8 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
2011-07-12 10:32:04 +00:00
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
2011-07-08 11:23:09 +00:00
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
2011-07-23 03:55:35 +00:00
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
2011-03-09 11:01:47 +00:00
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
2011-09-21 11:05:24 +00:00
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
2011-03-09 11:01:47 +00:00
|
|
|
--with-http_ssl_module
|
|
|
|
cd ../..
|
2011-08-08 05:27:17 +00:00
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
2011-08-11 02:04:00 +00:00
|
|
|
|
2011-03-09 11:01:47 +00:00
|
|
|
--- makefile
|
2011-07-23 03:55:35 +00:00
|
|
|
.PHONY: all install clean
|
2011-03-09 11:01:47 +00:00
|
|
|
|
|
|
|
all:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) solaris
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CFLAGS="-g -O3 -Wall -pedantic -DMISSING_ISINF" CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-03-09 11:01:47 +00:00
|
|
|
|
|
|
|
install:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CFLAGS="-g -O3 -Wall -pedantic -DMISSING_ISINF" CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-03-09 11:01:47 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
|
|
|
|
2011-03-09 11:29:57 +00:00
|
|
|
|
2011-06-28 10:35:10 +00:00
|
|
|
=== TEST 13: --with-http_drizzle_module on solaris
|
2011-03-09 11:01:47 +00:00
|
|
|
--- cmd: ./configure --with-http_drizzle_module --dry-run --platform=solaris
|
|
|
|
--- out
|
2011-03-29 08:49:58 +00:00
|
|
|
platform: solaris (solaris)
|
2011-06-27 13:22:57 +00:00
|
|
|
cp -rp bundle/ build/
|
2011-03-09 11:01:47 +00:00
|
|
|
cd build
|
|
|
|
cd lua-5.1.4
|
2011-08-07 03:26:41 +00:00
|
|
|
gmake solaris
|
|
|
|
gmake install INSTALL_TOP=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua
|
2011-03-09 11:01:47 +00:00
|
|
|
export LUA_LIB='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/lib'
|
|
|
|
export LUA_INC='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include'
|
|
|
|
cd ..
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-03-09 11:01:47 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
2011-06-27 13:22:57 +00:00
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
2011-03-09 11:01:47 +00:00
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../drizzle-nginx-module-0.1.1 \
|
2011-09-23 08:45:42 +00:00
|
|
|
--add-module=../ngx_lua-0.3.1rc8 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
2011-07-12 10:32:04 +00:00
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
2011-07-08 11:23:09 +00:00
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
2011-07-23 03:55:35 +00:00
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
2011-03-09 11:01:47 +00:00
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
2011-09-21 11:05:24 +00:00
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
2011-03-09 11:01:47 +00:00
|
|
|
--with-http_ssl_module
|
|
|
|
cd ../..
|
2011-08-08 05:27:17 +00:00
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
2011-08-11 02:04:00 +00:00
|
|
|
|
2011-03-09 11:01:47 +00:00
|
|
|
--- makefile
|
2011-07-23 03:55:35 +00:00
|
|
|
.PHONY: all install clean
|
2011-03-09 11:01:47 +00:00
|
|
|
|
|
|
|
all:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) solaris
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CFLAGS="-g -O3 -Wall -pedantic -DMISSING_ISINF" CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-03-09 11:29:57 +00:00
|
|
|
|
|
|
|
install:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CFLAGS="-g -O3 -Wall -pedantic -DMISSING_ISINF" CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-03-09 11:29:57 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-28 10:35:10 +00:00
|
|
|
=== TEST 14: --with-http_drizzle_module on Solaris
|
2011-03-09 13:06:07 +00:00
|
|
|
--- cmd: ./configure --with-http_drizzle_module --dry-run --platform=solaris
|
2011-03-09 11:29:57 +00:00
|
|
|
--- out
|
2011-03-29 08:49:58 +00:00
|
|
|
platform: solaris (solaris)
|
2011-06-27 13:22:57 +00:00
|
|
|
cp -rp bundle/ build/
|
2011-03-09 11:29:57 +00:00
|
|
|
cd build
|
|
|
|
cd lua-5.1.4
|
2011-08-07 03:26:41 +00:00
|
|
|
gmake solaris
|
|
|
|
gmake install INSTALL_TOP=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua
|
2011-03-09 11:29:57 +00:00
|
|
|
export LUA_LIB='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/lib'
|
|
|
|
export LUA_INC='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include'
|
|
|
|
cd ..
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-03-09 11:29:57 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
2011-06-27 13:22:57 +00:00
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
2011-03-09 11:29:57 +00:00
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../drizzle-nginx-module-0.1.1 \
|
2011-09-23 08:45:42 +00:00
|
|
|
--add-module=../ngx_lua-0.3.1rc8 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
2011-07-12 10:32:04 +00:00
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
2011-07-08 11:23:09 +00:00
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
2011-07-23 03:55:35 +00:00
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
2011-03-09 11:29:57 +00:00
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
2011-09-21 11:05:24 +00:00
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
2011-03-09 13:06:07 +00:00
|
|
|
--with-http_ssl_module
|
2011-03-09 11:29:57 +00:00
|
|
|
cd ../..
|
2011-08-08 05:27:17 +00:00
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
2011-08-11 02:04:00 +00:00
|
|
|
|
2011-03-09 11:29:57 +00:00
|
|
|
--- makefile
|
2011-07-23 03:55:35 +00:00
|
|
|
.PHONY: all install clean
|
2011-03-09 11:29:57 +00:00
|
|
|
|
|
|
|
all:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) solaris
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CFLAGS="-g -O3 -Wall -pedantic -DMISSING_ISINF" CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-03-09 11:01:47 +00:00
|
|
|
|
|
|
|
install:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CFLAGS="-g -O3 -Wall -pedantic -DMISSING_ISINF" CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-03-09 11:01:47 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
2011-06-28 10:56:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
=== TEST 15: ngx_drizzle not enabled but specify --with-libdrizzle
|
|
|
|
--- cmd: ./configure --with-libdrizzle=/opt/drizzle --dry-run
|
|
|
|
--- out
|
|
|
|
platform: linux (linux)
|
2011-08-11 02:04:00 +00:00
|
|
|
|
2011-06-28 10:56:37 +00:00
|
|
|
--- err
|
|
|
|
The http_drizzle_module is not enabled while --with-libdrizzle is specified.
|
2011-08-07 03:26:41 +00:00
|
|
|
--- exit: 2
|
2011-06-28 10:56:37 +00:00
|
|
|
|
|
|
|
|
2011-07-23 04:37:44 +00:00
|
|
|
|
2011-06-28 10:56:37 +00:00
|
|
|
=== TEST 16: ngx_drizzle enabled and --with-libdrizzle is specified
|
|
|
|
--- cmd: ./configure --with-libdrizzle=/opt/drizzle --with-http_drizzle_module --dry-run
|
|
|
|
--- out
|
|
|
|
platform: linux (linux)
|
|
|
|
cp -rp bundle/ build/
|
|
|
|
cd build
|
|
|
|
export LIBDRIZZLE_LIB='/opt/drizzle/lib'
|
|
|
|
export LIBDRIZZLE_INC='/opt/drizzle/include/libdrizzle-1.0'
|
|
|
|
cd lua-5.1.4
|
2011-08-07 03:26:41 +00:00
|
|
|
gmake linux
|
|
|
|
gmake install INSTALL_TOP=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua
|
2011-08-04 12:34:15 +00:00
|
|
|
export LUA_LIB='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/lib'
|
|
|
|
export LUA_INC='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include'
|
2011-06-28 10:56:37 +00:00
|
|
|
cd ..
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-06-28 10:56:37 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
2011-06-28 10:56:37 +00:00
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
2011-06-28 10:56:37 +00:00
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../drizzle-nginx-module-0.1.1 \
|
2011-09-23 08:45:42 +00:00
|
|
|
--add-module=../ngx_lua-0.3.1rc8 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
2011-07-12 10:32:04 +00:00
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
2011-07-08 11:23:09 +00:00
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
2011-07-23 03:55:35 +00:00
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
2011-06-28 10:56:37 +00:00
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
2011-09-21 11:05:24 +00:00
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
2011-06-28 10:56:37 +00:00
|
|
|
--with-ld-opt='-Wl,-rpath,/opt/drizzle/lib' \
|
|
|
|
--with-http_ssl_module
|
|
|
|
cd ../..
|
2011-08-08 05:27:17 +00:00
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
2011-08-11 02:04:00 +00:00
|
|
|
|
2011-06-28 10:56:37 +00:00
|
|
|
--- makefile
|
2011-07-23 03:55:35 +00:00
|
|
|
.PHONY: all install clean
|
2011-06-28 10:56:37 +00:00
|
|
|
|
|
|
|
all:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) linux
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-06-28 10:56:37 +00:00
|
|
|
|
|
|
|
install:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-06-28 10:56:37 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
2011-07-23 04:37:44 +00:00
|
|
|
|
|
|
|
|
2011-08-10 09:48:02 +00:00
|
|
|
=== TEST 17: --with-cc on Solaris
|
2011-07-23 04:37:44 +00:00
|
|
|
--- cmd: ./configure --with-cc=gcc-4.2 --dry-run --platform=solaris
|
|
|
|
--- out
|
|
|
|
platform: solaris (solaris)
|
|
|
|
cp -rp bundle/ build/
|
|
|
|
cd build
|
|
|
|
cd lua-5.1.4
|
2011-08-07 03:26:41 +00:00
|
|
|
gmake CC=gcc-4.2 solaris
|
|
|
|
gmake install CC=gcc-4.2 INSTALL_TOP=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua
|
2011-07-23 04:37:44 +00:00
|
|
|
export LUA_LIB='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/lib'
|
|
|
|
export LUA_INC='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include'
|
|
|
|
cd ..
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-07-23 04:37:44 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
2011-07-23 04:37:44 +00:00
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
2011-07-23 04:37:44 +00:00
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
2011-09-23 08:45:42 +00:00
|
|
|
--add-module=../ngx_lua-0.3.1rc8 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
2011-07-23 04:37:44 +00:00
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
2011-07-23 04:37:44 +00:00
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
2011-09-21 11:05:24 +00:00
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
2011-07-23 04:37:44 +00:00
|
|
|
--with-cc=gcc-4.2 --with-http_ssl_module
|
|
|
|
cd ../..
|
2011-08-08 05:27:17 +00:00
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
2011-08-11 02:04:00 +00:00
|
|
|
|
2011-07-23 04:37:44 +00:00
|
|
|
--- makefile
|
|
|
|
.PHONY: all install clean
|
|
|
|
|
|
|
|
all:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) CC=gcc-4.2 solaris
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CFLAGS="-g -O3 -Wall -pedantic -DMISSING_ISINF" CC=gcc-4.2
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CC=gcc-4.2
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CC=gcc-4.2
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-07-23 04:37:44 +00:00
|
|
|
|
|
|
|
install:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install CC=gcc-4.2 INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CFLAGS="-g -O3 -Wall -pedantic -DMISSING_ISINF" CC=gcc-4.2
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CC=gcc-4.2
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CC=gcc-4.2
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-07-23 04:37:44 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
2011-07-26 03:56:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
=== TEST 18: --with-debug & luajit
|
|
|
|
--- cmd: ./configure --with-luajit --with-debug --dry-run
|
|
|
|
--- out
|
|
|
|
platform: linux (linux)
|
|
|
|
cp -rp bundle/ build/
|
|
|
|
cd build
|
|
|
|
cd LuaJIT-2.0.0-beta8
|
2011-08-07 03:26:41 +00:00
|
|
|
gmake CCDEBUG=-g Q= PREFIX=/usr/local/openresty/luajit
|
|
|
|
gmake install CCDEBUG=-g Q= PREFIX=/usr/local/openresty/luajit DESTDIR=$OPENRESTY_BUILD_DIR/luajit-root
|
2011-07-26 03:56:29 +00:00
|
|
|
export LUAJIT_LIB='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/lib'
|
|
|
|
export LUAJIT_INC='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0'
|
|
|
|
cd ..
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-07-26 03:56:29 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
|
|
|
--with-debug \
|
|
|
|
--with-cc-opt='-O0' \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
2011-09-23 08:45:42 +00:00
|
|
|
--add-module=../ngx_lua-0.3.1rc8 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
2011-09-21 11:05:24 +00:00
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
2011-07-26 03:56:29 +00:00
|
|
|
--with-ld-opt='-Wl,-rpath,/usr/local/openresty/luajit/lib' \
|
|
|
|
--with-http_ssl_module
|
|
|
|
cd ../..
|
2011-08-08 05:27:17 +00:00
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
2011-08-11 02:04:00 +00:00
|
|
|
|
2011-07-26 03:56:29 +00:00
|
|
|
--- makefile
|
|
|
|
.PHONY: all install clean
|
|
|
|
|
|
|
|
all:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) CCDEBUG=-g Q= PREFIX=/usr/local/openresty/luajit
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CFLAGS="-g -O0 -Wall -pedantic" CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CFLAGS="-g -O0 -Wall" CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CFLAGS="-g -O0 -Wall" CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-07-26 03:56:29 +00:00
|
|
|
|
|
|
|
install:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) install CCDEBUG=-g Q= PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR)
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CFLAGS="-g -O0 -Wall -pedantic" CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CFLAGS="-g -O0 -Wall" CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CFLAGS="-g -O0 -Wall" CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-07-26 04:19:15 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== TEST 19: --with-debug & luajit & --with-cc=cl
|
|
|
|
--- cmd: ./configure --with-luajit --with-debug --dry-run --with-cc=cl
|
|
|
|
--- out
|
|
|
|
platform: linux (linux)
|
|
|
|
cp -rp bundle/ build/
|
|
|
|
cd build
|
|
|
|
cd LuaJIT-2.0.0-beta8
|
2011-08-07 03:26:41 +00:00
|
|
|
gmake CCDEBUG=-g Q= CC=cl PREFIX=/usr/local/openresty/luajit
|
|
|
|
gmake install CCDEBUG=-g Q= CC=cl PREFIX=/usr/local/openresty/luajit DESTDIR=$OPENRESTY_BUILD_DIR/luajit-root
|
2011-07-26 04:19:15 +00:00
|
|
|
export LUAJIT_LIB='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/lib'
|
|
|
|
export LUAJIT_INC='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0'
|
|
|
|
cd ..
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-07-26 04:19:15 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
|
|
|
--with-debug \
|
|
|
|
--with-cc-opt='-O0' \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
2011-07-26 04:19:15 +00:00
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
2011-07-26 04:19:15 +00:00
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
2011-09-23 08:45:42 +00:00
|
|
|
--add-module=../ngx_lua-0.3.1rc8 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
2011-07-26 04:19:15 +00:00
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
2011-09-21 11:05:24 +00:00
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
2011-07-26 04:19:15 +00:00
|
|
|
--with-ld-opt='-Wl,-rpath,/usr/local/openresty/luajit/lib' \
|
|
|
|
--with-cc=cl --with-http_ssl_module
|
|
|
|
cd ../..
|
2011-08-08 05:27:17 +00:00
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
2011-08-11 02:04:00 +00:00
|
|
|
|
2011-07-26 04:19:15 +00:00
|
|
|
--- makefile
|
|
|
|
.PHONY: all install clean
|
|
|
|
|
|
|
|
all:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) CCDEBUG=-g Q= CC=cl PREFIX=/usr/local/openresty/luajit
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CFLAGS="-g -O0 -Wall -pedantic" CC=cl
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CFLAGS="-g -O0 -Wall" CC=cl
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CFLAGS="-g -O0 -Wall" CC=cl
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-07-26 04:19:15 +00:00
|
|
|
|
|
|
|
install:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) install CCDEBUG=-g Q= CC=cl PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR)
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CFLAGS="-g -O0 -Wall -pedantic" CC=cl
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CFLAGS="-g -O0 -Wall" CC=cl
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CFLAGS="-g -O0 -Wall" CC=cl
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-07-26 03:56:29 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
2011-08-04 12:34:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
=== TEST 20: ngx_postgres not enabled but specify --with-libpq
|
|
|
|
--- cmd: ./configure --with-libpq=/opt/postgres --dry-run
|
|
|
|
--- out
|
|
|
|
platform: linux (linux)
|
2011-08-11 02:04:00 +00:00
|
|
|
|
2011-08-04 12:34:15 +00:00
|
|
|
--- err
|
|
|
|
The http_postgres_module is not enabled while --with-libpq is specified.
|
2011-08-07 03:26:41 +00:00
|
|
|
--- exit: 2
|
2011-08-04 12:34:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== TEST 21: ngx_postgres enabled and --with-libpq is specified
|
|
|
|
--- cmd: ./configure --with-libpq=/opt/postgres --with-http_postgres_module --dry-run
|
|
|
|
--- out
|
|
|
|
platform: linux (linux)
|
|
|
|
cp -rp bundle/ build/
|
|
|
|
cd build
|
|
|
|
export LIBPQ_LIB='/opt/postgres/lib'
|
|
|
|
export LIBPQ_INC='/opt/postgres/include'
|
|
|
|
cd lua-5.1.4
|
2011-08-07 03:26:41 +00:00
|
|
|
gmake linux
|
|
|
|
gmake install INSTALL_TOP=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua
|
2011-08-04 12:34:15 +00:00
|
|
|
export LUA_LIB='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/lib'
|
|
|
|
export LUA_INC='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include'
|
|
|
|
cd ..
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-08-04 12:34:15 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
|
|
|
--add-module=../ngx_postgres-0.9rc1 \
|
2011-09-23 08:45:42 +00:00
|
|
|
--add-module=../ngx_lua-0.3.1rc8 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
2011-09-21 11:05:24 +00:00
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
2011-08-04 12:34:15 +00:00
|
|
|
--with-ld-opt='-Wl,-rpath,/opt/postgres/lib' \
|
|
|
|
--with-http_ssl_module
|
|
|
|
cd ../..
|
2011-08-08 05:27:17 +00:00
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
2011-08-11 02:04:00 +00:00
|
|
|
|
2011-08-04 12:34:15 +00:00
|
|
|
--- makefile
|
|
|
|
.PHONY: all install clean
|
|
|
|
|
|
|
|
all:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) linux
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-08-04 12:34:15 +00:00
|
|
|
|
|
|
|
install:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-08-04 12:34:15 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== TEST 22: with iconv
|
|
|
|
--- cmd: ./configure --with-http_iconv_module --dry-run
|
|
|
|
--- out
|
|
|
|
platform: linux (linux)
|
|
|
|
cp -rp bundle/ build/
|
|
|
|
cd build
|
|
|
|
cd lua-5.1.4
|
2011-08-07 03:26:41 +00:00
|
|
|
gmake linux
|
|
|
|
gmake install INSTALL_TOP=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua
|
2011-08-04 12:34:15 +00:00
|
|
|
export LUA_LIB='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/lib'
|
|
|
|
export LUA_INC='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include'
|
|
|
|
cd ..
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-08-04 12:34:15 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
|
|
|
--add-module=../iconv-nginx-module-0.10rc4 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
2011-09-23 08:45:42 +00:00
|
|
|
--add-module=../ngx_lua-0.3.1rc8 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
2011-08-04 12:34:15 +00:00
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
2011-09-21 11:05:24 +00:00
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
2011-08-04 12:34:15 +00:00
|
|
|
--with-http_ssl_module
|
|
|
|
cd ../..
|
2011-08-08 05:27:17 +00:00
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
2011-08-11 02:04:00 +00:00
|
|
|
|
2011-08-04 12:34:15 +00:00
|
|
|
--- makefile
|
|
|
|
.PHONY: all install clean
|
|
|
|
|
|
|
|
all:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) linux
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-08-04 12:34:15 +00:00
|
|
|
|
|
|
|
install:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-08-04 12:34:15 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
|
|
|
|
2011-08-05 07:21:58 +00:00
|
|
|
|
|
|
|
=== TEST 23: --with-libpq & --with-pg_config
|
|
|
|
--- cmd: ./configure --with-libpq=/foo/bar --with-pg_config=/baz
|
2011-08-11 02:04:00 +00:00
|
|
|
--- out
|
|
|
|
|
2011-08-05 07:21:58 +00:00
|
|
|
--- err
|
|
|
|
--with-pg_config is not allowed when --with-libpq is already specified.
|
2011-08-11 02:04:00 +00:00
|
|
|
--- exit: 9
|
2011-08-05 07:21:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== TEST 24: --with-pg_config & --with-libpq
|
|
|
|
--- cmd: ./configure --with-pg_config=/baz --with-libpq=/foo/bar
|
2011-08-11 02:04:00 +00:00
|
|
|
--- out
|
|
|
|
|
2011-08-05 07:21:58 +00:00
|
|
|
--- err
|
|
|
|
--with-libpq is not allowed when --with-pg_config is already specified.
|
2011-08-11 02:04:00 +00:00
|
|
|
--- exit: 9
|
2011-08-05 07:21:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== TEST 25: ngx_postgres enabled and --with-pg_config is specified
|
|
|
|
--- cmd: ./configure --with-pg_config=pg_config --with-http_postgres_module --dry-run
|
|
|
|
--- out
|
|
|
|
platform: linux (linux)
|
|
|
|
cp -rp bundle/ build/
|
|
|
|
cd build
|
|
|
|
export LIBPQ_LIB='/usr/lib64'
|
|
|
|
export LIBPQ_INC='/usr/include'
|
|
|
|
cd lua-5.1.4
|
2011-08-07 03:26:41 +00:00
|
|
|
gmake linux
|
|
|
|
gmake install INSTALL_TOP=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua
|
2011-08-05 07:21:58 +00:00
|
|
|
export LUA_LIB='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/lib'
|
|
|
|
export LUA_INC='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include'
|
|
|
|
cd ..
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-08-05 07:21:58 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
2011-08-05 07:21:58 +00:00
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
|
|
|
--add-module=../ngx_postgres-0.9rc1 \
|
2011-09-23 08:45:42 +00:00
|
|
|
--add-module=../ngx_lua-0.3.1rc8 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
2011-08-05 07:21:58 +00:00
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
2011-09-21 11:05:24 +00:00
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
2011-08-05 07:21:58 +00:00
|
|
|
--with-ld-opt='-Wl,-rpath,/usr/lib64' \
|
|
|
|
--with-http_ssl_module
|
|
|
|
cd ../..
|
2011-08-08 05:27:17 +00:00
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
2011-08-11 02:04:00 +00:00
|
|
|
|
2011-08-05 07:21:58 +00:00
|
|
|
--- makefile
|
|
|
|
.PHONY: all install clean
|
|
|
|
|
|
|
|
all:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) linux
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-08-05 07:21:58 +00:00
|
|
|
|
|
|
|
install:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-08-05 07:21:58 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== TEST 26: ngx_postgres not enabled but specify --with-pg_config
|
|
|
|
--- cmd: ./configure --with-pg_config=pg_config --dry-run
|
|
|
|
--- out
|
|
|
|
platform: linux (linux)
|
2011-08-11 02:04:00 +00:00
|
|
|
|
2011-08-05 07:21:58 +00:00
|
|
|
--- err
|
|
|
|
The http_postgres_module is not enabled while --with-pg_config is specified.
|
2011-08-07 03:26:41 +00:00
|
|
|
--- exit: 2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== TEST 27: --with-make option
|
|
|
|
--- cmd: ./configure --with-make=make --dry-run
|
|
|
|
--- out
|
|
|
|
platform: linux (linux)
|
|
|
|
cp -rp bundle/ build/
|
|
|
|
cd build
|
|
|
|
cd lua-5.1.4
|
|
|
|
make linux
|
2011-08-08 05:27:17 +00:00
|
|
|
make install INSTALL_TOP=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua
|
|
|
|
export LUA_LIB='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/lib'
|
|
|
|
export LUA_INC='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include'
|
2011-08-07 03:26:41 +00:00
|
|
|
cd ..
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-08-07 03:26:41 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
2011-08-07 03:26:41 +00:00
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
2011-09-23 08:45:42 +00:00
|
|
|
--add-module=../ngx_lua-0.3.1rc8 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
2011-08-07 03:26:41 +00:00
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
2011-09-21 11:05:24 +00:00
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
2011-08-07 03:26:41 +00:00
|
|
|
--with-http_ssl_module
|
|
|
|
cd ../..
|
2011-08-08 05:27:17 +00:00
|
|
|
Type the following commands to build and install:
|
|
|
|
make
|
|
|
|
make install
|
2011-08-11 02:04:00 +00:00
|
|
|
|
2011-08-07 03:26:41 +00:00
|
|
|
--- makefile
|
|
|
|
.PHONY: all install clean
|
|
|
|
|
|
|
|
all:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) linux
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-08-07 03:26:41 +00:00
|
|
|
|
|
|
|
install:
|
2011-08-08 01:27:06 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-08-07 03:26:41 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
2011-08-05 07:21:58 +00:00
|
|
|
|
2011-08-08 08:08:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
=== TEST 28: --with-luajit on Solaris
|
|
|
|
--- cmd: ./configure --with-luajit --dry-run --platform=solaris
|
|
|
|
--- out
|
|
|
|
platform: solaris (solaris)
|
|
|
|
cp -rp bundle/ build/
|
|
|
|
cd build
|
|
|
|
cd LuaJIT-2.0.0-beta8
|
|
|
|
gmake TARGET_STRIP=@: INSTALL_X='$OPENRESTY_BUILD_DIR/install -m 0755' INSTALL_F='$OPENRESTY_BUILD_DIR/install -m 0644' PREFIX=/usr/local/openresty/luajit
|
|
|
|
gmake install TARGET_STRIP=@: INSTALL_X='$OPENRESTY_BUILD_DIR/install -m 0755' INSTALL_F='$OPENRESTY_BUILD_DIR/install -m 0644' PREFIX=/usr/local/openresty/luajit DESTDIR=$OPENRESTY_BUILD_DIR/luajit-root
|
|
|
|
export LUAJIT_LIB='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/lib'
|
|
|
|
export LUAJIT_INC='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0'
|
|
|
|
cd ..
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-08-08 08:08:50 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
2011-08-08 08:08:50 +00:00
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
2011-09-23 08:45:42 +00:00
|
|
|
--add-module=../ngx_lua-0.3.1rc8 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
2011-08-08 08:08:50 +00:00
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
2011-09-21 11:05:24 +00:00
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
2011-08-08 08:08:50 +00:00
|
|
|
--with-ld-opt='-Wl,-rpath,/usr/local/openresty/luajit/lib' \
|
|
|
|
--with-http_ssl_module
|
|
|
|
cd ../..
|
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
2011-08-11 02:04:00 +00:00
|
|
|
|
2011-08-08 08:08:50 +00:00
|
|
|
--- makefile
|
|
|
|
.PHONY: all install clean
|
|
|
|
|
|
|
|
all:
|
|
|
|
cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) TARGET_STRIP=@: INSTALL_X='$OPENRESTY_BUILD_DIR/install -m 0755' INSTALL_F='$OPENRESTY_BUILD_DIR/install -m 0644' PREFIX=/usr/local/openresty/luajit
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CFLAGS="-g -O3 -Wall -pedantic -DMISSING_ISINF" CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-08-08 08:08:50 +00:00
|
|
|
|
|
|
|
install:
|
2011-08-09 07:13:29 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) install TARGET_STRIP=@: INSTALL_X='$OPENRESTY_BUILD_DIR/install -m 0755' INSTALL_F='$OPENRESTY_BUILD_DIR/install -m 0644' PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR)
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CFLAGS="-g -O3 -Wall -pedantic -DMISSING_ISINF" CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-08-08 08:08:50 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== TEST 29: --with-luajit on FreeBSD
|
|
|
|
--- cmd: ./configure --with-luajit --dry-run --platform=freebsd
|
|
|
|
--- out
|
|
|
|
platform: freebsd (freebsd)
|
|
|
|
cp -rp bundle/ build/
|
|
|
|
cd build
|
|
|
|
cd LuaJIT-2.0.0-beta8
|
|
|
|
gmake TARGET_STRIP=@: CFLAGS=-I.. PREFIX=/usr/local/openresty/luajit
|
|
|
|
gmake install TARGET_STRIP=@: CFLAGS=-I.. PREFIX=/usr/local/openresty/luajit DESTDIR=$OPENRESTY_BUILD_DIR/luajit-root
|
|
|
|
export LUAJIT_LIB='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/lib'
|
|
|
|
export LUAJIT_INC='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0'
|
|
|
|
cd ..
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-08-08 08:08:50 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
2011-08-08 08:08:50 +00:00
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
2011-09-23 08:45:42 +00:00
|
|
|
--add-module=../ngx_lua-0.3.1rc8 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
2011-08-08 08:08:50 +00:00
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
2011-09-21 11:05:24 +00:00
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
2011-08-08 08:08:50 +00:00
|
|
|
--with-ld-opt='-Wl,-rpath,/usr/local/openresty/luajit/lib' \
|
|
|
|
--with-http_ssl_module
|
|
|
|
cd ../..
|
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
2011-08-11 02:04:00 +00:00
|
|
|
|
2011-08-08 08:08:50 +00:00
|
|
|
--- makefile
|
|
|
|
.PHONY: all install clean
|
|
|
|
|
|
|
|
all:
|
|
|
|
cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) TARGET_STRIP=@: CFLAGS=-I.. PREFIX=/usr/local/openresty/luajit
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-08-08 08:08:50 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) install TARGET_STRIP=@: CFLAGS=-I.. PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR)
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-08-08 08:08:50 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
2011-08-10 02:44:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
=== TEST 30: default (on Mac OS X)
|
|
|
|
--- cmd: ./configure --dry-run --platform=darwin
|
|
|
|
--- out
|
|
|
|
platform: macosx (darwin)
|
|
|
|
cp -rp bundle/ build/
|
|
|
|
cd build
|
|
|
|
cd lua-5.1.4
|
|
|
|
gmake macosx
|
|
|
|
gmake install INSTALL_TOP=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua
|
|
|
|
export LUA_LIB='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/lib'
|
|
|
|
export LUA_INC='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include'
|
|
|
|
cd ..
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-08-10 02:44:17 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
2011-08-10 02:44:17 +00:00
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
2011-09-23 08:45:42 +00:00
|
|
|
--add-module=../ngx_lua-0.3.1rc8 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
2011-08-10 02:44:17 +00:00
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
2011-09-21 11:05:24 +00:00
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
2011-08-10 02:44:17 +00:00
|
|
|
--with-http_ssl_module
|
|
|
|
cd ../..
|
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
2011-08-11 02:04:00 +00:00
|
|
|
|
2011-08-10 02:44:17 +00:00
|
|
|
--- makefile
|
|
|
|
.PHONY: all install clean
|
|
|
|
|
|
|
|
all:
|
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) macosx
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib LDFLAGS='-bundle -undefined dynamic_lookup' CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib LDFLAGS='-bundle -undefined dynamic_lookup' CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib LDFLAGS='-bundle -undefined dynamic_lookup' CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-08-10 02:44:17 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib LDFLAGS='-bundle -undefined dynamic_lookup' CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib LDFLAGS='-bundle -undefined dynamic_lookup' CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib LDFLAGS='-bundle -undefined dynamic_lookup' CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-08-10 02:44:17 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
|
|
|
|
2011-08-10 09:48:02 +00:00
|
|
|
|
|
|
|
=== TEST 31: --with-luajit (on Mac OS X)
|
|
|
|
--- cmd: ./configure --dry-run --platform=darwin --with-luajit
|
|
|
|
--- out
|
|
|
|
platform: macosx (darwin)
|
|
|
|
cp -rp bundle/ build/
|
|
|
|
cd build
|
|
|
|
cd LuaJIT-2.0.0-beta8
|
|
|
|
gmake TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit
|
|
|
|
gmake install TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit DESTDIR=$OPENRESTY_BUILD_DIR/luajit-root
|
|
|
|
export LUAJIT_LIB='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/lib'
|
|
|
|
export LUAJIT_INC='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0'
|
|
|
|
cd ..
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-08-10 09:48:02 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
2011-08-10 09:48:02 +00:00
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
2011-09-23 08:45:42 +00:00
|
|
|
--add-module=../ngx_lua-0.3.1rc8 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
2011-08-10 09:48:02 +00:00
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
2011-09-21 11:05:24 +00:00
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
2011-08-10 09:48:02 +00:00
|
|
|
--with-ld-opt='-Wl,-rpath,/usr/local/openresty/luajit/lib' \
|
|
|
|
--with-http_ssl_module
|
|
|
|
cd ../..
|
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
2011-08-11 02:04:00 +00:00
|
|
|
|
2011-08-10 09:48:02 +00:00
|
|
|
--- makefile
|
|
|
|
.PHONY: all install clean
|
|
|
|
|
|
|
|
all:
|
|
|
|
cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib LDFLAGS='-bundle -undefined dynamic_lookup' CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib LDFLAGS='-bundle -undefined dynamic_lookup' CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib LDFLAGS='-bundle -undefined dynamic_lookup' CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-08-10 09:48:02 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) install TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR)
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib LDFLAGS='-bundle -undefined dynamic_lookup' CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib LDFLAGS='-bundle -undefined dynamic_lookup' CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib LDFLAGS='-bundle -undefined dynamic_lookup' CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-08-10 09:48:02 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== TEST 32: --with-debug on solaris
|
|
|
|
--- cmd: ./configure --dry-run --platform=solaris --with-debug
|
|
|
|
--- out
|
|
|
|
platform: solaris (solaris)
|
|
|
|
cp -rp bundle/ build/
|
|
|
|
cd build
|
|
|
|
cd lua-5.1.4
|
|
|
|
gmake solaris
|
|
|
|
gmake install INSTALL_TOP=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua
|
|
|
|
export LUA_LIB='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/lib'
|
|
|
|
export LUA_INC='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include'
|
|
|
|
cd ..
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-08-10 09:48:02 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
|
|
|
--with-debug \
|
|
|
|
--with-cc-opt='-O0' \
|
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
2011-08-10 09:48:02 +00:00
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
2011-09-23 08:45:42 +00:00
|
|
|
--add-module=../ngx_lua-0.3.1rc8 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
2011-08-10 09:48:02 +00:00
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
2011-09-21 11:05:24 +00:00
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
2011-08-10 09:48:02 +00:00
|
|
|
--with-http_ssl_module
|
|
|
|
cd ../..
|
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
2011-08-11 02:04:00 +00:00
|
|
|
|
2011-08-10 09:48:02 +00:00
|
|
|
--- makefile
|
|
|
|
.PHONY: all install clean
|
|
|
|
|
|
|
|
all:
|
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) solaris
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CFLAGS="-g -O0 -Wall -pedantic -DMISSING_ISINF" CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CFLAGS="-g -O0 -Wall" CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CFLAGS="-g -O0 -Wall" CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-08-10 09:48:02 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CFLAGS="-g -O0 -Wall -pedantic -DMISSING_ISINF" CC=gcc
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CFLAGS="-g -O0 -Wall" CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib INSTALL=$OPENRESTY_BUILD_DIR/install CFLAGS="-g -O0 -Wall" CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-08-10 09:48:02 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
2011-08-10 10:14:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
=== TEST 33: --without-lua_cjson
|
|
|
|
--- cmd: ./configure --dry-run --without-lua_cjson
|
|
|
|
--- out
|
|
|
|
platform: linux (linux)
|
|
|
|
cp -rp bundle/ build/
|
|
|
|
cd build
|
|
|
|
cd lua-5.1.4
|
|
|
|
gmake linux
|
|
|
|
gmake install INSTALL_TOP=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua
|
|
|
|
export LUA_LIB='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/lib'
|
|
|
|
export LUA_INC='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include'
|
|
|
|
cd ..
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-08-10 10:14:01 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
2011-08-10 10:14:01 +00:00
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
2011-09-23 08:45:42 +00:00
|
|
|
--add-module=../ngx_lua-0.3.1rc8 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
2011-08-10 10:14:01 +00:00
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
2011-09-21 11:05:24 +00:00
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
2011-08-10 10:14:01 +00:00
|
|
|
--with-http_ssl_module
|
|
|
|
cd ../..
|
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
2011-08-11 02:04:00 +00:00
|
|
|
|
|
|
|
--- makefile
|
|
|
|
.PHONY: all install clean
|
|
|
|
|
|
|
|
all:
|
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) linux
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-08-11 02:04:00 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
|
2011-08-31 05:12:44 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-08-11 02:04:00 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
2011-08-31 05:57:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
=== TEST 34: --without-lua_redis_parser & --without-lua_cjson
|
2011-08-11 02:04:00 +00:00
|
|
|
--- cmd: ./configure --dry-run --without-lua_redis_parser --without-lua_cjson
|
|
|
|
--- out
|
|
|
|
platform: linux (linux)
|
|
|
|
cp -rp bundle/ build/
|
|
|
|
cd build
|
|
|
|
cd lua-5.1.4
|
|
|
|
gmake linux
|
|
|
|
gmake install INSTALL_TOP=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua
|
|
|
|
export LUA_LIB='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/lib'
|
|
|
|
export LUA_INC='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include'
|
|
|
|
cd ..
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-08-11 02:04:00 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
2011-08-11 02:04:00 +00:00
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
2011-09-23 08:45:42 +00:00
|
|
|
--add-module=../ngx_lua-0.3.1rc8 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
2011-08-11 02:04:00 +00:00
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
2011-09-21 11:05:24 +00:00
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
2011-08-11 02:04:00 +00:00
|
|
|
--with-http_ssl_module
|
|
|
|
cd ../..
|
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
|
|
|
|
2011-08-10 10:14:01 +00:00
|
|
|
--- makefile
|
|
|
|
.PHONY: all install clean
|
|
|
|
|
|
|
|
all:
|
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) linux
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-08-31 05:57:49 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
|
2011-09-04 03:57:17 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-08-31 05:57:49 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== TEST 35: disable rds-parser
|
|
|
|
--- cmd: ./configure --dry-run --without-lua_rds_parser
|
|
|
|
--- out
|
|
|
|
platform: linux (linux)
|
|
|
|
cp -rp bundle/ build/
|
|
|
|
cd build
|
|
|
|
cd lua-5.1.4
|
|
|
|
gmake linux
|
|
|
|
gmake install INSTALL_TOP=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua
|
|
|
|
export LUA_LIB='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/lib'
|
|
|
|
export LUA_INC='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include'
|
|
|
|
cd ..
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-08-31 05:57:49 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
2011-08-31 05:57:49 +00:00
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
2011-09-23 08:45:42 +00:00
|
|
|
--add-module=../ngx_lua-0.3.1rc8 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
2011-08-31 05:57:49 +00:00
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
2011-09-21 11:05:24 +00:00
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
2011-08-31 05:57:49 +00:00
|
|
|
--with-http_ssl_module
|
|
|
|
cd ../..
|
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
|
|
|
|
|
|
|
--- makefile
|
|
|
|
.PHONY: all install clean
|
|
|
|
|
|
|
|
all:
|
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) linux
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-08-31 05:57:49 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-08-10 10:14:01 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-08-31 05:57:49 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-08-10 10:14:01 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
2011-09-18 05:06:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
=== TEST 36: --with-luajit=PATH
|
|
|
|
--- cmd: ./configure --with-luajit=/tmp/luajit --dry-run
|
|
|
|
--- out
|
|
|
|
platform: linux (linux)
|
|
|
|
cp -rp bundle/ build/
|
|
|
|
cd build
|
|
|
|
export LUAJIT_LIB='/tmp/luajit/lib'
|
|
|
|
export LUAJIT_INC='/tmp/luajit/include/luajit-2.0'
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-09-18 05:06:57 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
2011-09-23 08:45:42 +00:00
|
|
|
--add-module=../ngx_lua-0.3.1rc8 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
2011-09-21 11:05:24 +00:00
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
2011-09-18 05:06:57 +00:00
|
|
|
--with-ld-opt='-Wl,-rpath,/tmp/luajit/lib' \
|
|
|
|
--with-http_ssl_module
|
|
|
|
cd ../..
|
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
|
|
|
|
|
|
|
--- makefile
|
|
|
|
.PHONY: all install clean
|
|
|
|
|
|
|
|
all:
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=/tmp/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-09-18 05:06:57 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=/tmp/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=/tmp/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-09-18 05:06:57 +00:00
|
|
|
|
|
|
|
install:
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=/tmp/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-09-18 05:06:57 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=/tmp/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=/tmp/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-09-18 05:06:57 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== TEST 37: --with-luajit & --with-luajit=PATH
|
|
|
|
--- cmd: ./configure --with-luajit=/tmp/luajit --with-luajit
|
|
|
|
--- out
|
|
|
|
platform: linux (linux)
|
|
|
|
|
|
|
|
--- err
|
|
|
|
--with-luajit and --with-luajit=PATH are mutually exclusive.
|
|
|
|
--- exit: 2
|
|
|
|
|
2011-09-18 05:23:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
=== TEST 38: --with-lua51=PATH
|
|
|
|
--- cmd: ./configure --dry-run --with-lua51=/tmp/lua
|
|
|
|
--- out
|
|
|
|
platform: linux (linux)
|
|
|
|
cp -rp bundle/ build/
|
|
|
|
cd build
|
|
|
|
export LUA_LIB='/tmp/lua/lib'
|
|
|
|
export LUA_INC='/tmp/lua/include'
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-09-18 05:23:05 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
2011-09-23 08:45:42 +00:00
|
|
|
--add-module=../ngx_lua-0.3.1rc8 \
|
2011-09-18 05:23:05 +00:00
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
2011-09-21 11:05:24 +00:00
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
2011-09-18 05:23:05 +00:00
|
|
|
--with-ld-opt='-Wl,-rpath,/tmp/lua/lib' \
|
|
|
|
--with-http_ssl_module
|
|
|
|
cd ../..
|
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
|
|
|
|
|
|
|
--- makefile
|
|
|
|
.PHONY: all install clean
|
|
|
|
|
|
|
|
all:
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=/tmp/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-09-18 05:23:05 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=/tmp/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=/tmp/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-09-18 05:23:05 +00:00
|
|
|
|
|
|
|
install:
|
2011-09-19 04:33:03 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=/tmp/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-09-18 05:23:05 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=/tmp/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=/tmp/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-09-18 05:23:05 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
2011-09-23 08:45:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
=== TEST 39: ./configure with -jN
|
|
|
|
--- cmd: ./configure --dry-run -j10
|
|
|
|
--- out
|
|
|
|
platform: linux (linux)
|
|
|
|
cp -rp bundle/ build/
|
|
|
|
cd build
|
|
|
|
cd lua-5.1.4
|
|
|
|
gmake -j10 linux
|
|
|
|
gmake install INSTALL_TOP=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua
|
|
|
|
export LUA_LIB='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/lib'
|
|
|
|
export LUA_INC='$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include'
|
|
|
|
cd ..
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-09-23 08:45:42 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
|
|
|
--add-module=../ngx_lua-0.3.1rc8 \
|
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
|
|
|
--with-http_ssl_module
|
|
|
|
cd ../..
|
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
|
|
|
|
|
|
|
--- makefile
|
|
|
|
.PHONY: all install clean
|
|
|
|
|
|
|
|
all:
|
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) linux
|
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-09-23 08:45:42 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
|
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/lua-root/usr/local/openresty/lua/include LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-09-23 08:45:42 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== TEST 40: --with-luajit & -jN
|
|
|
|
--- cmd: ./configure --with-luajit --dry-run -j5
|
|
|
|
--- out
|
|
|
|
platform: linux (linux)
|
|
|
|
cp -rp bundle/ build/
|
|
|
|
cd build
|
|
|
|
cd LuaJIT-2.0.0-beta8
|
|
|
|
gmake -j5 TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit
|
|
|
|
gmake install TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit DESTDIR=$OPENRESTY_BUILD_DIR/luajit-root
|
|
|
|
export LUAJIT_LIB='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/lib'
|
|
|
|
export LUAJIT_INC='$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0'
|
|
|
|
cd ..
|
2011-10-07 05:44:20 +00:00
|
|
|
cd nginx-1.0.8
|
2011-09-23 08:45:42 +00:00
|
|
|
./configure --prefix=/usr/local/openresty/nginx \
|
|
|
|
--add-module=../ngx_devel_kit-0.2.17 \
|
|
|
|
--add-module=../echo-nginx-module-0.37rc4 \
|
|
|
|
--add-module=../xss-nginx-module-0.03rc3 \
|
|
|
|
--add-module=../set-misc-nginx-module-0.22rc2 \
|
|
|
|
--add-module=../form-input-nginx-module-0.07rc5 \
|
|
|
|
--add-module=../encrypted-session-nginx-module-0.01 \
|
|
|
|
--add-module=../ngx_lua-0.3.1rc8 \
|
|
|
|
--add-module=../headers-more-nginx-module-0.16rc2 \
|
|
|
|
--add-module=../srcache-nginx-module-0.12 \
|
|
|
|
--add-module=../array-var-nginx-module-0.03rc1 \
|
|
|
|
--add-module=../memc-nginx-module-0.12 \
|
|
|
|
--add-module=../redis2-nginx-module-0.07 \
|
|
|
|
--add-module=../upstream-keepalive-nginx-module-0.3 \
|
|
|
|
--add-module=../auth-request-nginx-module-0.2 \
|
|
|
|
--add-module=../rds-json-nginx-module-0.12rc5 \
|
|
|
|
--add-module=../rds-csv-nginx-module-0.03 \
|
|
|
|
--with-ld-opt='-Wl,-rpath,/usr/local/openresty/luajit/lib' \
|
|
|
|
--with-http_ssl_module
|
|
|
|
cd ../..
|
|
|
|
Type the following commands to build and install:
|
|
|
|
gmake
|
|
|
|
gmake install
|
|
|
|
|
|
|
|
--- makefile
|
|
|
|
.PHONY: all install clean
|
|
|
|
|
|
|
|
all:
|
|
|
|
cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit
|
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE)
|
2011-09-23 08:45:42 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) install TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR)
|
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-cjson-1.0.3 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-redis-parser-0.09rc5 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
|
|
|
cd $OPENRESTY_BUILD_DIR/lua-rds-parser-0.03 && $(MAKE) install DESTDIR=$(DESTDIR) LUA_INCLUDE_DIR=$OPENRESTY_BUILD_DIR/luajit-root/usr/local/openresty/luajit/include/luajit-2.0 LUA_LIB_DIR=/usr/local/openresty/lualib CC=gcc
|
2011-10-07 05:44:20 +00:00
|
|
|
cd $OPENRESTY_BUILD_DIR/nginx-1.0.8 && $(MAKE) install DESTDIR=$(DESTDIR)
|
2011-09-23 08:45:42 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|