Error while Installing Kong

390 views
Skip to first unread message

Vasu Vallabhaneni

unread,
Aug 22, 2016, 2:19:53 PM8/22/16
to Kong
I have followed the instructions on https://github.com/Mashape/kong



Getting the following error....


root@FD-poc-everything2:~/vasu/dev/kong# luarocks install kong
Warning: Failed searching manifest: Failed extracting manifest file
Installing https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/kong-0.8.3-0.rockspec...
Using https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/kong-0.8.3-0.rockspec... switching to 'build' mode

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

Warning: Failed searching manifest: Failed extracting manifest file
Using https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/pgmoon-1.4.0-1.src.rock... switching to 'build' mode

Error: Failed installing dependency: https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/pgmoon-1.4.0-1.src.rock - Failed unpacking rock file: /tmp/luarocks_luarocks-rock-pgmoon-1.4.0-1-1620/pgmoon-1.4.0-1.src.rock
root@FD-poc-everything2:~/vasu/dev/kong# ls
bin  CHANGELOG.md  config.ld  CONTRIBUTING.md  kong  kong-0.9.0-0.rockspec  kong.conf.default  LICENSE  Makefile  README.md  spec  UPGRADE.md
root@FD-poc-everything2:~/vasu/dev/kong#


Thanks
Vasu

Thibault Charbonnier

unread,
Aug 22, 2016, 2:24:53 PM8/22/16
to kong...@googlegroups.com
Seems like an unfortunate error.

Have you tried again?
--
You received this message because you are subscribed to the Google Groups "Kong" group.
To unsubscribe from this group and stop receiving emails from it, send an email to konglayer+...@googlegroups.com.
To post to this group, send email to kong...@googlegroups.com.
Visit this group at https://groups.google.com/group/konglayer.
To view this discussion on the web visit https://groups.google.com/d/msgid/konglayer/6d49624e-e2d6-4bf9-b020-d44bb153d2de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vasu Vallabhaneni

unread,
Aug 22, 2016, 2:38:30 PM8/22/16
to Kong
I have tried 2 times till now. Same results.

Vasu

Marco

unread,
Aug 23, 2016, 3:46:17 AM8/23/16
to Vasu Vallabhaneni, Kong
Do you have "unzip" installed?


 Marco Palladino | CTO @ Mashape | mashape.com+1 (415) 361-3858

To unsubscribe from this group and stop receiving emails from it, send an email to konglayer+unsubscribe@googlegroups.com.

To post to this group, send email to kong...@googlegroups.com.
Visit this group at https://groups.google.com/group/konglayer.

Vasu Vallabhaneni

unread,
Aug 23, 2016, 10:43:18 AM8/23/16
to Kong, valla...@gmail.com
root@FD-poc-everything2:~/vasu/dev/kong# luarocks install kong
Installing https://luarocks.org/kong-0.8.3-0.rockspec...
Using https://luarocks.org/kong-0.8.3-0.rockspec... switching to 'build' mode

Missing dependencies for kong:
lua_pack ~> 1.0.4-0
luasocket ~> 2.0.2-6
pgmoon ~> 1.4.0
lua_system_constants ~> 0.1.1-0
lbase64 ~> 20120820-1
lapis ~> 1.3.1-1
lua_uuid ~> 0.2.0-2

Using https://luarocks.org/lua_pack-1.0.4-0.rockspec... switching to 'build' mode
gcc -O2 -fPIC -I/usr/local/include -c lua_pack.c -o lua_pack.o
lua_pack.c:378:1: error: unknown type name ‘luaL_reg’
 static const luaL_reg R[] =
 ^
lua_pack.c:380:2: warning: braces around scalar initializer [enabled by default]
  {"pack", l_pack},
  ^
lua_pack.c:380:2: warning: (near initialization for ‘R[0]’) [enabled by default]
lua_pack.c:380:2: warning: initialization makes integer from pointer without a cast [enabled by default]
lua_pack.c:380:2: warning: (near initialization for ‘R[0]’) [enabled by default]
lua_pack.c:380:2: error: initializer element is not computable at load time
lua_pack.c:380:2: error: (near initialization for ‘R[0]’)
lua_pack.c:380:2: warning: excess elements in scalar initializer [enabled by default]
lua_pack.c:380:2: warning: (near initialization for ‘R[0]’) [enabled by default]
lua_pack.c:381:2: warning: braces around scalar initializer [enabled by default]
  {"unpack", l_unpack},
  ^
