luarocks

Luarocks on windows not recognizing my lua_libdir

我们两清 提交于 2020-04-30 11:00:38
问题 i want to install nngraph on lua using luarocks using this code luarocks --from=https://raw.githubusercontent.com/torch/rocks/master/ install nngraph but it's give me an error it said : Error: Failed finding Lua library. You may need to configure LUA_LIBDIR. does anyone have same experience? can you solve it ? this was my config-5.2.lua : rocks_trees = { { name = [[user]], root = home..[[/luarocks]], }, { name = [[system]], root = [[d:\shared\ta\_bootstrap\_install\]], }, } variables = {

Luarocks: Creating a rock from package with multiple files

▼魔方 西西 提交于 2019-12-24 16:14:51
问题 Using Luarocks, I've followed the tutorial on Creating a rock. However, I'm having difficulty creating a rock of a package that contains multiple files. What do I have to do differently from the tutorial when my package is spread out across multiple files? Example - One File Say I have the following file testrock.lua : module('testrock') function add(a, b) return a+b end and in testrock-scm-1.rockspec package = "testrock" version = "scm-1" source = ... description = ... dependencies = ...

Warning: file.lua is not tracked by this installation of LuaRocks

蓝咒 提交于 2019-12-24 15:08:45
问题 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.rockspec But this gives me the unfortunate, exacerbating error: nvcc fatal : Value 'sm_20' is not defined for option 'gpu-architecture' The only way to fix this, to my knowledge, is to manually change the CMakeLists.txt file from: IF (CUDA_FOUND) LIST(APPEND CUDA_NVCC_FLAGS "-arch=sm_20") To: IF (CUDA

Setting runtime path

我怕爱的太早我们不能终老 提交于 2019-12-24 13:33:26
问题 I am trying to install a package using luarocks . This is the output I get: [100%] Linking CXX shared module libcustn.so [100%] Built target custn Install the project... -- Install configuration: "Release" -- Installing: /home/tex/torch/install/lib/luarocks/rocks/stnbhwd/scm-1/lib/libstn.so -- Set runtime path of "/home/tex/torch/install/lib/luarocks/rocks/stnbhwd/scm-1/lib/libstn.so" to "$ORIGIN/../lib:/home/tex/torch/install/lib" -- Installing: /home/tex/torch/install/lib/luarocks/rocks

Orbit Installation Using Luarocks in Windows

我的未来我决定 提交于 2019-12-23 04:44:14
问题 I am trying to install Orbit MVC web Framework for Lua ,using the command luarocks install orbit . But it always returns the following error : Installing http://www.luarocks.org/repositories/rocks/orbit-2.2.4-1.src.rock... Using http://www.luarocks.org/repositories/rocks/orbit-2.2.4-1.src.rock... switching to 'build' mode Error: Failed unpacking rock file: C:\Users\BANEE-~1\AppData\Local\Temp\luarocks_luarocks-rock-orbit-2.2.4-1-6500/orbit-2.2.4-1.src.rock I am using Windows 7 64 bit

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

做~自己de王妃 提交于 2019-12-20 18:05:12
问题 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 confusing me. I want to run my program on Lua 5.1 and Luajit to see if it would also work on those versions but I am having a hard time getting Luarocks to download the appropriate versions of the dependencies. As a last resort hack, I have tried to

How to install luarocks packages without internet?

旧巷老猫 提交于 2019-12-13 00:19:57
问题 I used torch distro repository on github and installed LuaJIT and luarocks. I want to install luarocks packages , from source, that is downloading the packages(.zip files) and building them from source . I tried doing it by downloading the packages from github and then running luarocks install modulename.rockspec . But here it again starts cloning from github. Can anyone tell me the exact procedure to do this ? 回答1: You can use either source rocks or binary rocks. Using source rocks A source

Luarocks Failed to Compile Object

醉酒当歌 提交于 2019-12-12 15:52:23
问题 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 they'll automatically install when I attempt to download Lapis). I'm using the regular command prompt for this. Being so new, I imagine I could be doing many things wrong. Should I be using something else? Any pointers would be great, thanks! 回答1:

What is the proper Rockspec filename for a new luarock?

霸气de小男生 提交于 2019-12-12 10:12:28
问题 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 complain. However, other luarocks are using rockspec as the filename. Where can I get more information on rockspec vs name-VER-REV.rockspec ? Luarocks itself uses a rockspec filename: https://github.com/keplerproject/luarocks/blob/master/rockspec 回答1: A rockspec

Issues installing yaml for lua with luarocks during the c-compile

大城市里の小女人 提交于 2019-12-12 03:28:29
问题 I have lua, that I isntalled using luarocks. Edit: on a windows system I successfully installed luasocket by downloading the luasocket-2.0.2-3.win32-x86.rock file from v202-3 from here. Its an older version, but it works. However now I need to install yaml so I can work with yaml files. Now I am forced to install using a *.src.rock file or a .rockspec file. I have tried: luarocks install yaml which gives: D:\user\workspace\_lua>luarocks install yaml Warning: Failed searching manifest: Failed