For https://github.com/openresty/lua-resty-memcached what is the proper correct way to install it ? And verify it's installed and working for non-openresty compiled Nginx installations ?
I am compiling for my custom Nginx install using Nginx 1.9.0 with the following below configure options and it compiles fine
nginx -V
nginx version: nginx/1.9.0
built by gcc 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC)
built with OpenSSL 1.0.2a 19 Mar 2015
TLS SNI support enabled
configure arguments: --with-ld-opt=-Wl,-rpath,/usr/local/lib --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-http_ssl_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_sub_module --with-http_addition_module --with-http_image_filter_module --with-http_secure_link_module --with-http_flv_module --with-http_realip_module --with-http_geoip_module --with-openssl-opt=enable-tlsext --add-module=../ngx-fancyindex-ngx-fancyindex --add-module=../ngx_cache_purge-2.3 --add-module=../headers-more-nginx-module-0.25 --add-module=../nginx-accesskey-2.0.3 --add-module=../nginx-http-concat-master --with-http_dav_module --add-module=../nginx-dav-ext-module-0.0.3 --add-module=../openresty-memc-nginx-module-1518da4 --add-module=../openresty-srcache-nginx-module-ffa9ab7 --add-module=../ngx_devel_kit-0.2.19 --add-module=../set-misc-nginx-module-0.28 --add-module=../echo-nginx-module-0.57 --add-module=../lua-nginx-module-0.9.16rc1 --add-module=../nginx_upstream_check_module-0.3.0 --with-openssl=../openssl-1.0.2a --with-libatomic --with-threads --with-stream --with-stream_ssl_module --with-pcre=../pcre-8.37 --with-pcre-jit --with-http_spdy_module --add-module=../ngx_pagespeed-release-1.9.32.3-beta
configure options
./configure --with-ld-opt=-Wl,-rpath,/usr/local/lib --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-http_ssl_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_sub_module --with-http_addition_module --with-http_image_filter_module --with-http_secure_link_module --with-http_flv_module --with-http_realip_module --with-http_geoip_module --with-openssl-opt=enable-tlsext --add-module=../ngx-fancyindex-ngx-fancyindex --add-module=../ngx_cache_purge-2.3 --add-module=../headers-more-nginx-module-0.25 --add-module=../nginx-accesskey-2.0.3 --add-module=../nginx-http-concat-master --with-http_dav_module --add-module=../nginx-dav-ext-module-0.0.3 --add-module=../openresty-memc-nginx-module-1518da4 --add-module=../openresty-srcache-nginx-module-ffa9ab7 --add-module=../ngx_devel_kit-0.2.19 --add-module=../set-misc-nginx-module-0.28 --add-module=../echo-nginx-module-0.57 --add-module=../lua-nginx-module-0.9.16rc1 --add-module=../nginx_upstream_check_module-0.3.0 --with-openssl=../openssl-1.0.2a --with-libatomic --with-threads --with-stream --with-stream_ssl_module --with-pcre=../pcre-8.37 --with-pcre-jit --with-http_spdy_module --add-module=../ngx_pagespeed-release-1.9.32.3-beta
and I see for configure stage
configuring additional modules
adding module in ../ngx-fancyindex-ngx-fancyindex
+ ngx_http_fancyindex_module was configured
adding module in ../ngx_cache_purge-2.3
+ ngx_http_cache_purge_module was configured
adding module in ../headers-more-nginx-module-0.25
+ ngx_http_headers_more_filter_module was configured
adding module in ../nginx-accesskey-2.0.3
+ ngx_http_accesskey_module was configured
adding module in ../nginx-http-concat-master
+ ngx_http_concat_module was configured
adding module in ../nginx-dav-ext-module-0.0.3
+ ngx_http_dav_ext_module was configured
adding module in ../openresty-memc-nginx-module-1518da4
+ ngx_http_memc_module was configured
adding module in ../openresty-srcache-nginx-module-ffa9ab7
+ ngx_http_srcache_filter_module was configured
adding module in ../ngx_devel_kit-0.2.19
+ ngx_devel_kit was configured
adding module in ../set-misc-nginx-module-0.28
found ngx_devel_kit for ngx_set_misc; looks good.
+ ngx_http_set_misc_module was configured
adding module in ../echo-nginx-module-0.57
+ ngx_http_echo_module was configured
adding module in ../lua-nginx-module-0.9.16rc1
checking for Lua library ... found
checking for export symbols by default (-E) ... found
checking for export symbols by default (--export-all-symbols) ... not found
checking for SO_PASSCRED ... found
+ ngx_http_lua_module was configured
adding module in ../nginx_upstream_check_module-0.3.0
checking for ngx_http_upstream_check_module ... found
+ ngx_http_upstream_check_module was configured
adding module in ../ngx_pagespeed-release-1.9.32.3-beta
mod_pagespeed_dir=../ngx_pagespeed-release-1.9.32.3-beta/psol/include
build_from_source=false
checking for psol ... found
List of modules (in reverse order of applicability): ngx_http_write_filter_module ngx_http_header_filter_module ngx_http_chunked_filter_module ngx_http_spdy_filter_module ngx_http_range_header_filter_module ngx_pagespeed_etag_filter ngx_http_gzip_filter_module ngx_pagespeed ngx_http_postpone_filter_module ngx_http_ssi_filter_module ngx_http_charset_filter_module ngx_http_image_filter_module ngx_http_sub_filter_module ngx_http_addition_filter_module ngx_http_userid_filter_module
+ ngx_pagespeed was configured
checking for zlib library ... found
checking for GD library ... found
checking for GeoIP library ... found
checking for atomic_ops library ... found
and
ls -lah /usr/local/lib/
total 1.5M
drwxr-xr-x. 6 root root 4.0K May 24 23:34 .
drwxr-xr-x. 18 root root 4.0K May 7 16:58 ..
-rw-r--r-- 1 root root 764K May 24 23:34 libluajit-5.1.a
lrwxrwxrwx 1 root root 22 May 24 23:34 libluajit-5.1.so -> libluajit-5.1.so.2.0.4
lrwxrwxrwx 1 root root 22 May 24 21:36 libluajit-5.1.so.2 -> libluajit-5.1.so.2.0.4
-rwxr-xr-x 1 root root 444K May 24 23:34 libluajit-5.1.so.2.0.4
drwxr-xr-x 4 root root 28 May 24 22:30 lua
and
ls -lah /usr/local/lib/lua/resty/
total 160K
drwxr-xr-x 2 root root 4.0K May 24 23:34 .
drwxr-xr-x 4 root root 28 May 24 22:30 ..
-rwxr-xr-x 1 root root 6.2K May 24 23:34 aes.lua
-rwxr-xr-x 1 root root 7.8K May 24 23:34 client.lua
-rwxr-xr-x 1 root root 4.4K May 24 23:34 lock.lua
-rwxr-xr-x 1 root root 1.2K May 24 23:34 md5.lua
-rwxr-xr-x 1 root root 15K May 24 23:34 memcached.lua
-rwxr-xr-x 1 root root 20K May 24 23:34 mysql.lua
-rwxr-xr-x 1 root root 8.5K May 24 23:34 protocol.lua
-rwxr-xr-x 1 root root 612 May 24 23:34 random.lua
-rwxr-xr-x 1 root root 11K May 24 23:34 redis.lua
-rwxr-xr-x 1 root root 19K May 24 23:34 resolver.lua
-rwxr-xr-x 1 root root 4.8K May 24 23:34 server.lua
-rwxr-xr-x 1 root root 1.2K May 24 23:34 sha1.lua
-rwxr-xr-x 1 root root 1.1K May 24 23:34 sha224.lua
-rwxr-xr-x 1 root root 1.3K May 24 23:34 sha256.lua
-rwxr-xr-x 1 root root 1.1K May 24 23:34 sha384.lua
-rwxr-xr-x 1 root root 1.4K May 24 23:34 sha512.lua
-rwxr-xr-x 1 root root 236 May 24 23:34 sha.lua
-rwxr-xr-x 1 root root 694 May 24 23:34 string.lua
-rwxr-xr-x 1 root root 5.1K May 24 23:34 upload.lua
thanks