Having trouble installing Kong from source

I’ve followed the install from source instructions found at https://docs.konghq.com/install/source/?_ga=2.234524765.2119030850.1568223517-418784151.1568223517 and I get the following error when I try to use the command $ kong migrations bootstrap [-c /path/to/kong.conf]

Error:
/usr/local/share/lua/5.1/kong/pdk/service.lua:107: module ‘resty.kong.tls’ not found:No LuaRocks module found for resty.kong.tls
no field package.preload[‘resty.kong.tls’]
no file ‘./resty/kong/tls.lua’
no file ‘./resty/kong/tls/init.lua’
no file ‘/usr/local/openresty/site/lualib/resty/kong/tls.ljbc’
no file ‘/usr/local/openresty/site/lualib/resty/kong/tls/init.ljbc’
no file ‘/usr/local/openresty/lualib/resty/kong/tls.ljbc’
no file ‘/usr/local/openresty/lualib/resty/kong/tls/init.ljbc’
no file ‘/usr/local/openresty/site/lualib/resty/kong/tls.lua’
no file ‘/usr/local/openresty/site/lualib/resty/kong/tls/init.lua’
no file ‘/usr/local/openresty/lualib/resty/kong/tls.lua’
no file ‘/usr/local/openresty/lualib/resty/kong/tls/init.lua’
no file ‘/home/jkarr/.luarocks/share/lua/5.1/resty/kong/tls.lua’
no file ‘/home/jkarr/.luarocks/share/lua/5.1/resty/kong/tls/init.lua’
no file ‘/usr/local/share/lua/5.1/resty/kong/tls.lua’
no file ‘/usr/local/share/lua/5.1/resty/kong/tls/init.lua’
no file ‘./resty/kong/tls.lua’
no file ‘/usr/local/openresty/luajit/share/luajit-2.1.0-beta3/resty/kong/tls.lua’
no file ‘/usr/local/openresty/luajit/share/lua/5.1/resty/kong/tls.lua’
no file ‘/usr/local/openresty/luajit/share/lua/5.1/resty/kong/tls/init.lua’
no file ‘/usr/local/openresty/site/lualib/resty/kong/tls.so’
no file ‘/usr/local/openresty/lualib/resty/kong/tls.so’
no file ‘/home/jkarr/.luarocks/lib/lua/5.1/resty/kong/tls.so’
no file ‘/usr/local/lib/lua/5.1/resty/kong/tls.so’
no file ‘./resty/kong/tls.so’
no file ‘/usr/local/openresty/luajit/lib/lua/5.1/resty/kong/tls.so’
no file ‘/usr/local/lib/lua/5.1/loadall.so’
no file ‘/usr/local/openresty/site/lualib/resty.so’
no file ‘/usr/local/openresty/lualib/resty.so’
no file ‘/home/jkarr/.luarocks/lib/lua/5.1/resty.so’
no file ‘/usr/local/lib/lua/5.1/resty.so’
no file ‘./resty.so’
no file ‘/usr/local/openresty/luajit/lib/lua/5.1/resty.so’
no file ‘/usr/local/lib/lua/5.1/loadall.so’

I’ve seen where some others have had this issue and I am unable to follow what they are trying to see if it works. I have attempted to use the openresty-build-tools with the following command

./kong-ngx-build -p build \
        --openresty 1.15.8.1 \
        --openssl 1.1.1c \
        --luarocks 3.1.3 \
        --pcre 8.43

and it still doesn’t work. I am just trying to make a fresh kong install I am not upgrading from another version of kong. Can someone please tell me what I’m doing wrong.

This was my thread and issues messing around w build from src till I got it to work. PCRE had an issue and I had to do:

for the time being. Be sure to try leveraging their bash script for the build as it should handle most the logic you need (minus some extra adjustments that may be specific to your environment like we ran into).

Hi Jeremy,

I did come across your thread on the issue but I had a hard time trying to follow what was actually done to fix the issue? I’m still new to building other’s projects from source and so a lot of the stuff in that thread went over my head. In the end what did you actually end up changing to get it working?

Try using this build script logic:

And don’t pass the:

--pcre 8.43

Hello! Have you solve the problem?


© 2019 Kong Inc.    Terms  •  Privacy  •  FAQ