GithubHelp home page GithubHelp logo

homebrew-kong's Introduction

DEPRECATED

No Maintenance Intended

The Kong homebrew formula is no longer supported, please consider using Docker instead for local development:

https://hub.docker.com/_/kong

Homebrew Kong Tap

Homebrew tap for Kong 🍺

Kong is a scalable and customizable API Management Layer built on top of Nginx.

Install (stable)

$ brew tap kong/kong
==> Tapping kong/kong
Cloning into '/usr/local/Homebrew/Library/Taps/kong/homebrew-kong'...
<snip>

$ brew install kong
==> Downloading https://github.com/Kong/kong-build-tools/archive/4.22.0.tar.gz
==> Downloading https://download.konghq.com/gateway-src/kong-2.8.1.tar.gz
<snip>

Options

Install HEAD (unstable)

HEAD points to Kong's next branch, the development branch for cutting edge installs:

$ brew install --HEAD kong
==> Downloading https://github.com/Kong/kong-build-tools/archive/4.22.0.tar.gz
==> Downloading from https://codeload.github.com/Kong/kong-build-tools/tar.gz/refs/tags/4.22.0
==> Cloning https://github.com/Kong/kong.git
Cloning into '/Users/if/Library/Caches/Homebrew/kong--git'...
==> Checking out branch master
==> Installing kong from kong/kong
<snip>

Removing the Tap

$ brew untap kong/kong
Untapping kong/kong...
Untapped 6 formulae (23 files, 198.8KB).

Developing Formulae

Use a branch/tag of this tap

Developing formulae can be eased by setting a git ref (branch/tag) for the entire tap. This can be accomplished by tapping the tap, then using git checkout to arrive at the desired ref (for all formulae):

$ brew tap kong/kong
==> Tapping kong/kong
<snip>

$ cd /usr/local/Homebrew/Library/Taps/kong/homebrew-kong
Note: In Monterey it is /opt/homebrew/Library/Taps/kong/homebrew-kong

$ git checkout release/3.0.0
Branch 'release/3.0.0' set up to track remote branch 'release/3.0.0' from 'origin'.
Switched to a new branch 'release/3.0.0'

$ brew install kong
==> Downloading https://github.com/Kong/kong-build-tools/archive/4.33.10.tar.gz
==> Downloading https://download.konghq.com/gateway-src/kong-3.0.0.tar.gz
==> Installing kong from kong/kong
==> Installing dependencies for kong/kong/kong: kong/kong/[email protected]
==> Installing kong/kong/kong dependency: kong/kong/[email protected]
<snip>

Get the full output from the kong-ngx-build script by using the --verbose flag when installing:

$ brew install --verbose kong
<snip>
==> ./kong-ngx-build --prefix /usr/local/Cellar/[email protected]/1.21.4.1 --openresty 1.21.4.1 --openssl 1.1.1q --luarocks 3.9.1 --pcre 8.45 -j 12
NOTICE: Downloading the components now...
/private/tmp/openrestyA1.21.4.1-20220913-30100-7mtl7u/kong-build-tools-4.33.10/openresty-build-tools/work /private/tmp/openrestyA1.21.4.1-20220913-30100-7mtl7u/kong-build-tools-4.33.10/openresty-build-tools
WARN: OpenSSL source not found, downloading...
NOTICE: Downloaded: d7939ce614029cdff0b6c20f0e2e5703158a489a72b2507b8bd51bf8c8fd10ca  openssl-1.1.1q.tar.gz
<snip>

Run the tests that live in the formulae (after installing them):

$ brew test --verbose kong
==> Testing kong/kong/kong
/usr/local/Homebrew/Library/Homebrew/test.rb (Formulary::FromPathLoader): loading /usr/local/Homebrew/Library/Taps/kong/homebrew-kong/Formula/kong.rb
==> /usr/local/Cellar/kong/3.0.0/bin/kong version -vv 2>&1 | grep 'Kong:'
2022/09/13 11:42:04 [verbose] Kong: 3.0.0
==> kong config init /private/tmp/tmp.DYgJNwy8Xa
==> kong check /private/tmp/tmp.DYgJNwy8Xa
configuration at /private/tmp/tmp.DYgJNwy8Xa
 is valid

Use Kong

$ KONG_DATABASE=off kong start
Kong started

Get started by reading the documentation at: https://docs.konghq.com

homebrew-kong's People

Contributors

adviri avatar bendoerr avatar bungle avatar curiositycasualty avatar darrenjennings avatar dndx avatar fffonion avatar gszr avatar hanshuebner avatar hermo avatar hishamhm avatar hutchic avatar kikito avatar locao avatar mashapedeployment avatar orliesaurus avatar p0pr0ck5 avatar pravynandas avatar shashiranjan84 avatar sjoconnor avatar syhily avatar thibaultcha avatar xvaara avatar yildizberkay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebrew-kong's Issues

Admin API breaking in macOS Mojave 10.14.4

I had a working configuration of Kong 1.0 running on macOS Mojave 10.14.4
Brew successfully updated Kong to version 1.1 when I did a brew upgrade.
However since then I am not able to get any response from the Admin API.

curl http://localhost:8001

I find this problem very difficult to debug as the only think I see in the logs are these entries for each request to the Admin API url, nothing else.

2019/04/02 13:19:20 [notice] 49919#0: signal 20 (SIGCHLD) received from 49929
2019/04/02 13:19:20 [alert] 49919#0: worker process 49929 exited on signal 11
2019/04/02 13:19:20 [notice] 49919#0: start worker process 50168
2019/04/02 13:19:20 [notice] 49919#0: signal 23 (SIGIO) received
2019/04/02 13:19:20 [notice] 49919#0: signal 23 (SIGIO) received
2019/04/02 13:19:20 [notice] 49919#0: signal 23 (SIGIO) received from 49920

I have since tried uninstalling kong, luarocks and openresty and installing kong, so that brew will re-install these packages but the results are the same. Likewise I have thrown out the configuration database, and also thrown out the kong.conf file, to have a clean vanilla install, but each time the results are the same.

Perhaps the problem is at the OS level because the entries in the logs are Unix signals thrown from threads.

Also I have a second computer that is running macOS High Sierra and there Kong was also updated to version 1.1 from a brew upgrade command but it all works just fine.

Perhaps the way to reproduce this is to do a brew install kong on a Mac running Mojave?

I would be grateful for any help,
Ioannis

error: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version while accessing https://github.com/kong/homebrew-kong/info/refs?service=git-upload-pack

Trying this on OSX 10.8

$ brew -v
Homebrew 1.6.0
Homebrew/homebrew-core (git revision e04a2; last commit 2018-04-15)
$ brew tap kong/kong
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (caskroom/cask, homebrew/core).
No changes to formulae.

==> Tapping kong/kong
Cloning into '/usr/local/Homebrew/Library/Taps/kong/homebrew-kong'...
error: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version while accessing https://github.com/kong/homebrew-kong/info/refs?service=git-upload-pack
fatal: HTTP request failed
Error: Failure while executing: git clone https://github.com/kong/homebrew-kong /usr/local/Homebrew/Library/Taps/kong/homebrew-kong --depth=1

Error upgrading from 0.5.4

brew update cause this error

Error: Failed installing dependency: https://luarocks.org/lua-cassandra-0.4.2-0.rockspec - Failed installing dependency: https://luarocks.org/luasocket-3.0rc1-2.src.rock - File already exists: /usr/local/share/lua/5.1/socket.lua

I tried a brew uninstall kong and then a reinstall, but I still get the same error

luarocks needs writeable /usr/local

While trying to install kong via this formula, the installation would fail at the luarocks openssl step with:

Error: Your user does not have write permissions in /usr/local
-- you may want to run as a privileged user or use your local tree with --local.

Since Homebrew no longer requires write permissions for /usr/local, I would expect this formula not to rely on having those permissions either.

luasec and openssl?

❯ brew install kong
==> Installing kong from mashape/homebrew-kong
==> Downloading https://github.com/Mashape/kong/archive/0.5.3.tar.gz
Already downloaded: /Library/Caches/Homebrew/kong-0.5.3.tar.gz
==> make install
Last 15 lines from /Users/kevinSuttle/Library/Logs/Homebrew/kong/01.make:
lrexlib-pcre ~> 2.7.2-1
luacrypto >= 0.3.2-1
yaml ~> 1.1.1-1
lbase64 ~> 20120820-1
stringy ~> 0.4-1
lua-cassandra ~> 0.3.6-0
lua-resty-iputils ~> 0.2.0-1
luasocket ~> 2.0.2-5
lapis ~> 1.1.0-1

Warning: falling back to curl - install luasec to get native HTTPS support

Error: Failed installing dependency: https://luarocks.org/luasec-0.5-2.src.rock - Could not find expected file openssl/ssl.h, or openssl/ssl.h for OPENSSL -- you may have to install OPENSSL in your system and/or pass OPENSSL_DIR or OPENSSL_INCDIR to the luarocks command. Example: luarocks install luasec OPENSSL_DIR=/usr/local
Using https://luarocks.org/luasec-0.5-2.src.rock... switching to 'build' mode
make: *** [install] Error 1

READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
  https://github.com/mashape/homebrew-kong/issues

 ❯ brew install luasec
Error: No available formula with the name "luasec"
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
Error: No formulae found in taps.

❯ luarocks install luasec OPENSSL_DIR=/usr/bin/openssl
Warning: falling back to curl - install luasec to get native HTTPS support
Installing https://luarocks.org/luasec-0.5-2.src.rock...
Using https://luarocks.org/luasec-0.5-2.src.rock... switching to 'build' mode

Error: Could not find expected file openssl/ssl.h, or openssl/ssl.h for OPENSSL -- you may have to install OPENSSL in your system and/or pass OPENSSL_DIR or OPENSSL_INCDIR to the luarocks command. Example: luarocks install luasec OPENSSL_DIR=/usr/local

Cannot install Kong via homebrew. [Failed installing dependency: https://luarocks.org/luasec-0.6-1.rockspec - Failed cloning git repository.]

Hi,
I am trying to install kong via homebrew and getting this error:

brew install -vd kong
Updating Homebrew...
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/mashape/homebrew-kong/Formula/kong.rb
==> Installing kong from mashape/kong
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openssl.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/mashape/homebrew-kong/Formula/openresty.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pcre.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/mashape/homebrew-kong/Formula/luarocks.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/makedepend.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pkg-config.rb
/usr/bin/sandbox-exec -f /tmp/homebrew20171009-49198-m2xovk.sb nice /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/bin/ruby -W0 -I /usr/local/Homebrew/Library/Homebrew -- /usr/local/Homebrew/Library/Homebrew/build.rb /usr/local/Homebrew/Library/Taps/mashape/homebrew-kong/Formula/kong.rb --verbose --debug
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FromPathLoader): loading /usr/local/Homebrew/Library/Taps/mashape/homebrew-kong/Formula/kong.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openssl.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/mashape/homebrew-kong/Formula/openresty.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pcre.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/mashape/homebrew-kong/Formula/luarocks.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/makedepend.rb
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pkg-config.rb
==> Downloading https://bintray.com/kong/kong-community-edition-src/download_file?file_path=kong-community-edition-0.11.0.tar.gz
Already downloaded: /Users/ashish.maheshwari/Library/Caches/Homebrew/kong-0.11.0.tar.gz
==> Verifying kong-0.11.0.tar.gz checksum
tar xzf /Users/ashish.maheshwari/Library/Caches/Homebrew/kong-0.11.0.tar.gz
==> Patching
patching file kong/templates/kong_defaults.lua
==> luarocks-5.1 --tree=/usr/local/Cellar/kong/0.11.0 make OPENSSL_DIR=/usr/local/opt/openssl
Missing dependencies for kong 0.11.0-0:
   luasec == 0.6 (not installed)
   luasocket == 3.0-rc1 (not installed)
   penlight == 1.5.4 (not installed)
   lua-resty-http == 0.08 (not installed)
   lua-resty-jit-uuid == 0.0.5 (not installed)
   multipart == 0.5 (not installed)
   version == 0.2 (not installed)
   kong-lapis == 1.6.0.1 (not installed)
   lua-cassandra == 1.2.3 (not installed)
   pgmoon == 1.8.0 (not installed)
   luatz == 0.3 (not installed)
   lua_system_constants == 0.1.2 (not installed)
   lua-resty-iputils == 0.2.1 (not installed)
   luacrypto == 0.3.2 (not installed)
   luasyslog == 1.0.0 (not installed)
   lua_pack == 1.0.5 (not installed)
   lua-resty-dns-client == 0.6.0 (not installed)
   lua-resty-worker-events == 0.3.0 (not installed)
   lua-resty-mediador == 0.1.2 (not installed)

kong 0.11.0-0 depends on luasec == 0.6 (not installed)
Installing https://luarocks.org/luasec-0.6-1.rockspec
Missing dependencies for luasec 0.6-1:
   luasocket (not installed)

luasec 0.6-1 depends on luasocket (not installed)
Installing https://luarocks.org/luasocket-3.0rc1-2.src.rock
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c src/buffer.c -o src/buffer.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c src/auxiliar.c -o src/auxiliar.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c src/options.c -o src/options.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c src/timeout.c -o src/timeout.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c src/io.c -o src/io.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c src/usocket.c -o src/usocket.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c src/unix.c -o src/unix.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -bundle -undefined dynamic_lookup -all_load -o socket/unix.so -L/usr/local/opt/openresty/luajit/lib src/buffer.o src/auxiliar.o src/options.o src/timeout.o src/io.o src/usocket.o src/unix.o
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c src/buffer.c -o src/buffer.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c src/auxiliar.c -o src/auxiliar.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c src/options.c -o src/options.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c src/timeout.c -o src/timeout.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c src/io.c -o src/io.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c src/usocket.c -o src/usocket.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c src/serial.c -o src/serial.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -bundle -undefined dynamic_lookup -all_load -o socket/serial.so -L/usr/local/opt/openresty/luajit/lib src/buffer.o src/auxiliar.o src/options.o src/timeout.o src/io.o src/usocket.o src/serial.o
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c src/luasocket.c -o src/luasocket.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c src/timeout.c -o src/timeout.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c src/buffer.c -o src/buffer.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c src/io.c -o src/io.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c src/auxiliar.c -o src/auxiliar.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c src/options.c -o src/options.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c src/inet.c -o src/inet.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c src/except.c -o src/except.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c src/select.c -o src/select.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c src/tcp.c -o src/tcp.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c src/udp.c -o src/udp.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c src/usocket.c -o src/usocket.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -bundle -undefined dynamic_lookup -all_load -o socket/core.so -L/usr/local/opt/openresty/luajit/lib src/luasocket.o src/timeout.o src/buffer.o src/io.o src/auxiliar.o src/options.o src/inet.o src/except.o src/select.o src/tcp.o src/udp.o src/usocket.o
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c src/mime.c -o src/mime.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -bundle -undefined dynamic_lookup -all_load -o mime/core.so -L/usr/local/opt/openresty/luajit/lib src/mime.o
No existing manifest. Attempting to rebuild...
luasocket 3.0rc1-2 is now installed in /usr/local/Cellar/kong/0.11.0 (license: MIT)

