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
22
votes
4 answers

How do install libraries for both Lua5.2 and 5.1 using Luarocks?

I am writing a small Lua project and using Luarocks to install my 3rd-party dependencies. The default Lua version on my machine is 5.2 and up to this point everything is working just fine. However, today I have stumbled across a problem that is…
hugomg
  • 68,213
  • 24
  • 160
  • 246
15
votes
2 answers

nvcc fatal : Value 'sm_20' is not defined for option 'gpu-architecture'

I've looked at many pages and either could not follow what they were saying because they were unclear and/or my knowledge is just not sufficient enough. I am trying to run: luarocks install…
John Lexus
  • 3,576
  • 3
  • 15
  • 33
12
votes
1 answer

Module installed by Luarocks not found

I am working on Debian Stable Linux. I installed luafilesystem module by command: luarocks --local install luafilesystem However, it is not found when any of following is used in lua source files: require ("lfs") require…
rnso
  • 23,686
  • 25
  • 112
  • 234
12
votes
3 answers

Lua: Install a rock using luarocks from a locally installed rock (or from a .zip/.tar.gz)

I hunted around but I couldn't determine if this is possible. Basically, http://luarocks.org is down, and I already have a copy of luafilesystem installed on another machine locally here. With Ruby, it's possible to cross install ruby gems using…
likethesky
  • 846
  • 3
  • 12
  • 28
10
votes
3 answers

Where are the modules installed using luarocks

I am trying to require a module I downloaded using luarocks using require "lualogging" but lua (and I!) cannot find where this module was downloaded to. Here is what I did I have used apt-get to install luarocks, and then I ran sudo luarocks…
almel
  • 7,178
  • 13
  • 45
  • 58
9
votes
1 answer

Lua 5.3 is installed, but I can't locate the correct lua.h

I am trying to install some luarocks packages but it seems that although lua5.3 is installed, the relevant headers are not $ which lua /usr/bin/lua $ lua -v Lua 5.3.3 Copyright (C) 1994-2016 Lua.org, PUC-Rio /usr/include$ ls…
base10
  • 111
  • 1
  • 2
9
votes
4 answers

How do you install dependencies listed in Luarocks?

I have the following luarocks: package = "project-name" version = "1.0-1" source = { url = "..." } description = { summary = "etc" detailed = [[]], homepage = "" } dependencies = { "lua >= 5.1, < 5.2", "busted >= 2.0.rc12", …
Kousha
  • 32,871
  • 51
  • 172
  • 296
8
votes
2 answers

Installing Torch7 with Luarocks on Windows with mingw build error

I followed the instructions here and set up Lua and Luarocks from scratch, with Mingw. Everything worked fine and I was able to install rocks, including ones which require compiling like LuaSocket. I followed the instructions on the Torch7 page to…
Houshalter
  • 2,508
  • 1
  • 18
  • 20
7
votes
4 answers

LuaJIT not seeing rocks installed by LuaRocks

lua -e "print(package.path)" ./?.lua;/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua;/usr/lib/lua/5.1/?.lua;/usr/lib/lua/5.1/?/init.lua luajit -e…
7
votes
0 answers

Missing dependencies for a module ltn12

I'm creating a module to send a mail using sendgrid (still very earlier stage) I have following rockspec package = "sendgrid" version = "0.1.0-1" source = { url = "git://github.com/meetme2meat/sendgrid" } description = { summary = "Sendgrid V3…
Noobie
  • 461
  • 1
  • 12
  • 34
7
votes
2 answers

Symbol not found: _lua_objlen

I'm using lua-cjson package.path = package.path .. ";../?.lua" local json = require('cjson') And I'm getting: lua: error loading module 'cjson' from file '/usr/local/lib/lua/5.3/cjson.so': dlopen(/usr/local/lib/lua/5.3/cjson.so, 6): Symbol…
Kousha
  • 32,871
  • 51
  • 172
  • 296
7
votes
2 answers

How can I install lua rocks from a manifest file?

I come from a python background and I'm hoping to do something semantically equivalent to pip install -r requirements.txt to install a list of Python packages at the right version. Is this achievable with luarocks? If not, is there a way to hack…
Louis Thibault
  • 20,240
  • 25
  • 83
  • 152
7
votes
2 answers

With multiple versions of Lua installed is it possible to specify which one luarock to install to?

I have both Lua 5.1 and Lua 5.2 installed on Linux. When using luarocks to install a package is it possible to pass on option to luarocks that specifies which version of Lua the rock should be installed for?
vfclists
  • 19,193
  • 21
  • 73
  • 92
6
votes
2 answers

LuaJIT and Rocks?

Just a small question from a "Lua newbie"...I have been using LuaJIT and it is awesome, no the question is since LuaJIT is Lua 5.1 compatible does that mean I can use all the "LuaRocks" that standard Lua uses in LuaJIT? For instance if I wanted to…
Lynton Grice
  • 1,435
  • 3
  • 29
  • 45
6
votes
3 answers

Custom plugin for Kong v1.0.2 is enabled but not installed

I have a custom plugin for Kong which worked fine for Kong v0.14.1 but after I upgraded to v.1.0.2 it's throwing an error. OS used: macOS Mojave In kong.conf file I have this code: log_level = debug plugins=my-custom-plugin I try to start Kong with…
Moldovan Daniel
  • 1,521
  • 14
  • 23
1
2 3
14 15