luarocks Questions
2
Solved
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 "ver...
2
Solved
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:...
3
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 t...
2
Solved
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 achieva...
Tacit asked 25/1, 2016 at 19:40
1
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.o...
4
I have the following luarocks:
package = "project-name"
version = "1.0-1"
source = {
url = "..."
}
description = {
summary = "etc"
detailed = [[]],
homepage = ""
}
dependencies = {
"lua >=...
4
Solved
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...
2
Solved
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 http...
3
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 = d...
2
I am trying to install a luarocks package called stn. The official way of installing it is by running:
luarocks install https://raw.githubusercontent.com/qassemoquab/stnbhwd/master/stnbhwd-scm-1.r...
2
Solved
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...
0
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/s...
2
Solved
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':
dlo...
0
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 di...
3
Solved
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 ...
0
I am trying to install a package usingluarocks. This is the output I get:
[100%] Linking CXX shared module libcustn.so
[100%] Built target custn
Install the project...
-- Install configuration: "R...
3
Solved
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 Rub...
3
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 o...
1
Solved
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. ...
1
Solved
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-cjs...
2
Solved
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 inst...
Orate asked 21/5, 2015 at 0:15
2
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 worri...
2
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....
4
Solved
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 "print(package.path)"
./?.lua;/us...
3
Solved
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"
}
...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.