Cloning into 'luasec'...
fatal: unable to connect to github.com:
github.com[0: 192.30.255.113]: errno=Operation timed out
github.com[1: 192.30.255.112]: errno=Operation timed out


Error: Failed installing dependency: https://luarocks.org/luasec-0.6-1.rockspec - Failed cloning git repository.
/usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python.rb
/usr/local/Homebrew/Library/Homebrew/debrew.rb:11:in `raise'
BuildError: Failed executing: luarocks-5.1 --tree=/usr/local/Cellar/kong/0.11.0 make OPENSSL_DIR=/usr/local/opt/openssl
1. raise
2. ignore
3. backtrace
4. irb
5. shell
Choose an action: 1
==> Kept temporary files
Temporary files retained at /tmp/kong-20171009-49200-1d42inx

==> Formula
Tap: mashape/kong
Path: /usr/local/Homebrew/Library/Taps/mashape/homebrew-kong/Formula/kong.rb
==> Configuration
HOMEBREW_VERSION: 1.3.5
ORIGIN: https://github.com/Homebrew/brew
HEAD: 91ab116ace7f4f97d3440190463c93be9ec6d675
Last commit: 23 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 2cbac5ff6ec861e9ff0ab89937c667c4be9d9722
Core tap last commit: 23 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: quad-core 64-bit broadwell
Homebrew Ruby: 2.3.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/bin/ruby
Clang: 9.0 build 900
Git: 2.6.3 => /usr/local/bin/git
Perl: /usr/bin/perl
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python.rb
Python: /usr/local/opt/python/libexec/bin/python => /usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: 1.8.0_102, 1.7.0_80
macOS: 10.12.6-x86_64
Xcode: 9.0
CLT: 9.0.0.0.1.1504363082
X11: N/A
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
MAKEFLAGS: -j4
CMAKE_PREFIX_PATH: /usr/local/opt/openssl:/usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
MACOSX_DEPLOYMENT_TARGET: 10.12
PKG_CONFIG_PATH: /usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/pcre/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.12
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Homebrew/Library/Homebrew/shims/super:/usr/local/opt/openssl/bin:/usr/local/opt/pcre/bin:/usr/local/opt/openresty/bin:/usr/local/opt/luarocks/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: mashape/kong/kong 0.11.0 did not build
Logs:
     /Users/ashish.maheshwari/Library/Logs/Homebrew/kong/00.options.out
     /Users/ashish.maheshwari/Library/Logs/Homebrew/kong/01.openssl
     /Users/ashish.maheshwari/Library/Logs/Homebrew/kong/01.openssl.cc
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/mashape/homebrew-kong/issues

These open issues may also help:
lua.h version mismatch (interpreter: ; lua.h: 5.1) https://github.com/Mashape/homebrew-kong/issues/49

To solve this, i tried installing luasec manually using luarocks:
luarocks install luasec OPENSSL_INCDIR=/usr/local/Cellar/openssl/1.0.2l/include
and got the following response:
luasec 0.7alpha-1 is now installed in /usr/local/opt/kong (license: MIT)

After this when I try installing kong via brew again, i get the following error:

brew install -vd kong
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/mashape/homebrew-kong/Formula/kong.rb
Error: /usr/local/opt/kong is not a valid keg
/usr/local/Homebrew/Library/Homebrew/keg.rb:185:in `initialize'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:214:in `new'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:214:in `block in install'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:110:in `each'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:110:in `install'
/usr/local/Homebrew/Library/Homebrew/brew.rb:99:in `<main>'

If i delete /usr/local/opt/kong, then brew again throws the first error.
Error: Failed installing dependency: https://luarocks.org/luasec-0.6-1.rockspec - Failed cloning git repository.

`raise_api_error': curl failed! (GitHub::Error)

brew install kong
==> Installing kong from mashape/kong
==> Downloading https://bintray.com/kong/kong-community-edition-src/download_file?file_path=dists%2Fkong-community-edition-0.11.2.tar.gz
Already downloaded: /Users/hanwenbo/Library/Caches/Homebrew/kong-0.11.2.tar.gz
==> Patching
patching file kong/templates/kong_defaults.lua
==> luarocks-5.1 --tree=/usr/local/Cellar/kong/0.11.2 make OPENSSL_DIR=/usr/local/opt/openssl
Last 15 lines from /Users/hanwenbo/Library/Logs/Homebrew/kong/01.openssl:
pgmoon == 1.8.0 (not installed)
luatz == 0.3 (not installed)
lua_system_constants == 0.1.2 (not installed)
lua-resty-iputils == 0.3.0 (not installed)
luacrypto == 0.3.2 (not installed)
luasyslog == 1.0.0 (not installed)
lua_pack == 1.0.5 (not installed)
lua-resty-dns-client == 0.6.2 (not installed)
lua-resty-worker-events == 0.3.0 (not installed)
lua-resty-mediador == 0.1.2 (not installed)

kong 0.11.2-0 depends on luasec == 0.6 (not installed)
Installing https://luarocks.org/luasec-0.6-2.src.rock

Error: Failed installing dependency: https://luarocks.org/luasec-0.6-2.src.rock - Could not fetch rock file: Error fetching file: Failed downloading https://luarocks.org/luasec-0.6-2.src.rock - luasec-0.6-2.src.rock

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/mashape/homebrew-kong/issues

/usr/local/Homebrew/Library/Homebrew/utils/github.rb:220:in raise_api_error': curl failed! (GitHub::Error) curl: (22) The requested URL returned error: 422 Unprocessable Entity curl: (3) <url> malformed from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:178:in open'
from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:278:in search' from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:225:in search_issues'
from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:238:in issues_for_formula' from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:369:in fetch_issues'
from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:365:in issues' from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:419:in dump'
from /usr/local/Homebrew/Library/Homebrew/brew.rb:138:in rescue in <main>' from /usr/local/Homebrew/Library/Homebrew/brew.rb:30:in

'

Kong 0.8.2 is not starting in OSX

Hi ,
I just installed Kong 0.8.2 in my Mac and i am not able to start the server as usual. I did cleaned my old version , however still having problems.

luajit: /usr/local/share/lua/5.1/kong/cli/utils/logger.lua:5: module 'ansicolors' not found:
no field package.preload['ansicolors']
no file './ansicolors.lua'
no file '/usr/local/Cellar/luajit/2.1_1/share/luajit-2.1.0-beta2/ansicolors.lua'
no file '/usr/local/share/lua/5.1/ansicolors.lua'
no file '/usr/local/share/lua/5.1/ansicolors/init.lua'
no file '/usr/local/Cellar/luajit/2.1_1/share/lua/5.1/ansicolors.lua'
no file '/usr/local/Cellar/luajit/2.1_1/share/lua/5.1/ansicolors/init.lua'
no file './ansicolors.so'
no file '/usr/local/lib/lua/5.1/ansicolors.so'
no file '/usr/local/Cellar/luajit/2.1_1/lib/lua/5.1/ansicolors.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
/usr/local/share/lua/5.1/kong/cli/utils/logger.lua:5: in main chunk
[C]: in function 'require'
/usr/local/share/lua/5.1/kong/cli/cmds/version.lua:3: in main chunk
[C]: in function 'require'
/usr/local/bin/kong:54: in main chunk
[C]: at 0x01000018f0

directive "real_ip_header" in /usr/local/opt/kong/nginx-kong.conf:73

$ brew install kong
$ kong start
Error: /usr/local/share/lua/5.1/kong/cmd/start.lua:28: nginx configuration is invalid (exit code 1):
nginx: [emerg] unknown directive "real_ip_header" in /usr/local/opt/kong/nginx-kong.conf:73
nginx: configuration file /usr/local/opt/kong/nginx.conf test failed


  Run with --v (verbose) or --vv (debug) for more details

brew install kong(1.0.0) failing(Mac OS 10.14)

"""brew install kong -vv
==> Installing kong from kong/kong
==> Installing dependencies for kong/kong/kong: kong/kong/openresty
==> Installing kong/kong/kong dependency: kong/kong/openresty
/usr/bin/sandbox-exec -f /private/tmp/homebrew20181226-61461-919yl7.sb nice /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby -W0 -I /usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/ruby-macho-2.1.0/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/rubocop-rspec-1.30.1/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/rubocop-0.61.1/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/unicode-display_width-1.4.0/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/ruby-progressbar-1.10.0/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/rainbow-3.0.0/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/powerpack-0.1.2/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/plist-3.4.0/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/parser-2.5.3.0/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/parallel-1.12.1/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/jaro_winkler-1.5.1/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/extensions/universal-darwin-18/2.3.0/jaro_winkler-1.5.1:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/backports-3.11.4/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/ast-2.4.0/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/activesupport-5.2.2/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/tzinfo-1.2.5/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/thread_safe-0.3.6/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/minitest-5.11.3/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/i18n-1.1.1/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/concurrent-ruby-1.1.4/lib:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby/2.3.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby/2.3.0/x86_64-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby/2.3.0/universal-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby/2.3.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby/2.3.0/x86_64-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby/2.3.0/universal-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/x86_64-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/universal-darwin9.0:/usr/local/Homebrew/Library/Homebrew -- /usr/local/Homebrew/Library/Homebrew/build.rb /usr/local/Homebrew/Library/Taps/kong/homebrew-kong/Formula/openresty.rb --verbose
==> Downloading https://openresty.org/download/openresty-1.13.6.2.tar.gz
Already downloaded: /Users/apple/Library/Caches/Homebrew/downloads/f5bb16df194ab3757f342a23acd27d902bc06ef79b4de62c2f689d380d790d91--openresty-1.13.6.2.tar.gz
==> Verifying f5bb16df194ab3757f342a23acd27d902bc06ef79b4de62c2f689d380d790d91--openresty-1.13.6.2.tar.gz checksum
tar xf /Users/apple/Library/Caches/Homebrew/downloads/f5bb16df194ab3757f342a23acd27d902bc06ef79b4de62c2f689d380d790d91--openresty-1.13.6.2.tar.gz -C /private/tmp/d20181226-61463-1m366nn
cp -pR /private/tmp/d20181226-61463-1m366nn/openresty-1.13.6.2/. /private/tmp/openresty-20181226-61463-1fysxzy/openresty-1.13.6.2
chmod -Rf +w /private/tmp/d20181226-61463-1m366nn
==> Cloning https://github.com/Kong/openresty-patches.git
Updating /Users/apple/Library/Caches/Homebrew/openresty--openresty-patches--git
git config remote.origin.url https://github.com/Kong/openresty-patches.git
git config remote.origin.fetch +refs/heads/master:refs/remotes/origin/master
git config remote.origin.tagOpt --no-tags
git fetch origin
==> Checking out branch master
git checkout -f master --
Already on 'master'
Your branch is up to date with 'origin/master'.
git reset --hard origin/master
HEAD is now at a4fe140 fix(transparent) avoid redefinition of kernel ipv6 definitions (bis) (#33)
cp -pR /Users/apple/Library/Caches/Homebrew/openresty--openresty-patches--git/LICENSE /private/tmp/d20181226-61463-51fmgx/LICENSE
cp -pR /Users/apple/Library/Caches/Homebrew/openresty--openresty-patches--git/.ci/. /private/tmp/d20181226-61463-51fmgx/.ci
cp -pR /Users/apple/Library/Caches/Homebrew/openresty--openresty-patches--git/patches/. /private/tmp/d20181226-61463-51fmgx/patches
cp -pR /Users/apple/Library/Caches/Homebrew/openresty--openresty-patches--git/README.md /private/tmp/d20181226-61463-51fmgx/README.md
cp -pR /Users/apple/Library/Caches/Homebrew/openresty--openresty-patches--git/.git/. /private/tmp/d20181226-61463-51fmgx/.git
cp -pR /Users/apple/Library/Caches/Homebrew/openresty--openresty-patches--git/.travis.yml /private/tmp/d20181226-61463-51fmgx/.travis.yml
cp -pR /private/tmp/d20181226-61463-51fmgx/LICENSE /private/tmp/openresty--openresty-patches-20181226-61463-vvem7t/LICENSE
cp -pR /private/tmp/d20181226-61463-51fmgx/.ci/. /private/tmp/openresty--openresty-patches-20181226-61463-vvem7t/.ci
cp -pR /private/tmp/d20181226-61463-51fmgx/patches/. /private/tmp/openresty--openresty-patches-20181226-61463-vvem7t/patches
cp -pR /private/tmp/d20181226-61463-51fmgx/README.md /private/tmp/openresty--openresty-patches-20181226-61463-vvem7t/README.md
cp -pR /private/tmp/d20181226-61463-51fmgx/.git/. /private/tmp/openresty--openresty-patches-20181226-61463-vvem7t/.git
cp -pR /private/tmp/d20181226-61463-51fmgx/.travis.yml /private/tmp/openresty--openresty-patches-20181226-61463-vvem7t/.travis.yml
chmod -Rf +w /private/tmp/d20181226-61463-51fmgx
==> patch -p1 < /private/tmp/openresty--openresty-patches-20181226-61463-vvem7t/patches/1.13.6.2/nginx-1.13.6_03-log-tls.patch
patching file nginx-1.13.6/src/event/ngx_event_openssl.c
==> patch -p1 < /private/tmp/openresty--openresty-patches-20181226-61463-vvem7t/patches/1.13.6.2/ngx_stream_lua-0.0.5_06-ssl-cert.patch
patching file ngx_stream_lua-0.0.5/config
Hunk #1 FAILED at 342.
Hunk #2 FAILED at 386.
2 out of 2 hunks FAILED -- saving rejects to file ngx_stream_lua-0.0.5/config.rej
patching file ngx_stream_lua-0.0.5/src/api/ngx_stream_lua_api.h
patching file ngx_stream_lua-0.0.5/src/ddebug.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_api.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_args.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_args.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_balancer.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_balancer.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_cache.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_cache.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_clfactory.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_clfactory.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_common.h
Hunk #2 succeeded at 126 (offset 5 lines).
Hunk #3 succeeded at 234 (offset 5 lines).
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_config.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_config.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_consts.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_consts.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_contentby.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_contentby.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_control.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_control.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_coroutine.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_coroutine.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_ctx.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_ctx.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_directive.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_directive.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_exception.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_exception.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_initby.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_initby.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_initworkerby.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_initworkerby.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_lex.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_lex.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_log.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_log.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_logby.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_logby.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_misc.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_misc.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_module.c
Hunk #2 FAILED at 28.
Hunk #3 succeeded at 359 (offset -1 lines).
Hunk #4 succeeded at 731 (offset 4 lines).
1 out of 4 hunks FAILED -- saving rejects to file ngx_stream_lua-0.0.5/src/ngx_stream_lua_module.c.rej
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_output.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_output.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_pcrefix.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_pcrefix.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_phase.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_phase.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_probe.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_regex.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_regex.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_script.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_script.h
can't find file to patch at input line 1220
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:

|diff --git a/ngx_stream_lua-0.0.5/src/ngx_stream_lua_semaphore.c b/ngx_stream_lua-0.0.5/src/ngx_stream_lua_semaphore.c
|index 207015b..c9b1ecd 100644
|--- a/ngx_stream_lua-0.0.5/src/ngx_stream_lua_semaphore.c
|+++ b/ngx_stream_lua-0.0.5/src/ngx_stream_lua_semaphore.c

File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 1245
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:

|diff --git a/ngx_stream_lua-0.0.5/src/ngx_stream_lua_semaphore.h b/ngx_stream_lua-0.0.5/src/ngx_stream_lua_semaphore.h
|index 6841950..a4a2e54 100644
|--- a/ngx_stream_lua-0.0.5/src/ngx_stream_lua_semaphore.h
|+++ b/ngx_stream_lua-0.0.5/src/ngx_stream_lua_semaphore.h

File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_shdict.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_sleep.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_sleep.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_socket_tcp.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_socket_tcp.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_socket_udp.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_socket_udp.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_ssl.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_ssl.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_ssl_certby.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_ssl_certby.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_string.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_string.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_time.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_time.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_timer.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_timer.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_uthread.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_uthread.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_util.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_util.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_variable.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_variable.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_worker.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_worker.h
patching file ngx_stream_lua-0.0.5/t/139-ssl-cert-by.t
patching file ngx_stream_lua-0.0.5/t/140-ssl-c-api.t
patching file ngx_stream_lua-0.0.5/t/cert/test2.crt
patching file ngx_stream_lua-0.0.5/t/cert/test2.key
patching file ngx_stream_lua-0.0.5/t/cert/test_ecdsa.crt
patching file ngx_stream_lua-0.0.5/t/cert/test_ecdsa.key

==> Formula
Tap: kong/kong
Path: /usr/local/Homebrew/Library/Taps/kong/homebrew-kong/Formula/openresty.rb
==> Configuration
HOMEBREW_VERSION: 1.8.6
ORIGIN: https://github.com/Homebrew/brew
HEAD: 858c5e1afb0eb00079a4f014e8fbedf9065d50e4
Last commit: 10 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 9ebbc474d816c5d0dda77117e74679e0cccb40aa
Core tap last commit: 15 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_ENABLE_AUTO_UPDATE_MIGRATION: 1
CPU: octa-core 64-bit ivybridge
Homebrew Ruby: 2.3.7 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby
Clang: 10.0 build 1000
Git: 2.19.0 => /usr/local/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: 10.0.2, 1.8.0_181
macOS: 10.14.1-x86_64
CLT: 10.1.0.0.1.1539992718
Xcode: N/A
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /usr/local/opt/[email protected]:/usr/local
CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/libxml2:/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_PATH: /usr/local/opt/[email protected]/lib/pkgconfig:/usr/local/opt/pcre/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.14
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/local/opt/[email protected]/bin:/usr/local/opt/pcre/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: kong/kong/openresty 1.13.6.2 did not build
Logs:
/Users/apple/Library/Logs/Homebrew/openresty/01.nginx-1.13.6_03-log-tls.patch
/Users/apple/Library/Logs/Homebrew/openresty/00.options.out
/Users/apple/Library/Logs/Homebrew/openresty/02.ngx_stream_lua-0.0.5_06-ssl-cert.patch
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/kong/homebrew-kong/issues
"""

