Tag Archives: mac

Install Kong api gateway from source on macosx


tags: [kong, mac, macosx]

I wasted quite a bit of time today figuring out how to compile kong on my mac, so here it is:

Install openresty

brew update
brew install pcre openssl openresty

Install lua and luarocks

Kong is compiled against lua 5.1

curl -R -O https://www.lua.org/ftp/lua-5.1.5.tar.gz
tar zxf lua-5.1.5.tar.gz
cd lua-5.1.5
make macosx
sudo make install

Luarocks is a package manager that kong uses

git clone git@github.com:luarocks/luarocks.git
cd luarocks
./configure
make install

Compile kong

$ git clone git@github.com:Mashape/kong.git
$ sudo make install
Advertisements
Tagged , ,