User Tools

Site Tools


Sidebar

installing:http

Q. I'm trying to install https://github.com/tarantool/http/ in my Docker image but getting an error while compiling the sources:

Cloning into 'http'…
http/lib.c:31:17: fatal error: lua.h: No such file or directory #include <lua.h>

compilation terminated.

Error: Build error: Failed compiling object http/lib.o
gcc -O2 -fPIC -I/usr/include -c http/lib.c -o http/lib.o -I/usr/local/include

Here’s is my Dockerfile:

FROM tarantool/tarantool:1.7

RUN apk add —no-cache luarocks
git gcc

RUN luarocks install https://raw.githubusercontent.com/tarantool/http/master/http-scm-1.rockspec —local

EXPOSE 3301
WORKDIR /opt/tarantool

CMD [“tarantool”, “app.lua”]

Is there anything that I’m missing here? (2017)

A. This problem is caused by missing Tarantool header files.

By the way, Tarantool’s Docker image comes with a full stack of Tarantool modules, http being one of them. You might want to have a look at its Dockerfile.

Comments

Enter your comment. Wiki syntax is allowed:
H Z L U F
 
installing/http.txt · Last modified: 2018/05/25 17:38 by eabates

Real Time Web Analytics