lua.h version mismatch (interpreter: ; lua.h: 5.1)

`unknown:kong username$ brew install kong
==> Installing kong from mashape/kong
==> Installing dependencies for mashape/kong/kong: mashape/kong/luarocks
==> Installing mashape/kong/kong dependency: mashape/kong/luarocks
==> Downloading https://luarocks.org/releases/luarocks-2.4.2.tar.gz
Already downloaded: /Users/username/Library/Caches/Homebrew/luarocks-2.4.2.tar.gz
==> Patching
patching file Makefile
==> ./configure --prefix=/usr/local/Cellar/luarocks/2.4.2 --rocks-tree=/usr/local/opt/kong --sysconfdir=/usr/local/Cellar/lu
Last 15 lines from /Users/username/Library/Logs/Homebrew/luarocks/01.configure:
--with-lua=/usr/local/opt/openresty/luajit
--with-lua-include=/usr/local/opt/openresty/luajit/include/luajit-2.1
--lua-suffix=jit

Lua version detected:
Lua interpreter found: /usr/local/opt/openresty/luajit/bin/luajit...
Checking Lua includes...
lua.h found in /usr/local/opt/openresty/luajit/include/luajit-2.1/lua.h
Checking if Lua header version matches that of the interpreter...
no
lua.h version mismatch (interpreter: ; lua.h: 5.1).
You may want to use the flag --with-lua or --with-lua-include. See --help.

configure failed.

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/mashape/homebrew-kong/issues`

I'm having this trouble just before using brew tap mashape/kong and then brew install kong.

Some luarocks error happens after a clean install

2016-05-25 14:00:38 +0800

make
install


Missing dependencies for kong:
lua_system_constants ~> 0.1.1-0
lua-cjson ~> 2.1.0-1
ansicolors ~> 1.0.2-3
lua-path ~> 0.2.3-1
lua-llthreads2 ~> 0.1.3-1
luasyslog >= 1.0.0-2
luatz ~> 0.3-1
pgmoon ~> 1.4.0
lapis ~> 1.3.1-1
luacrypto >= 0.3.2-1
lua_pack ~> 1.0.4-0
luasec ~> 0.5-2
multipart ~> 0.3-2
yaml ~> 1.1.2-1
lrexlib-pcre ~> 2.7.2-1
lua-cassandra ~> 0.5.2
penlight ~> 1.3.2
lbase64 ~> 20120820-1
stringy ~> 0.4-1
mediator_lua ~> 1.1.2-0
lua-resty-iputils ~> 0.2.0-1
luasocket ~> 2.0.2-6
lua_uuid ~> 0.2.0-2

Using https://luarocks.org/lua_system_constants-0.1.1-0.rockspec... switching to 'build' mode
Cloning into 'lua-system-constants'...
Note: checking out '68d1a0b6d69da5ac8dd266c007631f2b9be4118e'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -c -O2 -fPIC -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 lua_system_constants.c -o lua_system_constants.o
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -bundle -undefined dynamic_lookup -all_load -L/usr/local/Cellar/luajit/2.1_1/lib -o lua_system_constants.so lua_system_constants.o
/usr/local/Cellar/luajit/2.1_1/bin/luajit test/lua_system_constants_test.lua
cp lua_system_constants.so /usr/local/lib/luarocks/rocks/lua_system_constants/0.1.1-0/lib
Archive:  lua-cjson-2.1.0.zip
   creating: lua-cjson-2.1.0/
  inflating: lua-cjson-2.1.0/runtests.sh  
  inflating: lua-cjson-2.1.0/fpconv.c  
  inflating: lua-cjson-2.1.0/lua-cjson.spec  
  inflating: lua-cjson-2.1.0/rfc4627.txt  
  inflating: lua-cjson-2.1.0/dtoa.c  
  inflating: lua-cjson-2.1.0/lua-cjson-2.1.0-1.rockspec  
  inflating: lua-cjson-2.1.0/manual.txt  
  inflating: lua-cjson-2.1.0/performance.html  
  inflating: lua-cjson-2.1.0/CMakeLists.txt  
  inflating: lua-cjson-2.1.0/fpconv.h  
  inflating: lua-cjson-2.1.0/strbuf.h  
  inflating: lua-cjson-2.1.0/strbuf.c  
  inflating: lua-cjson-2.1.0/NEWS    
  inflating: lua-cjson-2.1.0/manual.html  
  inflating: lua-cjson-2.1.0/lua_cjson.c  
  inflating: lua-cjson-2.1.0/LICENSE  
  inflating: lua-cjson-2.1.0/dtoa_config.h  
   creating: lua-cjson-2.1.0/tests/
  inflating: lua-cjson-2.1.0/tests/bench.lua  
  inflating: lua-cjson-2.1.0/tests/numbers.json  
  inflating: lua-cjson-2.1.0/tests/example3.json  
  inflating: lua-cjson-2.1.0/tests/octets-escaped.dat  
 extracting: lua-cjson-2.1.0/tests/types.json  
  inflating: lua-cjson-2.1.0/tests/genutf8.pl  
  inflating: lua-cjson-2.1.0/tests/rfc-example1.json  
  inflating: lua-cjson-2.1.0/tests/example4.json  
  inflating: lua-cjson-2.1.0/tests/example2.json  
  inflating: lua-cjson-2.1.0/tests/README  
  inflating: lua-cjson-2.1.0/tests/rfc-example2.json  
  inflating: lua-cjson-2.1.0/tests/test.lua  
  inflating: lua-cjson-2.1.0/tests/example5.json  
  inflating: lua-cjson-2.1.0/tests/example1.json  
  inflating: lua-cjson-2.1.0/g_fmt.c  
  inflating: lua-cjson-2.1.0/Makefile  
   creating: lua-cjson-2.1.0/lua/
  inflating: lua-cjson-2.1.0/lua/lua2json.lua  
  inflating: lua-cjson-2.1.0/lua/json2lua.lua  
   creating: lua-cjson-2.1.0/lua/cjson/
  inflating: lua-cjson-2.1.0/lua/cjson/util.lua  
  inflating: lua-cjson-2.1.0/performance.txt  
  inflating: lua-cjson-2.1.0/THANKS  
Updating manifest for /usr/local/lib/luarocks/rocks
lua_system_constants 0.1.1-0 is now built and installed in /usr/local (license: MIT)

Using https://luarocks.org/lua-cjson-2.1.0-1.src.rock... switching to 'build' mode
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c lua_cjson.c -o lua_cjson.o
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c strbuf.c -o strbuf.o
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c fpconv.c -o fpconv.o
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -bundle -undefined dynamic_lookup -all_load -o cjson.so -L/usr/local/Cellar/luajit/2.1_1/lib lua_cjson.o strbuf.o fpconv.o
Updating manifest for /usr/local/lib/luarocks/rocks
lua-cjson 2.1.0-1 is now built and installed in /usr/local (license: MIT)

Using https://luarocks.org/ansicolors-1.0.2-3.src.rock... switching to 'build' mode
Archive:  v0.2.3.zip
7aeaa8ac43b1e29e7927afd323e43b8d956f2f2f
   creating: lua-path-0.2.3/
  inflating: lua-path-0.2.3/.travis.yml  
   creating: lua-path-0.2.3/.travis/
  inflating: lua-path-0.2.3/.travis/platform.sh  
  inflating: lua-path-0.2.3/.travis/setup_lua.sh  
  inflating: lua-path-0.2.3/CMakeLists.txt  
  inflating: lua-path-0.2.3/LICENCE.txt  
  inflating: lua-path-0.2.3/README.md  
   creating: lua-path-0.2.3/cmake/
  inflating: lua-path-0.2.3/cmake/FindLua.cmake  
  inflating: lua-path-0.2.3/cmake/dist.cmake  
  inflating: lua-path-0.2.3/cmake/lua.cmake  
  inflating: lua-path-0.2.3/dist.info  
   creating: lua-path-0.2.3/doc/
  inflating: lua-path-0.2.3/doc/config.ld  
  inflating: lua-path-0.2.3/doc/fs.ldoc  
  inflating: lua-path-0.2.3/doc/path.ldoc  
  inflating: lua-path-0.2.3/lakefile  
   creating: lua-path-0.2.3/lua/
  inflating: lua-path-0.2.3/lua/path.lua  
   creating: lua-path-0.2.3/lua/path/
  inflating: lua-path-0.2.3/lua/path/findfile.lua  
  inflating: lua-path-0.2.3/lua/path/fs.lua  
   creating: lua-path-0.2.3/lua/path/lfs/
  inflating: lua-path-0.2.3/lua/path/lfs/fs.lua  
   creating: lua-path-0.2.3/lua/path/lfs/impl/
  inflating: lua-path-0.2.3/lua/path/lfs/impl/fs.lua  
  inflating: lua-path-0.2.3/lua/path/module.lua  
   creating: lua-path-0.2.3/lua/path/syscall/
  inflating: lua-path-0.2.3/lua/path/syscall/fs.lua  
   creating: lua-path-0.2.3/lua/path/win32/
   creating: lua-path-0.2.3/lua/path/win32/alien/
  inflating: lua-path-0.2.3/lua/path/win32/alien/fs.lua  
  inflating: lua-path-0.2.3/lua/path/win32/alien/types.lua  
  inflating: lua-path-0.2.3/lua/path/win32/alien/utils.lua  
  inflating: lua-path-0.2.3/lua/path/win32/alien/wcs.lua  
   creating: lua-path-0.2.3/lua/path/win32/ffi/
  inflating: lua-path-0.2.3/lua/path/win32/ffi/fs.lua  
  inflating: lua-path-0.2.3/lua/path/win32/ffi/types.lua  
  inflating: lua-path-0.2.3/lua/path/win32/ffi/wcs.lua  
  inflating: lua-path-0.2.3/lua/path/win32/fs.lua  
  inflating: lua-path-0.2.3/lua/path/win32/wcs.lua  
   creating: lua-path-0.2.3/rockspecs/
  inflating: lua-path-0.2.3/rockspecs/lua-path-0.1.0-1.rockspec  
  inflating: lua-path-0.2.3/rockspecs/lua-path-0.1.1-1.rockspec  
  inflating: lua-path-0.2.3/rockspecs/lua-path-0.2.0-1.rockspec  
  inflating: lua-path-0.2.3/rockspecs/lua-path-0.2.1-1.rockspec  
  inflating: lua-path-0.2.3/rockspecs/lua-path-0.2.2-1.rockspec  
  inflating: lua-path-0.2.3/rockspecs/lua-path-0.2.3-1.rockspec  
  inflating: lua-path-0.2.3/rockspecs/lua-path-scm-0.rockspec  
   creating: lua-path-0.2.3/test/
  inflating: lua-path-0.2.3/test/.luacov  
  inflating: lua-path-0.2.3/test/each_perf.lua  
  inflating: lua-path-0.2.3/test/report_coverage.lua  
  inflating: lua-path-0.2.3/test/run.lua  
  inflating: lua-path-0.2.3/test/test.lua  
  inflating: lua-path-0.2.3/test/test_each.lua  
  inflating: lua-path-0.2.3/test/test_fs.lua  
  inflating: lua-path-0.2.3/test/test_lfs.lua  
  inflating: lua-path-0.2.3/test/test_wcs.lua  
  inflating: lua-path-0.2.3/test/utils.lua  
