Questions tagged [luarocks]

LuaRocks is a deployment and management system for Lua modules.

From its homepage:

LuaRocks allows you to install Lua modules as self-contained packages called "rocks", which also contain version dependency information. This information is used both during installation, so that when one rock is requested all rocks it depends on are installed as well, and at run time, so that when a module is required, the correct version is loaded. LuaRocks supports both local and remote repositories, and multiple local rocks trees. You can download and install LuaRocks on Unix and Windows.

LuaRocks is free software and uses the same license as Lua.

221 questions
6
votes
0 answers

Equivalent of package.json/requirements.txt for luarocks?

Is there a file/format that I can save all the dependencies required for an application so that I can run luarocks install or something and reads all those dependencies and installs them in that directory?
Kousha
  • 32,871
  • 51
  • 172
  • 296
6
votes
3 answers

Error: No results matching query were found. for luarocks in ubuntu

I'm totally new in Lua. And here is what I've done on my new virtual Ubuntu. First I install the lua-5.3.4 which is download from their official website. make linux make install And this is the README.md of the dependency lib suggesting I…
vera
  • 93
  • 1
  • 1
  • 6
6
votes
1 answer

What is a good way to manage luarocks rockspec files and why?

I'm working on my first lua package, and I am deeply confused as to what to name my rockspec(s) and where to put them. Every popular lua package I look at seems to deal with rockspecs differently. This is very different from, say, Ruby, where every…
Sean Mackesey
  • 10,701
  • 11
  • 40
  • 66
6
votes
3 answers

Luasocket + nginx error - lua entry thread aborted: runtime error: attempt to yield across C-call boundary

When I use the following script: local smtp = require("socket.smtp") local from = "from@host" local rcpt = "rcpt@host" local msg = { headers = { to = rcpt, subject = "Hi" }, body = "Hello" } smtp.send{from = from,rcpt = rcpt,source =…
user479947
6
votes
1 answer

Installation of luasocket using luarocks

I installed luarocks in my windows xp(32 bit) system following instructions available on http://luarocks.org/en/Installation_instructions_for_Windows to install luasocket from luarocks I used command "luarocks install luasocket" in command prompt.…
Ankur Gupta
  • 61
  • 1
  • 3
5
votes
1 answer

Lua cannot find installed luarocks on Ubuntu

I install luarocks: $ sudo apt-get install luarocks I install lua-cjson by luarocks: $sudo luarocks install lua-cjson show packages: $luarocks list Installed rocks: ---------------- lua-cjson 2.1.0-1 (installed) -…
Alexandre Kalendarev
  • 681
  • 2
  • 10
  • 24
5
votes
3 answers

luarocks 'gcc-plugin.h' build error

I am trying to use torch together with the hdf5 package. I am trying to install it via luarocks install hdf5 but during the build phase I get an error regarding the gcc-plugin header. (gcc relies on clang backend). The complete error message…
Firefly
  • 51
  • 1
  • 2
5
votes
2 answers

Build neovim offline

I want to use neovim in an environment with no internet connection. The issue is that the build needs to download many dependancies from various sites across the web, so building there is not an option. I also don't have root privileges on the…
Richard Mosse
  • 560
  • 7
  • 18
5
votes
2 answers

Lua cannot find LuaRocks-installed modules on Linux

I installed the luarocks package on Linux Mint, and afterwards installed a couple of rocks such as sudo luarocks install telescope, but when running a script via lua script.lua, require cannot find the module. Meta: Doing this Q&A style, because…
Llamageddon
  • 3,306
  • 4
  • 25
  • 44
5
votes
2 answers

How can I install multiple versions of Lua on a Linux system (and have them work well with Luarocks)?

I want to install both Lua 5.2 and 5.1 on my Linux computer. Is this just a matter of installing each version with the usual make linux install or is there something else? In particular, I am worried about the header and library files, since those…
hugomg
  • 68,213
  • 24
  • 160
  • 246
4
votes
1 answer

How to install luarocks for Windows 10

So I've been searching everywhere and I'm completely stuck right now. Initially I just installed the binaries which came with luarocks.exe and luarocks_admin.exe but with that there was no config file so when I go to install the luarocks-mysql…
Outflows
  • 163
  • 11
4
votes
4 answers

Error: Failed finding Lua library. You may need to configure LUA_LIBDIR

I am running ubuntu and installed luarocks, however, whenever I try to install a something like luasocket (luarocks install luasocket), it throws me the following error: Error: Failed finding Lua library. You may need to configure LUA_LIBDIR Both…
dmoa
  • 81
  • 1
  • 2
  • 9
4
votes
2 answers

After installing kong by luarocks, how do I install the binary and run it?

I installed kong by luarocks with this command: luarocks install kong 0.14.1-0 but i can't find the binary 'kong' to start service. The document (like below), Where is the bin?:
Hay Zhang
  • 41
  • 1
4
votes
1 answer

How to install a specific version of HDF5 with Luarocks?

OS: Linux Ubuntu Server 18.04 I installed hdf5 with luarocks install hdf5 and get this error: /lua/5.1/hdf5/ffi.lua:71: Unsupported HDF5 version: 1.10.0 How do I install a specific lower version, for example 1.8.16 ?
Keloo
  • 1,368
  • 1
  • 17
  • 36
4
votes
1 answer

Error - "No LuaRocks module found for fb.python"

I am trying to implement a library which is a Github project on 3D reconstruction using a single image in Ubuntu 16.04. I have installed all dependencies. I have checked if each dependency is correctly installed with help from Google searches and…
Manasvini Ganesh
  • 483
  • 5
  • 16
1
2
3
14 15