lua_pack.c:381:2: warning: (near initialization for ‘R[1]’) [enabled by default]
lua_pack.c:381:2: warning: initialization makes integer from pointer without a cast [enabled by default]
lua_pack.c:381:2: warning: (near initialization for ‘R[1]’) [enabled by default]
lua_pack.c:381:2: error: initializer element is not computable at load time
lua_pack.c:381:2: error: (near initialization for ‘R[1]’)
lua_pack.c:381:2: warning: excess elements in scalar initializer [enabled by default]
lua_pack.c:381:2: warning: (near initialization for ‘R[1]’) [enabled by default]
lua_pack.c:382:2: warning: braces around scalar initializer [enabled by default]
  {NULL, NULL}
  ^
lua_pack.c:382:2: warning: (near initialization for ‘R[2]’) [enabled by default]
lua_pack.c:382:2: warning: initialization makes integer from pointer without a cast [enabled by default]
lua_pack.c:382:2: warning: (near initialization for ‘R[2]’) [enabled by default]
lua_pack.c:382:2: warning: excess elements in scalar initializer [enabled by default]
lua_pack.c:382:2: warning: (near initialization for ‘R[2]’) [enabled by default]

Error: Failed installing dependency: https://luarocks.org/lua_pack-1.0.4-0.rockspec - Build error: Failed compiling object lua_pack.o

Now failing to install the rest of the packages.... Need to figure out

Thanks
Vasu

Vasu Vallabhaneni

unread,
Aug 23, 2016, 10:43:57 AM8/23/16
to Kong, valla...@gmail.com
That helped I was able to make further progress after installing unzip.


Vasu

On Tuesday, August 23, 2016 at 2:46:17 AM UTC-5, Marco wrote:

Vasu Vallabhaneni

unread,
Aug 24, 2016, 10:17:13 AM8/24/16
to Kong, valla...@gmail.com
Not able to resolve the compile issue... Any ideas....

Thanks
Vasu

Marco

unread,
Aug 24, 2016, 12:42:32 PM8/24/16
to Vasu Vallabhaneni, Kong
You need to have lua and lua-dev (version 5.1 for both) installed.


 Marco Palladino | CTO @ Mashape | mashape.com+1 (415) 361-3858

To unsubscribe from this group and stop receiving emails from it, send an email to konglayer+unsubscribe@googlegroups.com.

To post to this group, send email to kong...@googlegroups.com.
Visit this group at https://groups.google.com/group/konglayer.

Mark Bordelon

unread,
Jan 27, 2017, 4:27:41 PM1/27/17
to Kong, valla...@gmail.com
how does one install lua-dev (tried with homebrew, I am on mac, and no success)
my error is this:

Using https://luarocks.org/lua_pack-1.0.4-0.rockspec... switching to 'build' mode
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/include -c lua_pack.c -o lua_pack.o
lua_pack.c:378:14: error: unknown type name 'luaL_reg'; did you mean 'luaL_Reg'?
static const luaL_reg R[] =
             ^~~~~~~~
             luaL_Reg
/usr/local/include/lauxlib.h:26:3: note: 'luaL_Reg' declared here
} luaL_Reg;
  ^
lua_pack.c:391:2: warning: implicit declaration of function 'luaL_openlib' is invalid in C99 [-Wimplicit-function-declaration]
 luaL_openlib(L, LUA_STRLIBNAME, R, 0);
 ^
1 warning and 1 error generated.

Error: Failed installing dependency: https://luarocks.org/lua_pack-1.0.4-0.rockspec - Build error: Failed compiling object lua_pack.o
make: *** [install] Error 1

narendr...@gmail.com

unread,
Feb 17, 2017, 4:56:47 PM2/17/17
to Kong, valla...@gmail.com
For me downgrading to lua-5.1 helped. 
>>>luarocks-5.1 make --local OPENSSL_DIR=/opt/local/
kong 0.9.9-0 is now built and installed in /Users/narendra/.luarocks (license: MIT)
Reply all
Reply to author
Forward
0 new messages