User Tools

Site Tools


Sidebar

installing:luarocks_general

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 https://tarantool.org/en/download/rocks.html. This is the instruction for locally installing it:

mkdir ~/.luarocks echo “rocks_servers = {http://rocks.tarantool.org/}” » ~/.luarocks/config.lua

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

Comments

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

Real Time Web Analytics