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
4
votes
1 answer

Installing luarocks package for torch behind proxy

I am looking to use the nn package for the torch framework. I downloaded and built torch from github. But when I now do : luarocks install nn I get Cloning into 'nn' fatal: unable to connect to github.com error. My proxy servers are configured…
Jagadeesh
  • 408
  • 5
  • 14
4
votes
1 answer

Lua-cjson -> require("cjson") successful, then errors when calling cjson.encode

I'm trying to encode/decode JSON in Lua using CJSON. I downloaded lua-cjson using Luarocks (http://www.kyne.com.au/~mark/software/lua-cjson-manual.html). In the Lua interpreter, I'm using an example from the cjson manual: > local cjson = require…
Cam Hashemi
  • 157
  • 1
  • 7
4
votes
1 answer

Luarocks Failed to Compile Object

I'm pretty new to using things like luarocks to install libraries, and I'm running into a problem I'm not sure how to fix when installing the dependencies for Lapis. As you can see, I have none of the dependencies installed for Lapis (I assume that…
user3196935
  • 61
  • 1
  • 6
4
votes
1 answer

How to integrate LuaJIT with LuaRocks on Windows?

I downloaded the source of LuaJIT and compiled it with msvc120.dll (VS 2013 x64). When I run it from the command line I have no problems executing some basic lua. Now the LuaJIT installation guide mentions moving luajit.exe and lua51.dll into their…
Akkuma
  • 2,215
  • 3
  • 16
  • 21
4
votes
1 answer

What is the proper Rockspec filename for a new luarock?

According to this page: http://luarocks.org/en/Creating_a_rock This should be saved in a file called luafruits-1.0-1.rockspec. The name must contain lowercase versions of the "package" and "version" fields, or else LuaRocks will…
dgo.a
  • 2,634
  • 23
  • 35
4
votes
2 answers

Does luarocks management have "./node_modules" equivalent for projects?

In NodeJS/NPM, you can create a package.json and run npm install to install all your dependencies in a folder within your project: ./node_modules. (A project can be an app or another module/package.) Ruby also has a "bundler" system (using a .bundle…
dgo.a
  • 2,634
  • 23
  • 35
3
votes
1 answer

LuaRocks fPIC error

I'm trying to install numlua with luarocks: luarocks make numlua-0.3-1.rockspec but am getting the following error: /usr/bin/ld: numlua.o: relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with…
akobre01
  • 777
  • 1
  • 10
  • 22
3
votes
1 answer

Why is the latest MinGW gcc version 6.3.0

I'm getting MinGW from https://sourceforge.net/projects/mingw/files/ which I need for mingw32-gcc.exe for compiling LuaRocks packages, so I can't really use Mingw-w64. The latest version from the Installation Manager seems to be on 6.3.0, but I also…
Ketho
  • 508
  • 3
  • 11
3
votes
1 answer

How to import luarocks local modules

I have installed cjson using Lua Rocks locally. luarocks install --local lua-cjson But I cannot access the module. > require('cjson') stdin:1: module 'cjson' not found: Packages were installed in to ~/.luarocks. Following is the file…
s1n7ax
  • 2,750
  • 6
  • 24
  • 53
3
votes
1 answer

LuaRocks - Check latest available version

Is there an API/command available so I can check what is the available latest version of a rock? Similar to say npm info xxx. The best I can find is luarocks search xxx; was hoping there would be a better endpoint that provides a better-structured…
Kousha
  • 32,871
  • 51
  • 172
  • 296
3
votes
1 answer

luarocks lyaml installation error

on luarocks install lyaml I get following error: Error: Could not find expected file libyaml.a, or libyaml.so, or libyaml.so.* for YAML -- you may have to install YAML in your system and/or pass YAML_DIR or YAML_LIBDIR to the luarocks command.…
Tanvi Patel
  • 1,167
  • 3
  • 11
  • 18
3
votes
0 answers

How to install Lapis into a docker container?

I'm just getting started with the Lua framework called Lapis, but I encountered a problem when I tried to install it into a docker cointainer. I’m using the official OpenResty image (jessie), and want to extendmy Dockerfile with a “luarocks install…
Gabor
  • 31
  • 2
3
votes
1 answer

local luarocks package install (luarepl) does not work

I'm new to luarocks and I just tried to install luarepl. The installation apparently went fine: $ luarocks install luarepl Installing https://luarocks.org/luarepl-0.8-1.rockspec... Using https://luarocks.org/luarepl-0.8-1.rockspec... switching to…
fferri
  • 18,285
  • 5
  • 46
  • 95
3
votes
0 answers

How to include static data files into luarock?

This is my first time creating a luarock and writing .rockpec file. I have a small lua script and some static text files that this script requires to use. How should I pack my luarock so that these static files are available for my script? For…
minerals
  • 6,090
  • 17
  • 62
  • 107
3
votes
1 answer

Installed Luarock - No .lua files

Im a bit of a luarocks noob, but have done a fair bit of lua coding. I can't find the answer to this anywhere; Ive installed a new luarock (lua-resty-auto-ssl) via: luarocks install --tree lualib lua-resty-auto-ssl This installs to my directory…
CiaranSynnott
  • 908
  • 5
  • 9
1 2
3
14 15