User Tools

Site Tools



Q. I tried running test.lua but got the following error:

$ tarantool test.lua test.lua: …arantool/nginx_upstream_module/test-expirationd/test.lua:6: module 'expirationd' not found: no field package.preload['expirationd'] no file './expirationd.lua' no file './expirationd/init.lua' no file '/home/dev/.luarocks/share/lua/5.1/expirationd.lua' no file '/home/dev/.luarocks/share/lua/5.1/expirationd/init.lua' no file '/home/dev/.luarocks/share/lua/expirationd.lua' no file '/home/dev/.luarocks/share/lua/expirationd/init.lua' no file '/usr/local/share/tarantool/expirationd.lua' no file '/u


A. Tarantool is an application server, so not all the libraries are part of it. For example, expirationd is a Lua package shipped separately. First, install luarocks with apt-get and then go to This is the instruction for locally installing it:

mkdir ~/.luarocks echo “rocks_servers = {}” » ~/.luarocks/config.lua

Then do luarocks install –local expirationd - it will install expirationd to your ~/.luarocks directory.


Enter your comment. Wiki syntax is allowed:
installing/luarocks_general.txt · Last modified: 2018/06/04 16:58 by eabates

Real Time Web Analytics