Updating manifest for /usr/local/lib/luarocks/rocks
ansicolors 1.0.2-3 is now built and installed in /usr/local (license: MIT <http://opensource.org/licenses/MIT>)

Using https://luarocks.org/lua-path-0.2.3-1.src.rock... switching to 'build' mode
Archive:  v0.1.3.zip
7b05a0a79a6da66d85ec78e140fa425eb01d6ba0
   creating: lua-llthreads2-0.1.3/
  inflating: lua-llthreads2-0.1.3/.gitignore  
  inflating: lua-llthreads2-0.1.3/.travis.yml  
   creating: lua-llthreads2-0.1.3/.travis/
  inflating: lua-llthreads2-0.1.3/.travis/platform.sh  
  inflating: lua-llthreads2-0.1.3/.travis/setup_lua.sh  
  inflating: lua-llthreads2-0.1.3/CMakeLists.txt  
  inflating: lua-llthreads2-0.1.3/COPYRIGHT.llthreads  
  inflating: lua-llthreads2-0.1.3/LICENSE  
  inflating: lua-llthreads2-0.1.3/README.md  
   creating: lua-llthreads2-0.1.3/cmake/
  inflating: lua-llthreads2-0.1.3/cmake/FindLua.cmake  
  inflating: lua-llthreads2-0.1.3/cmake/dist.cmake  
  inflating: lua-llthreads2-0.1.3/cmake/lua.cmake  
  inflating: lua-llthreads2-0.1.3/dist.info  
  inflating: lua-llthreads2-0.1.3/lakeconfig.lua  
  inflating: lua-llthreads2-0.1.3/lakefile  
   creating: lua-llthreads2-0.1.3/msvc/
  inflating: lua-llthreads2-0.1.3/msvc/llthreads.sln  
  inflating: lua-llthreads2-0.1.3/msvc/llthreads.vcproj  
   creating: lua-llthreads2-0.1.3/rockspecs/
  inflating: lua-llthreads2-0.1.3/rockspecs/lua-llthreads2-0.1.0-1.rockspec  
  inflating: lua-llthreads2-0.1.3/rockspecs/lua-llthreads2-0.1.1-1.rockspec  
  inflating: lua-llthreads2-0.1.3/rockspecs/lua-llthreads2-0.1.2-1.rockspec  
  inflating: lua-llthreads2-0.1.3/rockspecs/lua-llthreads2-0.1.3-1.rockspec  
  inflating: lua-llthreads2-0.1.3/rockspecs/lua-llthreads2-compat-0.1.0-1.rockspec  
  inflating: lua-llthreads2-0.1.3/rockspecs/lua-llthreads2-compat-0.1.1-1.rockspec  
  inflating: lua-llthreads2-0.1.3/rockspecs/lua-llthreads2-compat-0.1.2-1.rockspec  
  inflating: lua-llthreads2-0.1.3/rockspecs/lua-llthreads2-compat-0.1.3-1.rockspec  
  inflating: lua-llthreads2-0.1.3/rockspecs/lua-llthreads2-compat-scm-0.rockspec  
  inflating: lua-llthreads2-0.1.3/rockspecs/lua-llthreads2-scm-0.rockspec  
   creating: lua-llthreads2-0.1.3/src/
  inflating: lua-llthreads2-0.1.3/src/copy.inc  
  inflating: lua-llthreads2-0.1.3/src/l52util.c  
  inflating: lua-llthreads2-0.1.3/src/l52util.h  
  inflating: lua-llthreads2-0.1.3/src/llthread.c  
   creating: lua-llthreads2-0.1.3/src/lua/
   creating: lua-llthreads2-0.1.3/src/lua/llthreads2/
  inflating: lua-llthreads2-0.1.3/src/lua/llthreads2/ex.lua  
  inflating: lua-llthreads2-0.1.3/src/traceback.inc  
   creating: lua-llthreads2-0.1.3/test/
  inflating: lua-llthreads2-0.1.3/test/test_alive.lua  
  inflating: lua-llthreads2-0.1.3/test/test_join_detach.lua  
  inflating: lua-llthreads2-0.1.3/test/test_join_error.lua  
  inflating: lua-llthreads2-0.1.3/test/test_join_timeout.lua  
  inflating: lua-llthreads2-0.1.3/test/test_llthreads.lua  
  inflating: lua-llthreads2-0.1.3/test/test_load_llthreads2.lua  
  inflating: lua-llthreads2-0.1.3/test/test_logger.lua  
  inflating: lua-llthreads2-0.1.3/test/test_pass_cfunction.lua  
  inflating: lua-llthreads2-0.1.3/test/test_register_ffi.lua  
  inflating: lua-llthreads2-0.1.3/test/test_register_llthreads.lua  
  inflating: lua-llthreads2-0.1.3/test/test_table_copy.lua  
  inflating: lua-llthreads2-0.1.3/test/test_threads.lua  
  inflating: lua-llthreads2-0.1.3/test/test_threads_attr.lua  
  inflating: lua-llthreads2-0.1.3/test/test_threads_ex.lua  
  inflating: lua-llthreads2-0.1.3/test/test_threads_ex_arg.lua  
  inflating: lua-llthreads2-0.1.3/test/test_threads_ex_opt.lua  
  inflating: lua-llthreads2-0.1.3/test/utils.lua  
Updating manifest for /usr/local/lib/luarocks/rocks
lua-path 0.2.3-1 is now built and installed in /usr/local (license: MIT/X11)

Using https://luarocks.org/lua-llthreads2-0.1.3-1.src.rock... switching to 'build' mode
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/l52util.c -o src/l52util.o -DLLTHREAD_MODULE_NAME=llthreads2
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/llthread.c -o src/llthread.o -DLLTHREAD_MODULE_NAME=llthreads2
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -bundle -undefined dynamic_lookup -all_load -o llthreads2.so -L/usr/local/Cellar/luajit/2.1_1/lib src/l52util.o src/llthread.o -lpthread

Missing dependencies for luasyslog:
lualogging >= 1.1.4


Missing dependencies for lualogging:
luasocket 

Archive:  v3.0-rc1.zip
22cd5833fcc0e272f26004a79c8545e959ba406b
   creating: luasocket-3.0-rc1/
  inflating: luasocket-3.0-rc1/.gitignore  
  inflating: luasocket-3.0-rc1/.travis.yml  
  inflating: luasocket-3.0-rc1/FIX   
  inflating: luasocket-3.0-rc1/LICENSE  
  inflating: luasocket-3.0-rc1/Lua51.props  
  inflating: luasocket-3.0-rc1/Lua52.props  
  inflating: luasocket-3.0-rc1/NEW   
  inflating: luasocket-3.0-rc1/README  
  inflating: luasocket-3.0-rc1/TODO  
  inflating: luasocket-3.0-rc1/WISH  
   creating: luasocket-3.0-rc1/doc/
  inflating: luasocket-3.0-rc1/doc/dns.html  
  inflating: luasocket-3.0-rc1/doc/ftp.html  
  inflating: luasocket-3.0-rc1/doc/http.html  
  inflating: luasocket-3.0-rc1/doc/index.html  
  inflating: luasocket-3.0-rc1/doc/installation.html  
  inflating: luasocket-3.0-rc1/doc/introduction.html  
  inflating: luasocket-3.0-rc1/doc/ltn12.html  
  inflating: luasocket-3.0-rc1/doc/lua05.ppt  
  inflating: luasocket-3.0-rc1/doc/luasocket.png  
  inflating: luasocket-3.0-rc1/doc/mime.html  
  inflating: luasocket-3.0-rc1/doc/reference.css  
  inflating: luasocket-3.0-rc1/doc/reference.html  
  inflating: luasocket-3.0-rc1/doc/smtp.html  
  inflating: luasocket-3.0-rc1/doc/socket.html  
  inflating: luasocket-3.0-rc1/doc/tcp.html  
  inflating: luasocket-3.0-rc1/doc/udp.html  
  inflating: luasocket-3.0-rc1/doc/url.html  
   creating: luasocket-3.0-rc1/etc/
  inflating: luasocket-3.0-rc1/etc/README  
  inflating: luasocket-3.0-rc1/etc/b64.lua  
  inflating: luasocket-3.0-rc1/etc/check-links.lua  
  inflating: luasocket-3.0-rc1/etc/check-memory.lua  
  inflating: luasocket-3.0-rc1/etc/cookie.lua  
  inflating: luasocket-3.0-rc1/etc/dict.lua  
  inflating: luasocket-3.0-rc1/etc/dispatch.lua  
  inflating: luasocket-3.0-rc1/etc/eol.lua  
  inflating: luasocket-3.0-rc1/etc/forward.lua  
  inflating: luasocket-3.0-rc1/etc/get.lua  
  inflating: luasocket-3.0-rc1/etc/links  
  inflating: luasocket-3.0-rc1/etc/lp.lua  
  inflating: luasocket-3.0-rc1/etc/qp.lua  
  inflating: luasocket-3.0-rc1/etc/tftp.lua  
   creating: luasocket-3.0-rc1/gem/
  inflating: luasocket-3.0-rc1/gem/ex1.lua  
  inflating: luasocket-3.0-rc1/gem/ex10.lua  
  inflating: luasocket-3.0-rc1/gem/ex11.lua  
  inflating: luasocket-3.0-rc1/gem/ex12.lua  
  inflating: luasocket-3.0-rc1/gem/ex2.lua  
  inflating: luasocket-3.0-rc1/gem/ex3.lua  
  inflating: luasocket-3.0-rc1/gem/ex4.lua  
  inflating: luasocket-3.0-rc1/gem/ex5.lua  
  inflating: luasocket-3.0-rc1/gem/ex6.lua  
  inflating: luasocket-3.0-rc1/gem/ex7.lua  
  inflating: luasocket-3.0-rc1/gem/ex8.lua  
  inflating: luasocket-3.0-rc1/gem/ex9.lua  
  inflating: luasocket-3.0-rc1/gem/gem.c  
  inflating: luasocket-3.0-rc1/gem/gt.b64  
  inflating: luasocket-3.0-rc1/gem/input.bin  
  inflating: luasocket-3.0-rc1/gem/ltn012.tex  
  inflating: luasocket-3.0-rc1/gem/luasocket.png  
  inflating: luasocket-3.0-rc1/gem/makefile  
  inflating: luasocket-3.0-rc1/gem/myps2pdf  
  inflating: luasocket-3.0-rc1/gem/t1.lua  
  inflating: luasocket-3.0-rc1/gem/t1lf.txt  
  inflating: luasocket-3.0-rc1/gem/t2.lua  
  inflating: luasocket-3.0-rc1/gem/t2.txt  
  inflating: luasocket-3.0-rc1/gem/t2gt.qp  
  inflating: luasocket-3.0-rc1/gem/t3.lua  
  inflating: luasocket-3.0-rc1/gem/t4.lua  
  inflating: luasocket-3.0-rc1/gem/t5.lua  
  inflating: luasocket-3.0-rc1/gem/test.lua  
  inflating: luasocket-3.0-rc1/linux.cmd  
  inflating: luasocket-3.0-rc1/logo.ps  
  inflating: luasocket-3.0-rc1/ltn012.wiki  
  inflating: luasocket-3.0-rc1/ltn013.wiki  
  inflating: luasocket-3.0-rc1/luasocket-scm-0.rockspec  
  inflating: luasocket-3.0-rc1/luasocket.sln  
  inflating: luasocket-3.0-rc1/macosx.cmd  
  inflating: luasocket-3.0-rc1/makefile  
  inflating: luasocket-3.0-rc1/makefile.dist  
  inflating: luasocket-3.0-rc1/mime.vcxproj  
  inflating: luasocket-3.0-rc1/mime.vcxproj.filters  
  inflating: luasocket-3.0-rc1/mingw.cmd  
   creating: luasocket-3.0-rc1/samples/
  inflating: luasocket-3.0-rc1/samples/README  
  inflating: luasocket-3.0-rc1/samples/cddb.lua  
  inflating: luasocket-3.0-rc1/samples/daytimeclnt.lua  
  inflating: luasocket-3.0-rc1/samples/echoclnt.lua  
  inflating: luasocket-3.0-rc1/samples/echosrvr.lua  
  inflating: luasocket-3.0-rc1/samples/listener.lua  
  inflating: luasocket-3.0-rc1/samples/lpr.lua  
  inflating: luasocket-3.0-rc1/samples/mclisten.lua  
  inflating: luasocket-3.0-rc1/samples/mcsend.lua  
  inflating: luasocket-3.0-rc1/samples/talker.lua  
  inflating: luasocket-3.0-rc1/samples/tinyirc.lua  
  inflating: luasocket-3.0-rc1/socket.vcxproj  
  inflating: luasocket-3.0-rc1/socket.vcxproj.filters  
   creating: luasocket-3.0-rc1/src/
  inflating: luasocket-3.0-rc1/src/auxiliar.c  
  inflating: luasocket-3.0-rc1/src/auxiliar.h  
  inflating: luasocket-3.0-rc1/src/buffer.c  
  inflating: luasocket-3.0-rc1/src/buffer.h  
  inflating: luasocket-3.0-rc1/src/except.c  
  inflating: luasocket-3.0-rc1/src/except.h  
  inflating: luasocket-3.0-rc1/src/ftp.lua  
  inflating: luasocket-3.0-rc1/src/headers.lua  
  inflating: luasocket-3.0-rc1/src/http.lua  
  inflating: luasocket-3.0-rc1/src/inet.c  
  inflating: luasocket-3.0-rc1/src/inet.h  
  inflating: luasocket-3.0-rc1/src/io.c  
  inflating: luasocket-3.0-rc1/src/io.h  
  inflating: luasocket-3.0-rc1/src/ltn12.lua  
  inflating: luasocket-3.0-rc1/src/luasocket.c  
  inflating: luasocket-3.0-rc1/src/luasocket.h  
  inflating: luasocket-3.0-rc1/src/makefile  
  inflating: luasocket-3.0-rc1/src/mbox.lua  
  inflating: luasocket-3.0-rc1/src/mime.c  
  inflating: luasocket-3.0-rc1/src/mime.h  
  inflating: luasocket-3.0-rc1/src/mime.lua  
  inflating: luasocket-3.0-rc1/src/options.c  
  inflating: luasocket-3.0-rc1/src/options.h  
  inflating: luasocket-3.0-rc1/src/select.c  
  inflating: luasocket-3.0-rc1/src/select.h  
  inflating: luasocket-3.0-rc1/src/serial.c  
  inflating: luasocket-3.0-rc1/src/smtp.lua  
  inflating: luasocket-3.0-rc1/src/socket.h  
  inflating: luasocket-3.0-rc1/src/socket.lua  
  inflating: luasocket-3.0-rc1/src/tcp.c  
  inflating: luasocket-3.0-rc1/src/tcp.h  
  inflating: luasocket-3.0-rc1/src/timeout.c  
  inflating: luasocket-3.0-rc1/src/timeout.h  
  inflating: luasocket-3.0-rc1/src/tp.lua  
  inflating: luasocket-3.0-rc1/src/udp.c  
  inflating: luasocket-3.0-rc1/src/udp.h  
  inflating: luasocket-3.0-rc1/src/unix.c  
  inflating: luasocket-3.0-rc1/src/unix.h  
  inflating: luasocket-3.0-rc1/src/url.lua  
  inflating: luasocket-3.0-rc1/src/usocket.c  
  inflating: luasocket-3.0-rc1/src/usocket.h  
  inflating: luasocket-3.0-rc1/src/wsocket.c  
  inflating: luasocket-3.0-rc1/src/wsocket.h  
   creating: luasocket-3.0-rc1/test/
  inflating: luasocket-3.0-rc1/test/README  
   creating: luasocket-3.0-rc1/test/auth/
 extracting: luasocket-3.0-rc1/test/auth/.htpasswd  
  inflating: luasocket-3.0-rc1/test/auth/index.html  
   creating: luasocket-3.0-rc1/test/cgi/
  inflating: luasocket-3.0-rc1/test/cgi/cat  
  inflating: luasocket-3.0-rc1/test/cgi/cat-index-html  
  inflating: luasocket-3.0-rc1/test/cgi/env  
  inflating: luasocket-3.0-rc1/test/cgi/query-string  
  inflating: luasocket-3.0-rc1/test/cgi/redirect-loop  
  inflating: luasocket-3.0-rc1/test/cgi/request-uri  
  inflating: luasocket-3.0-rc1/test/dicttest.lua  
  inflating: luasocket-3.0-rc1/test/excepttest.lua  
  inflating: luasocket-3.0-rc1/test/find-connect-limit  
  inflating: luasocket-3.0-rc1/test/ftptest.lua  
  inflating: luasocket-3.0-rc1/test/hello.lua  
  inflating: luasocket-3.0-rc1/test/httptest.lua  
  inflating: luasocket-3.0-rc1/test/index.html  
  inflating: luasocket-3.0-rc1/test/ltn12test.lua  
  inflating: luasocket-3.0-rc1/test/luasocket.png  
  inflating: luasocket-3.0-rc1/test/mimetest.lua  
  inflating: luasocket-3.0-rc1/test/smtptest.lua  
  inflating: luasocket-3.0-rc1/test/stufftest.lua  
  inflating: luasocket-3.0-rc1/test/tcp-getoptions  
  inflating: luasocket-3.0-rc1/test/test_bind.lua  
  inflating: luasocket-3.0-rc1/test/test_getaddrinfo.lua  
  inflating: luasocket-3.0-rc1/test/test_socket_error.lua  
  inflating: luasocket-3.0-rc1/test/testclnt.lua  
  inflating: luasocket-3.0-rc1/test/testmesg.lua  
  inflating: luasocket-3.0-rc1/test/testsrvr.lua  
  inflating: luasocket-3.0-rc1/test/testsupport.lua  
  inflating: luasocket-3.0-rc1/test/tftptest.lua  
  inflating: luasocket-3.0-rc1/test/udp-zero-length-send  
  inflating: luasocket-3.0-rc1/test/udp-zero-length-send-recv  
  inflating: luasocket-3.0-rc1/test/udpconnectclnt.lua  
  inflating: luasocket-3.0-rc1/test/udpconnectsrvr.lua  
  inflating: luasocket-3.0-rc1/test/unixclnt.lua  
  inflating: luasocket-3.0-rc1/test/unixsrvr.lua  
  inflating: luasocket-3.0-rc1/test/upload.html  
  inflating: luasocket-3.0-rc1/test/urltest.lua  
  inflating: luasocket-3.0-rc1/test/utestclnt.lua  
  inflating: luasocket-3.0-rc1/test/utestsrvr.lua  
  inflating: luasocket-3.0-rc1/win32.cmd  
Updating manifest for /usr/local/lib/luarocks/rocks
lua-llthreads2 0.1.3-1 is now built and installed in /usr/local (license: MIT/X11)

Using https://luarocks.org/luasyslog-1.0.0-2.src.rock... switching to 'build' mode
Using https://luarocks.org/lualogging-1.3.0-1.src.rock... switching to 'build' mode
Using https://luarocks.org/luasocket-3.0rc1-2.src.rock... switching to 'build' mode
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/mime.c -o src/mime.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -bundle -undefined dynamic_lookup -all_load -o mime/core.so -L/usr/local/Cellar/luajit/2.1_1/lib src/mime.o
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/buffer.c -o src/buffer.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/auxiliar.c -o src/auxiliar.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/options.c -o src/options.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/timeout.c -o src/timeout.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/io.c -o src/io.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/usocket.c -o src/usocket.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/serial.c -o src/serial.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -bundle -undefined dynamic_lookup -all_load -o socket/serial.so -L/usr/local/Cellar/luajit/2.1_1/lib src/buffer.o src/auxiliar.o src/options.o src/timeout.o src/io.o src/usocket.o src/serial.o
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/luasocket.c -o src/luasocket.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/timeout.c -o src/timeout.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/buffer.c -o src/buffer.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/io.c -o src/io.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/auxiliar.c -o src/auxiliar.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/options.c -o src/options.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/inet.c -o src/inet.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/except.c -o src/except.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/select.c -o src/select.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/tcp.c -o src/tcp.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/udp.c -o src/udp.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/usocket.c -o src/usocket.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -bundle -undefined dynamic_lookup -all_load -o socket/core.so -L/usr/local/Cellar/luajit/2.1_1/lib src/luasocket.o src/timeout.o src/buffer.o src/io.o src/auxiliar.o src/options.o src/inet.o src/except.o src/select.o src/tcp.o src/udp.o src/usocket.o
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/buffer.c -o src/buffer.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/auxiliar.c -o src/auxiliar.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/options.c -o src/options.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/timeout.c -o src/timeout.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/io.c -o src/io.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/usocket.c -o src/usocket.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/unix.c -o src/unix.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN -DLUASOCKET_API=__attribute__((visibility("default"))) -DUNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -bundle -undefined dynamic_lookup -all_load -o socket/unix.so -L/usr/local/Cellar/luajit/2.1_1/lib src/buffer.o src/auxiliar.o src/options.o src/timeout.o src/io.o src/usocket.o src/unix.o
Updating manifest for /usr/local/lib/luarocks/rocks
luasocket 3.0rc1-2 is now built and installed in /usr/local (license: MIT)

Updating manifest for /usr/local/lib/luarocks/rocks
lualogging 1.3.0-1 is now built and installed in /usr/local (license: MIT/X11)

export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c lsyslog.c -o lsyslog.o -DluaL_reg=luaL_Reg
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -bundle -undefined dynamic_lookup -all_load -o lsyslog.so -L/usr/local/Cellar/luajit/2.1_1/lib lsyslog.o

Missing dependencies for pgmoon:
lpeg 

Updating manifest for /usr/local/lib/luarocks/rocks
luasyslog 1.0.0-2 is now built and installed in /usr/local (license: MIT/X11)

Updating manifest for /usr/local/lib/luarocks/rocks

luatz 0.3-1 is now installed in /usr/local (license: MIT/X11)
Using https://luarocks.org/pgmoon-1.4.0-1.src.rock... switching to 'build' mode
Using https://luarocks.org/lpeg-1.0.0-1.src.rock... switching to 'build' mode
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c lpcap.c -o lpcap.o
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c lpcode.c -o lpcode.o
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c lpprint.c -o lpprint.o
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c lptree.c -o lptree.o
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c lpvm.c -o lpvm.o
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -bundle -undefined dynamic_lookup -all_load -o lpeg.so -L/usr/local/Cellar/luajit/2.1_1/lib lpcap.o lpcode.o lpprint.o lptree.o lpvm.o
Updating manifest for /usr/local/lib/luarocks/rocks
lpeg 1.0.0-1 is now built and installed in /usr/local (license: MIT/X11)


Missing dependencies for lapis:
luafilesystem 
loadkit 
mimetypes 
luacrypto 
etlua 

Updating manifest for /usr/local/lib/luarocks/rocks
pgmoon 1.4.0-1 is now built and installed in /usr/local (license: MIT)

Using https://luarocks.org/lapis-1.3.1-1.src.rock... switching to 'build' mode
Using https://luarocks.org/luafilesystem-1.6.3-2.src.rock... switching to 'build' mode
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -O2 -fPIC -I/usr/local/Cellar/luajit/2.1_1/include/luajit-2.1 -c src/lfs.c -o src/lfs.o
export MACOSX_DEPLOYMENT_TARGET=10.8; gcc -bundle -undefined dynamic_lookup -all_load -o lfs.so -L/usr/local/Cellar/luajit/2.1_1/lib src/lfs.o
Updating manifest for /usr/local/lib/luarocks/rocks
luafilesystem 1.6.3-2 is now built and installed in /usr/local (license: MIT/X11)

Using https://luarocks.org/loadkit-1.1.0-1.src.rock... switching to 'build' mode
Updating manifest for /usr/local/lib/luarocks/rocks
loadkit 1.1.0-1 is now built and installed in /usr/local (license: MIT)

Using https://luarocks.org/mimetypes-1.0.0-1.src.rock... switching to 'build' mode

Error: LuaRocks 2.2.2 bug (please report at https://github.com/keplerproject/luarocks/issues).
...al/Cellar/luarocks/2.2.2/share/lua/5.1/luarocks/deps.lua:552: bad argument #1 to 'ipairs' (table expected, got nil)
stack traceback:
    [C]: in function 'ipairs'
    ...al/Cellar/luarocks/2.2.2/share/lua/5.1/luarocks/deps.lua:552: in function 'check_external_deps'
    ...l/Cellar/luarocks/2.2.2/share/lua/5.1/luarocks/build.lua:195: in function 'build_rockspec'
    ...l/Cellar/luarocks/2.2.2/share/lua/5.1/luarocks/build.lua:369: in function 'do_build'
    ...l/Cellar/luarocks/2.2.2/share/lua/5.1/luarocks/build.lua:412: in function 'run'
    ...al/Cellar/luarocks/2.2.2/share/lua/5.1/luarocks/deps.lua:487: in function 'fulfill_dependencies'
    ...l/Cellar/luarocks/2.2.2/share/lua/5.1/luarocks/build.lua:181: in function 'build_rockspec'
    ...l/Cellar/luarocks/2.2.2/share/lua/5.1/luarocks/build.lua:369: in function 'do_build'
    ...l/Cellar/luarocks/2.2.2/share/lua/5.1/luarocks/build.lua:412: in function 'run'
    ...al/Cellar/luarocks/2.2.2/share/lua/5.1/luarocks/deps.lua:487: in function 'fulfill_dependencies'
    ...l/Cellar/luarocks/2.2.2/share/lua/5.1/luarocks/build.lua:181: in function 'build_rockspec'
    ...al/Cellar/luarocks/2.2.2/share/lua/5.1/luarocks/make.lua:82: in function <...al/Cellar/luarocks/2.2.2/share/lua/5.1/luarocks/make.lua:51>
    [C]: in function 'xpcall'
    ...r/luarocks/2.2.2/share/lua/5.1/luarocks/command_line.lua:208: in function 'run_command'
    /usr/local/opt/luarocks/bin/luarocks:33: in main chunk
    [C]: at 0x010c78fe40
Updating manifest for /usr/local/lib/luarocks/rocks
mimetypes 1.0.0-1 is now built and installed in /usr/local (license: MIT/X11)

Using https://luarocks.org/luacrypto-0.3.2-1.src.rock... switching to 'build' mode
make: *** [install] Error 99

HOMEBREW_VERSION: 0.9.9
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: 898cb93f78a2ee75c015b3b80c9f423af2b37a22
Last commit: 6 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: b4ac4e505671d0c5f55f14d3b5409e923f8d4319
Core tap last commit: 9 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: 8-core 64-bit haswell
GCC-4.2: build 0
Clang: 7.3 build 703
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: 1.8.0_92
System Ruby: 2.0.0-p648
OS X: 10.11.5-x86_64
Xcode: 7.3.1
CLT: 7.3.1.0.1.1461711523
X11: N/A

HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /usr/local/opt/openssl:/usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
MACOSX_DEPLOYMENT_TARGET: 10.11
PKG_CONFIG_PATH: /usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/ossp-uuid/lib/pkgconfig:/usr/local/opt/luajit/lib/pkgconfig:/usr/local/opt/pcre/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.11
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Library/ENV/4.3:/usr/local/opt/openssl/bin:/usr/local/opt/ossp-uuid/bin:/usr/local/opt/serf/bin:/usr/local/opt/luajit/bin:/usr/local/opt/luarocks/bin:/usr/local/opt/pcre/bin:/usr/local/opt/ngx_openresty/bin:/usr/local/opt/git/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: Failed installing dependency: https://luarocks.org/luatz-0.3-1.all.rock - Could not fetch rock file: Error fetching file: Failed downloading https://luarocks.org/luatz-0.3-1.all.rock - luatz-0.3-1.all.rock

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/mashape/homebrew-kong/issues

/usr/local/Homebrew/Library/Homebrew/utils/github.rb:220:in raise_api_error': curl failed! (GitHub::Error) curl: (22) The requested URL returned error: 422 Unprocessable Entity curl: (3) <url> malformed from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:178:in open'
from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:278:in search' from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:225:in search_issues'
from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:238:in issues_for_formula' from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:369:in fetch_issues'
from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:365:in issues' from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:419:in dump'
from /usr/local/Homebrew/Library/Homebrew/brew.rb:138:in rescue in <main>' from /usr/local/Homebrew/Library/Homebrew/brew.rb:30:in

'

Serf 0.8.0 get installed whereas 0.7 is required

See email below;

On 21 Sep 2016, at 08:11, xxxxxxxxxxx wrote:

Hi,

It came from home-brew (I assume when I installed kong as a dependency)

I uninstalled it and did a manual install from the binary download – all working now thanks.

Regs
xxxxxxxx

From: xxxxxxxxxxxxxxxx
Date: Wednesday, 21 September 2016 at 4:06 PM
To: xxxxxxxxxxxxxxxx
Subject: Re: Mashape Enterprise demo

xxxxxxxx,

Where did that Serf version come from? Was it installed by Kong, or did you manually install that?

Serf 0.8 is brand new. So it might indicate that we have some script installing 'latest' instead of the specific 0.7 version. Hence the question.

Regards,
Thijs

On Wed, Sep 21, 2016 at 2:06 AM +0200, xxxxxxxxxxxxxxxx wrote:

Haha well that was a newbie error.

I had previously had the same issue on Centos, where I think the issue may have been the cassandra version I was using. So I didn’t look to much further into the config file this time.

I now have this error ( I installed with home-brew ), but the issue here is pretty obvious.

Thanks
xxxxxxxxxxxxxxxx

Error:
/usr/local/share/lua/5.1/kong/cmd/start.lua:37: /usr/local/share/lua/5.1/kong/cmd/start.lua:22: incompatible serf found. Kong requires version 0.7.0, got 0.8.0
stack traceback:
[C]: in function 'error'
/usr/local/share/lua/5.1/kong/cmd/start.lua:37: in function 'cmd_exec'
/usr/local/share/lua/5.1/kong/cmd/init.lua:81: in function </usr/local/share/lua/5.1/kong/cmd/init.lua:81>
[C]: in function 'xpcall'
/usr/local/share/lua/5.1/kong/cmd

README should mention luarocks dependencies

It's totally undocumented that we need to install luarocks dependencies separately. Don't know if I'm correct but I've been getting a lot of errors and installing luarocks packages fixed the issue.

luarocks install ansicolors yaml lub lua-path luasocket luasec lua-cassandra luatz

I don't file a PR as I'm not sure if it's an issue or I'm just being a Lua n00b.

Installing 1.1 fails

The install fails because a missing luarocks dependency is not satisfied:

kong 1.1.0-0 depends on lyaml 6.2.3 (not installed)
Installing https://luarocks.org/lyaml-6.2.3-1.src.rock

Error: Failed installing dependency: https://luarocks.org/lyaml-6.2.3-1.src.rock - Could not find library file for YAML
No file libyaml.a in /usr/local/lib
No file libyaml.dylib in /usr/local/lib
No file matching libyaml.so.* in /usr/local/lib
No file libyaml.a in /usr/lib
No file libyaml.dylib in /usr/lib
No file matching libyaml.so.* in /usr/lib
No file libyaml.a in /lib
No file libyaml.dylib in /lib
No file matching libyaml.so.* in /lib

I then manually installed libyaml using brew install libyaml. Re-attempting to install kong succeeds, however, kong does not function correctly. I have postgresql as the backend; the migrations bootstrap succeeded. After starting kong, the admin interface fails with an abrupt closing of the socket. Not sure if this latter problem is with the installation or with kong itself.

Can't force openssl link

See Homebrew/brew#597.

$ brew link openssl --force
Warning: Refusing to link: openssl
Linking keg-only OpenSSL means you may end up linking against the insecure,
deprecated system version while using the headers from the Homebrew version.
Instead, pass the full include/library paths to your compiler e.g.:
  -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib

brew install kong failed

/usr/local/Homebrew/Library/Homebrew/utils/github.rb:252:in raise_api_error': curl failed! % Total % Received % Xferd Average Speed Time Time Time Current (GitHub::Error) Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:45 --:--:-- 0 curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to api.github.com:443 from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:206:in open_api'
from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:324:in search' from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:257:in search_issues'
from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:270:in issues_for_formula' from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:372:in fetch_issues'
from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:368:in issues' from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:422:in dump'
from /usr/local/Homebrew/Library/Homebrew/brew.rb:127:in rescue in <main>' from /usr/local/Homebrew/Library/Homebrew/brew.rb:17:in

'

brew install kong fails (0.14.1)

$ brew tap kong/kong
==> Tapping kong/kong
Cloning into '/usr/local/Homebrew/Library/Taps/kong/homebrew-kong'...
remote: Enumerating objects: 7, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 7 (delta 0), reused 3 (delta 0), pack-reused 0
Unpacking objects: 100% (7/7), done.
Tapped 3 formulae (34 files, 31.8KB).

$ brew install kong -vd
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/kong/homebrew-kong/Formula/kong.rb
Error: /usr/local/opt/kong is not a valid keg
/usr/local/Homebrew/Library/Homebrew/keg.rb:195:in `initialize'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:242:in `new'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:242:in `block in install'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:126:in `each'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:126:in `install'
/usr/local/Homebrew/Library/Homebrew/brew.rb:89:in `<main>'

brew install kong fails, Error linking gcc_s.10.4

Hi, brew install kong fails with the following error.

System Version: OS X 10.10.5 (14F27)
Kernel Version: Darwin 14.5.0

$ brew install kong
==> Installing kong from mashape/homebrew-kong
==> Installing dependencies for mashape/kong/kong: mashape/kong/ngx_openresty
==> Installing mashape/kong/kong dependency: mashape/kong/ngx_openresty
==> Downloading http://openresty.org/download/ngx_openresty-1.9.3.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/ngx_openresty-1.9.3.1.tar.gz
==> Patching
patching file bundle/nginx-1.9.3/src/event/ngx_event_openssl.c
Hunk #1 succeeded at 1206 (offset 85 lines).
patching file bundle/nginx-1.9.3/src/event/ngx_event_openssl.h
==> curl -s -L -o /private/tmp/ngx_openresty20151008-96271-l7uxma/ngx_openresty-1.9.3.1/ssl-cert-by-lua.tar.gz https://github.com/open
==> tar -xzf ssl-cert-by-lua.tar.gz
==> rm -rf bundle/ngx_lua-0.9.16/*
==> cp -R lua-nginx-module-ssl-cert-by-lua/* bundle/ngx_lua-0.9.16/
==> ./configure --prefix=/usr/local/Cellar/ngx_openresty/1.9.3.1 --with-ipv6 --with-luajit --with-pcre-jit --with-http_ssl_module --wi
Last 15 lines from /Users/andersjanmyr/Library/Logs/Homebrew/ngx_openresty/05.configure:
CC        lj_carith.o
CC        lj_clib.o
CC        lj_cparse.o
CC        lj_lib.o
CC        lj_alloc.o
CC        lib_aux.o
CC        lib_package.o
CC        lib_init.o
CC        luajit.o
HOSTLINK  host/minilua
ld: library not found for -lgcc_s.10.4
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [host/minilua] Error 1
make: *** [default] Error 2
ERROR: failed to run command: gmake TARGET_STRIP=@: CCDEBUG=-g CC=cc PREFIX=/usr/local/Cellar/ngx_openresty/1.9.3.1/luajit

SHA256 mismatch when trying to install kong

I was trying to install kong with cassandra but it is failing after cassandra is installed and kong is downloaded:

*XXX-MacBook-Pro:~ xxx$ brew install kong
==> Installing kong from mashape/homebrew-kong
==> Downloading https://github.com/Mashape/kong/archive/0.4.2.tar.gz
==> Downloading from https://codeload.github.com/Mashape/kong/tar.gz/0.4.2

################################################################## 100.0%

Error: SHA256 mismatch
Expected: 838d7672275e23a1bebd763890bd840277657c18a9ddf9ad1ac75a49bf56c4b2
Actual: 9d7a1503e75ed7ffce702ca797d18b30783a62aa01884ec3f7f45873cad67fb8
Archive: /Library/Caches/Homebrew/kong-0.4.2.tar.gz
To retry an incomplete download, remove the file above.*

I have retried removing this tar file and re installing but still the same result. Can you check if your config and tar file's checksum is same on these mirrors?

Error: The `brew link` step did not complete successfully

Error: The brew link step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/nginx
Target /usr/local/bin/nginx
is a symlink belonging to nginx. You can unlink it:
brew unlink nginx

To force the link and overwrite all conflicting files:
brew link --overwrite openresty

To list all files that would be deleted:
brew link --overwrite --dry-run openresty

Possible conflicting files are:
/usr/local/bin/nginx -> /usr/local/Cellar/nginx/1.10.2_1/bin/nginx
==> Summary
🍺 /usr/local/Cellar/openresty/1.11.2.4: 287 files, 5.7MB, built in 1 minute 14 seconds
==> Installing mashape/kong/kong dependency: mashape/kong/luarocks
==> Downloading https://luarocks.org/releases/luarocks-2.4.2.tar.gz
==> Downloading from http://luarocks.github.io/luarocks/releases/luarocks-2.4.2.tar.gz
######################################################################## 100.0%
==> Patching
patching file Makefile
==> ./configure --prefix=/usr/local/Cellar/luarocks/2.4.2 --rocks-tree=/usr/local/opt/kong --sysconfdir=/usr/local/Cellar/luarocks/2.4.2/etc --with-lua=/usr/loc
==> make build
==> make install
==> Caveats
Rocks will be installed to: /usr/local/opt/kong
==> Summary
🍺 /usr/local/Cellar/luarocks/2.4.2: 78 files, 472.9KB, built in 11 seconds
==> Installing mashape/kong/kong
==> Downloading https://bintray.com/kong/kong-community-edition-src/download_file?file_path=dists%2Fkong-community-edition-0.11.2.tar.gz
==> Downloading from https://dl.bintray.com/kong/kong-community-edition-src/dists/kong-community-edition-0.11.2.tar.gz?expiry=1514342323805&signature=eRpBg9BhUg
######################################################################## 100.0%
==> Patching
patching file kong/templates/kong_defaults.lua
==> luarocks-5.1 --tree=/usr/local/Cellar/kong/0.11.2 make OPENSSL_DIR=/usr/local/opt/openssl
Last 15 lines from /Users/hanwenbo/Library/Logs/Homebrew/kong/01.openssl:
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b

lua-cassandra 1.2.3-0 is now installed in /usr/local/Cellar/kong/0.11.2 (license: MIT)

kong 0.11.2-0 depends on luatz == 0.3 (not installed)
Installing https://luarocks.org/luatz-0.3-1.all.rock

Error: Failed installing dependency: https://luarocks.org/luatz-0.3-1.all.rock - Could not fetch rock file: Error fetching file: Failed downloading https://luarocks.org/luatz-0.3-1.all.rock - luatz-0.3-1.all.rock

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/mashape/homebrew-kong/issues

/usr/local/Homebrew/Library/Homebrew/utils/github.rb:220:in raise_api_error': curl failed! (GitHub::Error) curl: (22) The requested URL returned error: 422 Unprocessable Entity curl: (3) <url> malformed from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:178:in open'
from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:278:in search' from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:225:in search_issues'
from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:238:in issues_for_formula' from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:369:in fetch_issues'
from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:365:in issues' from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:419:in dump'
from /usr/local/Homebrew/Library/Homebrew/brew.rb:138:in rescue in <main>' from /usr/local/Homebrew/Library/Homebrew/brew.rb:30:in

'

SHA256 mismatch

Trying to install w/ "brew install kong"

Error: SHA256 mismatch
Expected: 7c604bafd0f3600ff2b7225ba69d60d3504fabb1c332a6b371b47d14019d973e
Actual: b0320d1c519125713926963e59fbb3cf8969ecbb0d5fa5bfbd87c179c22290d2

macOS Mojave 10.14.2 brew install kong fail

I have try mang ways to install kong by brew ,but fail ,and everytime reporting this issue:
Last 15 lines from /Users/xxxxxxx/Library/Logs/Homebrew/openresty/02.ngx_stream_lua-0.0.5_06-ssl-cert.patch:
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_timer.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_uthread.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_uthread.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_util.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_util.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_variable.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_variable.h
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_worker.c
patching file ngx_stream_lua-0.0.5/src/ngx_stream_lua_worker.h
patching file ngx_stream_lua-0.0.5/t/139-ssl-cert-by.t
patching file ngx_stream_lua-0.0.5/t/140-ssl-c-api.t
patching file ngx_stream_lua-0.0.5/t/cert/test2.crt
patching file ngx_stream_lua-0.0.5/t/cert/test2.key
patching file ngx_stream_lua-0.0.5/t/cert/test_ecdsa.crt
patching file ngx_stream_lua-0.0.5/t/cert/test_ecdsa.key
……

brew install --devel kong

from the docs

brew tap kong/kong
$ brew install --devel kong
Error: No devel block is defined for kong/kong/kong

kong 0.9.3 is not starting in mac

I have raised this issue with earlier version however it was closed without resolving the problem
When I attempt to start kong I am getting the following error

/usr/local/bin/kong:7: module 'cassandra.socket' not found:
no field package.preload['cassandra.socket']
no file '/usr/local/Cellar/ngx_openresty/1.11.2.1/site/lualib/cassandra/socket.lua'
no file '/usr/local/Cellar/ngx_openresty/1.11.2.1/site/lualib/cassandra/socket/init.lua'
no file '/usr/local/Cellar/ngx_openresty/1.11.2.1/lualib/cassandra/socket.lua'
no file '/usr/local/Cellar/ngx_openresty/1.11.2.1/lualib/cassandra/socket/init.lua'
no file './cassandra/socket.lua'
no file '/usr/local/Cellar/luajit/2.1_1/share/luajit-2.1.0-beta2/cassandra/socket.lua'
no file '/usr/local/share/lua/5.1/cassandra/socket.lua'
no file '/usr/local/share/lua/5.1/cassandra/socket/init.lua'
no file '/usr/local/Cellar/luajit/2.1_1/share/lua/5.1/cassandra/socket.lua'
no file '/usr/local/Cellar/luajit/2.1_1/share/lua/5.1/cassandra/socket/init.lua'
no file '/usr/local/Cellar/ngx_openresty/1.11.2.1/site/lualib/cassandra/socket.so'
no file '/usr/local/Cellar/ngx_openresty/1.11.2.1/lualib/cassandra/socket.so'
no file './cassandra/socket.so'
no file '/usr/local/lib/lua/5.1/cassandra/socket.so'
no file '/usr/local/Cellar/luajit/2.1_1/lib/lua/5.1/cassandra/socket.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/usr/local/Cellar/ngx_openresty/1.11.2.1/site/lualib/cassandra.so'
no file '/usr/local/Cellar/ngx_openresty/1.11.2.1/lualib/cassandra.so'
no file './cassandra.so'
no file '/usr/local/lib/lua/5.1/cassandra.so'
no file '/usr/local/Cellar/luajit/2.1_1/lib/lua/5.1/cassandra.so'
no file '/usr/local/lib/lua/5.1/loadall.so'


mashape/kong/kong: stable 0.9.3, HEAD
Open-source Microservice and API Gateway
https://getkong.org
Conflicts with: cassandra
/usr/local/Cellar/kong/0.9.3 (6 files, 81.5K) *
Built from source on 2016-10-29 at 21:26:01
From: https://github.com/mashape/homebrew-kong/blob/master/Formula/kong.rb
==> Dependencies
Required: openssl ✔, dnsmasq ✔, serf ✔, mashape/kong/luarocks ✔, mashape/kong/ngx_openresty ✔
==> Requirements
Build: git ✔

--with-cassandra should install cassandra20 formula

As Kong only works with the 2.x branch of Cassandra, --with-cassandra options should install cassandra20 formula instead of cassandra which is 3.x.

I do not file a PR as I'm still having issues running kong with brew. I'm reading that Kong only works with 2.1.x but cassandra20 installs 2.0.x. And I don't see any 2.1.x in brews :(

I can no longer install Kong 0.14

Because the tap doesn't have any version I had a hard time installing the 0.14.1 version of Kong to run my local tests. Please advise my how to install Kong 0.14.1

I installed Kong on OSX via Brew

brew tap kong/kong
brew install kong

Where is kong.conf file?

I installed kong like this:

bomber-macbook:~ bomber$ brew install kong
==> Installing kong from mashape/kong
==> Downloading https://bintray.com/kong/kong-community-edition-src/download_fil
Already downloaded: /Users/bomber/Library/Caches/Homebrew/kong-0.11.2.tar.gz
==> Patching
patching file kong/templates/kong_defaults.lua
==> luarocks-5.1 --tree=/usr/local/Cellar/kong/0.11.2 make OPENSSL_DIR=/usr/loca
🍺 /usr/local/Cellar/kong/0.11.2: 687 files, 4.7MB, built in 2 minutes 6 seconds

And I refer to this document:
https://getkong.org/docs/0.11.x/configuration/#configuration-loading

They say like this:

Configuration loading
Kong comes with a default configuration file that can be found at /etc/kong/kong.conf.default if you installed Kong via one of the official packages. To start configuring Kong, you can copy this file:

$ cp /etc/kong/kong.conf.default /etc/kong/kong.conf

But I can't find kong.conf file.

bomber-macbook:~ bomber$ ls /etc/kong.conf
ls: /etc/kong.conf: No such file or directory
bomber-macbook:~ bomber$ ls /etc/kong/kong.conf
ls: /etc/kong/kong.conf: No such file or directory

Where can I find kong.conf file?
Please update configuration document.
https://getkong.org/docs/0.11.x/configuration/#configuration-loading

brew rm fails due to missing mashape/kong/luajit formula

Hello,

While attempting to uninstall a formula today I came across the following error:
Error: No available formula with the name "mashape/kong/luajit"

I've been searching for any references to that formula, but no luck.

Any idea what this might be stemming from?

installation failed, version 0.10.3

==> Checking out tag 0.10.3
==> Patching
patching file bin/busted
Hunk #1 succeeded at 3 with fuzz 2 (offset 2 lines).
patching file bin/kong
Hunk #1 succeeded at 3 with fuzz 2 (offset 2 lines).
patching file kong/templates/nginx_kong.lua
Hunk #1 FAILED at 45.
1 out of 1 hunk FAILED -- saving rejects to file kong/templates/nginx_kong.lua.rej
Error: Failure while executing: /usr/bin/patch -g 0 -f -p1

openresty 1.9.3.1 permission denied for /usr/bin/tput when running 'brew install kong'

Hi all,

I'm attempting to install kong via homebrew, but am getting a permission denied for /usr/bin/tput from the mashape/kong/ngx_openresty dependency:

[ 8:15:8:15:38 | Hello Dave ] $ brew install kong 
==> Installing kong from mashape/homebrew-kong
==> Installing dependencies for mashape/kong/kong: mashape/kong/ngx_openresty
==> Installing mashape/kong/kong dependency: mashape/kong/ngx_openresty
==> Downloading http://openresty.org/download/ngx_openresty-1.9.3.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/ngx_openresty-1.9.3.1.tar.gz
Error: Permission denied - /usr/bin/tput

I've done a bit of digging around, but can't find a reference to tput in the install (unless I missed something).

System:

OS X Yosemite 10.10.5
Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64

0.14 no kong.conf

$ kong start
Error: /usr/local/share/lua/5.1/kong/cmd/start.lua:28: nginx configuration is invalid (exit code 1):
nginx: the configuration file /usr/local/opt/kong/nginx.conf syntax is ok
nginx: [error] init_by_lua error: /usr/local/share/lua/5.1/kong.lua:120: no file at: /usr/local/opt/kong/kong.conf
stack traceback:
	[C]: in function 'assert'
	/usr/local/share/lua/5.1/kong.lua:120: in function 'init'
	init_by_lua:3: in main chunk
nginx: configuration file /usr/local/opt/kong/nginx.conf test failed

kong 0.13.1-0 depends on luasec 0.6 not installed

Mac OX S 10.13.4
➜ ~ brew install kong
==> Installing kong from kong/kong
==> Installing dependencies for kong/kong/kong: kong/kong/openresty
==> Installing kong/kong/kong dependency: kong/kong/openresty
==> Downloading https://openresty.org/download/openresty-1.13.6.1.tar.gz
Already downloaded: /Users/denghp/Library/Caches/Homebrew/openresty-1.13.6.1.tar.gz
==> Cloning https://github.com/Kong/openresty-patches.git
Updating /Users/denghp/Library/Caches/Homebrew/openresty--openresty-patches--git
==> Checking out branch master
==> cd /private/tmp/openresty-20180602-25157-12na5jg/openresty-1.13.6.1/bundle && patch -p1 < /private/tmp/openresty--openresty-patches-20180602-25157-by0axy/patches/1.13.6.1/ngx_lua-0.10.11-ngx_http_lua_ffi_balancer_set_ssl_ctx.patch
==> cd /private/tmp/openresty-20180602-25157-12na5jg/openresty-1.13.6.1/bundle && patch -p1 < /private/tmp/openresty--openresty-patches-20180602-25157-by0axy/patches/1.13.6.1/lua-resty-core-0.1.13-ngx_http_lua_ffi_balancer_set_ssl_ctx.pat
==> cd /private/tmp/openresty-20180602-25157-12na5jg/openresty-1.13.6.1/bundle && patch -p1 < /private/tmp/openresty--openresty-patches-20180602-25157-by0axy/patches/1.13.6.1/ngx_lua-0.10.11-ngx_http_lua_ffi_get_ssl_pointer.patch
==> ./configure --prefix=/usr/local/Cellar/openresty/1.13.6.1 --with-ipv6 --with-pcre-jit --with-http_ssl_module --with-http_realip_module --with-http_stub_status_module --with-cc-opt=-I/usr/local/include,/usr/local/opt/openssl/include --
==> make -j8
==> make install
🍺 /usr/local/Cellar/openresty/1.13.6.1: 300 files, 6MB, built in 53 seconds
==> Installing kong/kong/kong
==> Downloading https://bintray.com/kong/kong-community-edition-src/download_file?file_path=dists%2Fkong-community-edition-0.13.1.tar.gz
Already downloaded: /Users/denghp/Library/Caches/Homebrew/kong-0.13.1.tar.gz
==> Patching
patching file kong/templates/kong_defaults.lua
==> luarocks-5.1 --tree=/usr/local/Cellar/kong/0.13.1 make CRYPTO_DIR=/usr/local/opt/openssl OPENSSL_DIR=/usr/local/opt/openssl
Last 15 lines from /Users/denghp/Library/Logs/Homebrew/kong/01.openssl:
lua_system_constants == 0.1.2 (not installed)
lua-resty-iputils == 0.3.0 (not installed)
luaossl == 20171028 (not installed)
luasyslog == 1.0.0 (not installed)
lua_pack == 1.0.5 (not installed)
lua-resty-dns-client == 2.0.0 (not installed)
lua-resty-worker-events == 0.3.2 (not installed)
lua-resty-mediador == 0.1.2 (not installed)
lua-resty-healthcheck == 0.4.0 (not installed)
lua-resty-mlcache == 2.0.2 (not installed)

kong 0.13.1-0 depends on luasec == 0.6 (not installed)
Installing https://luarocks.org/luasec-0.6-2.src.rock

Error: Failed installing dependency: https://luarocks.org/luasec-0.6-2.src.rock - Could not fetch rock file: Error fetching file: Failed downloading https://luarocks.org/luasec-0.6-2.src.rock - luasec-0.6-2.src.rock

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/kong/homebrew-kong/issues

These open issues may also help:
Where is kong.conf file? #53
error: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version while accessing https://github.com/kong/homebrew-kong/info/refs?service=git-upload-pack #68
Cannot install Kong via homebrew. [Failed installing dependency: https://luarocks.org/luasec-0.6-1.rockspec - Failed cloning git repository.] #50

brew install luarocks_luajit failed

❯ brew install --with-lua-include=/usr/local/opt/luajit/include/luajit-2.1/ luarocks_luajit
==> Installing luarocks_luajit from mashape/homebrew-kong
==> Downloading http://luarocks.org/releases/luarocks-2.2.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/luarocks_luajit-2.2.2.tar.gz
==> ./configure --prefix=/usr/local/Cellar/luarocks_luajit/2.2.2 --rocks-tree=/usr/local --sysconfdir=/usr/local/etc/luarocks --with-
Last 15 lines from /Users/akagi201/Library/Logs/Homebrew/luarocks_luajit/01.configure:
--rocks-tree=/usr/local
--sysconfdir=/usr/local/etc/luarocks
--with-lua=/usr/local/opt/luajit
--lua-version=5.1
--lua-suffix=jit
--with-lua-include=/usr/local/opt/luajit/include/luajit-2.0

Checking Lua interpreter...
luajit found in /usr/local/opt/luaj

Kong version 1.0.2 is not starting

After updating homebrew installation, Kong doesn't start anymore regarding to patch missing.

Error: /usr/local/share/lua/5.1/kong/cmd/start.lua:50: nginx: [warn] [lua] getssl.lua:10: OpenResty patch missing. See https://github.com/Kong/openresty-patches
nginx: [warn] [lua] init.lua:270: init(): missing "ngx.balancer".set_ssl_ctx API. Dynamic client SSL_CTX* will be unavailable
nginx: [emerg] bind() to 0.0.0.0:8000 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8443 failed (48: Address already in use)
nginx: [emerg] bind() to 127.0.0.1:8001 failed (48: Address already in use)
nginx: [emerg] bind() to 127.0.0.1:8444 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8000 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8443 failed (48: Address already in use)
nginx: [emerg] bind() to 127.0.0.1:8001 failed (48: Address already in use)
nginx: [emerg] bind() to 127.0.0.1:8444 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8000 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8443 failed (48: Address already in use)
nginx: [emerg] bind() to 127.0.0.1:8001 failed (48: Address already in use)
nginx: [emerg] bind() to 127.0.0.1:8444 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8000 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8443 failed (48: Address already in use)
nginx: [emerg] bind() to 127.0.0.1:8001 failed (48: Address already in use)
nginx: [emerg] bind() to 127.0.0.1:8444 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8000 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8443 failed (48: Address already in use)
nginx: [emerg] bind() to 127.0.0.1:8001 failed (48: Address already in use)
nginx: [emerg] bind() to 127.0.0.1:8444 failed (48: Address already in use)
nginx: [emerg] still could not bind()

Openresty update?

Thank you for your good work on kong, I saw the changlist on kong shows that 0.7.x version is compatible with the latest openresty. So why not update openresty formula.

Perf is not found, installing from source fails

When installing kong, dowloading serf fails:

==> Downloading https://homebrew.bintray.com/bottles-kong/serf-0.7.0.el_capitan.bottle.tar.gz

curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "serf"
Download failed: https://homebrew.bintray.com/bottles-kong/serf-0.7.0.el_capitan.bottle.tar.gz
Warning: Bottle installation failed: building from source.

And it fails when building from source:

==> make bin
Last 15 lines from /Users/mcatalbas/Library/Logs/Homebrew/serf/01.make:
go generate ./...
go get -v -d -t ./...
==> Getting dependencies...
==> Removing old directory...
==> Building...
Number of parallel builds: 3

-->    darwin/amd64: github.com/hashicorp/serf

1 errors occurred:
--> darwin/amd64 error: exit status 2
Stderr: # github.com/hashicorp/serf
/usr/local/Cellar/go/1.7.1/libexec/pkg/tool/darwin_amd64/link: -X flag requires argument of the form importpath.name=value

make: *** [bin] Error 1

I don't know if this is specific to kong installation, or should I open the issue against hashicorp/serf instead?

Error: Failed installing dependency

Last login: Tue Sep 4 17:54:02 on ttys000
renlipings-MacBook-Pro:~ tengxiangchao$ brew install kong
==> Installing kong from kong/kong
==> Downloading https://bintray.com/kong/kong-community-edition-src/download_file?file_path=dists%2Fkong-community-edition-0.14.1.tar.gz
Already downloaded: /Users/tengxiangchao/Library/Caches/Homebrew/downloads/0f5aeaed3403fe3ed44c24847b3544d03507462e27bc3cd6e3ec2e56473ebf21--kong-community-edition-0.14.1.tar.gz
==> Patching
patching file kong/templates/kong_defaults.lua
==> luarocks-5.1 --tree=/usr/local/Cellar/kong/0.14.1 make CRYPTO_DIR=/usr/local/opt/openssl OPENSSL_DIR=/usr/local/opt/openssl
Last 15 lines from /Users/tengxiangchao/Library/Logs/Homebrew/kong/01.openssl:
luasec 0.6-2 is now installed in /usr/local/Cellar/kong/0.14.1 (license: MIT)

kong 0.14.1-0 depends on penlight == 1.5.4 (not installed)
Installing https://luarocks.org/penlight-1.5.4-1.rockspec
Missing dependencies for penlight 1.5.4-1:
luafilesystem (not installed)

penlight 1.5.4-1 depends on luafilesystem (not installed)
Installing https://luarocks.org/luafilesystem-1.7.0-2.src.rock
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c src/lfs.c -o src/lfs.o
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -bundle -undefined dynamic_lookup -all_load -o lfs.so -L/usr/local/opt/openresty/luajit/lib src/lfs.o
luafilesystem 1.7.0-2 is now installed in /usr/local/Cellar/kong/0.14.1 (license: MIT/X11)

Error: Failed installing dependency: https://luarocks.org/penlight-1.5.4-1.rockspec - Error fetching file: Failed downloading http://stevedonovan.github.io/files/penlight-1.5.4.zip - penlight-1.5.4.zip

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/kong/homebrew-kong/issues

These open issues may also help:
brew install --devel kong #79
0.14 no kong.conf #78
Where is kong.conf file? #53
error: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version while accessing https://github.com/kong/homebrew-kong/info/refs?service=git-upload-pack #68
kong 0.13.1-0 depends on luasec 0.6 not installed #73
Cannot install Kong via homebrew. [Failed installing dependency: https://luarocks.org/luasec-0.6-1.rockspec - Failed cloning git repository.] #50
renlipings-MacBook-Pro:~ tengxiangchao$

Calling <<-EOS.undent is disabled!

I'm getting this error, and don't really know where to go from here.

$ brew install luarocks
==> Installing luarocks from kong/kong
==> Downloading https://luarocks.org/releases/luarocks-2.4.2.tar.gz
Already downloaded: /Users/fsargent/Library/Caches/Homebrew/luarocks-2.4.2.tar.gz
==> Patching
patching file Makefile
==> ./configure --prefix=/usr/local/Cellar/luarocks/2.4.2 --rocks-tree=/usr/local/opt/kong --sysconfdir=/usr/local/Cellar/luarocks/2.4.2/etc --with-lua=/usr/local/opt/openresty/luaj
==> make build
==> make install
Error: Calling <<-EOS.undent is disabled!
Use <<~EOS instead.
/usr/local/Homebrew/Library/Taps/kong/homebrew-kong/Formula/luarocks.rb:32:in `caveats'
Please report this to the kong/kong tap!
Or, even better, submit a PR to fix it!

Thoughts?

kong 0.9.0 not starting in mac

i installed kong 0.9.0 in mac and failed to start. help pls


/usr/local/share/lua/5.1/kong/cmd/start.lua:15: connection refused
stack traceback:
[C]: in function 'assert'
/usr/local/share/lua/5.1/kong/cmd/start.lua:15: in function 'cmd_exec'
/usr/local/share/lua/5.1/kong/cmd/init.lua:81: in function </usr/local/share/lua/5.1/kong/cmd/init.lua:81>
[C]: in function 'xpcall'
/usr/local/share/lua/5.1/kong/cmd/init.lua:81: in function </usr/local/share/lua/5.1/kong/cmd/init.lua:42>
/usr/local/bin/kong:11: in function 'file_gen'
init_worker_by_lua:38: in function <init_worker_by_lua:36>
[C]: in function 'pcall'
init_worker_by_lua:45: in function <init_worker_by_lua:43>

Suggested Readme docs update

When I was installing kong with brew. I ran into some errors with Lua, and I wasnt sure how to fix it. But I realized that we can just run brew install lua before installing kong and it will solve the problem. I was thinking of doing a pull request that suggested that.

Failed on building mashape/kong/serf

There is the log named 01.make.

2016-10-02 00:18:04 +0800    

make
bin    

find . -type f -name '.DS_Store' -delete
go get github.com/mitchellh/gox
go generate ./...
go get -v -d -t ./...
==> Getting dependencies...
==> Removing old directory...
==> Building...
Number of parallel builds: 3    

-->    darwin/amd64: github.com/hashicorp/serf    

1 errors occurred:
--> darwin/amd64 error: exit status 2
Stderr: # github.com/hashicorp/serf
/usr/local/Cellar/go/1.7.1/libexec/pkg/tool/darwin_amd64/link: -X flag requires argument of the form importpath.name=value    

make: *** [bin] Error 1    

HOMEBREW_VERSION: 1.0.5-49-gcc59e62
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: cc59e624b05dbe227387c2f359deef6bfade3eb2
Last commit: 2 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 97b6f9bdde21f1c51021ff2c2643be78d70a1e51
Core tap last commit: 2 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://mirrors.ustc.edu.cn/homebrew-bottles
CPU: quad-core 64-bit ivybridge
Homebrew Ruby: 2.0.0-p648
GCC-4.2: build 0
Clang: 8.0 build 800
Git: 2.10.0 => /usr/local/opt/git/bin/git
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: 1.8.0_92, 1.8.0_60
macOS: 10.12-x86_64
Xcode: 8.0
CLT: N/A
X11: 2.7.8 => /opt/X11    

HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
MAKEFLAGS: -j4
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/apache2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks
MACOSX_DEPLOYMENT_TARGET: 10.12
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.12
HOMEBREW_SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /private/tmp/serf-20161002-8444-8jxkqw/gopath/bin:/usr/local/Homebrew/Library/Homebrew/shims/super:/usr/local/opt/go/bin:/usr/local/opt/git/bin:/usr/bin:/bin:/usr/sbin:/sbin

Install via brew fail

Hi, no idea whats going on.
CONSOLE
mimetypes 1.0.0-2 is now installed in /usr/local/Cellar/kong/1.0.3 (license: MIT/X11)

kong-lapis 1.6.0.1-1 depends on pgmoon (not installed)
Installing https://luarocks.org/pgmoon-1.9.0-1.src.rock

pgmoon 1.9.0-1 is now installed in /usr/local/Cellar/kong/1.0.3 (license: MIT)

Cloning into 'lapis'...
fatal: unable to connect to github.com:
github.com[0: 192.30.253.112]: errno=Operation timed out
github.com[1: 192.30.253.113]: errno=Operation timed out

Error: Failed installing dependency: https://luarocks.org/kong-lapis-1.6.0.1-1.rockspec - Failed cloning git repository.

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/kong/homebrew-kong/issues

These open issues may also help:
brew install kong failed #88
I can no longer install Kong 0.14 #94
brew install --devel kong #79
0.14 no kong.conf #78
brew install kong fails (0.14.1) #83
kong 0.13.1-0 depends on luasec 0.6 not installed #73
error: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version while accessing https://github.com/kong/homebrew-kong/info/refs?service=git-upload-pack #68
Cannot install Kong via homebrew. [Failed installing dependency: https://luarocks.org/luasec-0.6-1.rockspec - Failed cloning git repository.] #50

Error: invalid attribute: version (nil)

brew install kong --debug                                                                                     ⏎ ✱
/usr/local/Library/brew.rb (Formulary::FormulaLoader): loading /usr/local/Library/Taps/mashape/homebrew-kong/Formula/kong.rb
Error: invalid attribute: version (nil)
Please report this bug:
    https://git.io/brew-troubleshooting
/usr/local/Library/Homebrew/formula.rb:160:in `validate_attributes!'
/usr/local/Library/Homebrew/formula.rb:118:in `initialize'
/usr/local/Library/Homebrew/formulary.rb:66:in `new'
/usr/local/Library/Homebrew/formulary.rb:66:in `get_formula'
/usr/local/Library/Homebrew/formulary.rb:176:in `factory'
/usr/local/Library/Homebrew/formulary.rb:316:in `find_with_priority'
/usr/local/Library/Homebrew/extend/ARGV.rb:20:in `block in formulae'
/usr/local/Library/Homebrew/extend/ARGV.rb:16:in `map'
/usr/local/Library/Homebrew/extend/ARGV.rb:16:in `formulae'
/usr/local/Library/Homebrew/cmd/install.rb:41:in `install'
/usr/local/Library/brew.rb:127:in `<main>'

Error: Failed installing dependency: https://luarocks.org/lyaml-6.2.3-1.src.rock

==> /usr/local/opt/luarocks/bin/luarocks --tree=/usr/local/Cellar/kong/1.1.0 --lua-dir=/usr/local/opt/openresty/luaj
Last 15 lines from /Users/samyang/Library/Logs/Homebrew/kong/01.luarocks:
lua_system_constants.c:13:10: warning: 'luaL_newlib' macro redefined [-Wmacro-redefined]

define luaL_newlib(L,l) (lua_newtable(L), luaL_register(L,NULL,l))

     ^

/usr/local/opt/openresty/luajit/include/luajit-2.1/lauxlib.h:125:9: note: previous definition is here
#define luaL_newlib(L, l) (luaL_newlibtable(L, l), luaL_setfuncs(L, l, 0))
^
1 warning generated.
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c lua_system_constants.c -o lua_system_constants.o
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -bundle -undefined dynamic_lookup -all_load -o lua_system_constants.so lua_system_constants.o
lua_system_constants 0.1.3-0 is now installed in /usr/local/Cellar/kong/1.1.0 (license: MIT)

kong 1.1.0-0 depends on lyaml 6.2.3 (not installed)
Installing https://luarocks.org/lyaml-6.2.3-1.src.rock

Error: Failed installing dependency: https://luarocks.org/lyaml-6.2.3-1.src.rock - Could not fetch rock file: Error fetching file: Failed downloading https://luarocks.org/lyaml-6.2.3-1.src.rock - lyaml-6.2.3-1.src.rock

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/kong/homebrew-kong/issues

These open issues may also help:
brew install kong failed #88
I can no longer install Kong 0.14 #94
brew install --devel kong #79
0.14 no kong.conf #78
brew install kong fails (0.14.1) #83
kong 0.13.1-0 depends on luasec 0.6 not installed #73
error: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version while accessing https://github.com/kong/homebrew-kong/info/refs?service=git-upload-pack #68
Cannot install Kong via homebrew. [Failed installing dependency: https://luarocks.org/luasec-0.6-1.rockspec - Failed cloning git repository.] #50

Brew install failure

I'm getting the following error...

$ brew install kong
==> Installing kong from mashape/homebrew-kong
==> Installing mashape/kong/kong dependency: mashape/kong/ngx_openresty
==> Downloading http://openresty.org/download/ngx_openresty-1.7.10.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/ngx_openresty-1.7.10.2.tar.gz
==> Patching
patching file bundle/nginx-1.7.10/src/event/ngx_event_openssl.c
Hunk #1 succeeded at 1194 (offset 73 lines).
patching file bundle/nginx-1.7.10/src/event/ngx_event_openssl.h
==> curl -s -L -o /private/tmp/ngx_openresty20150727-36896-18qbkzw/ngx_openresty-1.7.10.2/ssl-cert-by-lua.tar.gz https://github.com/openresty/lua-nginx-module/archive/ssl-cert-by-lua.tar.gz
==> tar -xzf ssl-cert-by-lua.tar.gz
==> rm -rf bundle/ngx_lua-0.9.15/*
==> cp -R lua-nginx-module-ssl-cert-by-lua/* bundle/ngx_lua-0.9.15/

cp -R lua-nginx-module-ssl-cert-by-lua/* bundle/ngx_lua-0.9.15/

usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory

READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
  https://github.com/mashape/homebrew-kong/issues

The problem appears to be the curl command as shown w/o the -s flag:

$ curl -L -o /private/tmp/ngx_openresty20150727-36896-18qbkzw/ngx_openresty-1.7.10.2/ssl-cert-by-lua.tar.gz https://github.com/openresty/lua-nginx-module/archive/ssl-cert-by-lua.tar.gz
Warning: Failed to create the file
Warning: /private/tmp/ngx_openresty20150727-36896-18qbkzw/ngx_openresty-1.7.10.
Warning: 2/ssl-cert-by-lua.tar.gz: No such file or directory
curl: (23) Failed writing body (0 != 840)

Perhaps the buildpath directory needs to be created first?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.