luarocks

Trouble running luarocks 2.2.0 in Windows - 'pwd' not recognized

末鹿安然 提交于 2019-12-11 20:44:12
问题 I installed luarocks in 64-bit Windows 7, and everything installed correctly, but when I try to run luarocks I get the following error: 'pwd' is not recognized as an internal or external command, operable program or batch file. C:\Program Files (x86)\Lua\5.1\lua: ... Files (x86)\Lua\5.1\lua/luarocks\fs\win3 2\tools.lua:24: attempt to index local 'directory' (a nil value) stack traceback: ... Files (x86)\Lua\5.1\lua/luarocks\fs\win32\tools.lua:24: in function 'command_at' ... Files (x86)\Lua\5

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

五迷三道 提交于 2019-12-11 07:19:07
问题 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 my config files look like this: rocks_trees = { { name = "user", root = home .. "/.luarocks" }; { name = "system", root = "/usr/local" }; } lua_interpreter = "lua5.3"; variables = { LUA_DIR = "/usr/include/lua53"; LUA_BINDIR = "/usr/bin/lua53"; } Any

Luarocks stop working after updating from 2.0.2 to 2.2.0 for windows

一笑奈何 提交于 2019-12-11 03:15:56
问题 I used LuaForWindows to install lua that comes with LuaRocks 2.0.2, when I type luarocks install luarocks in the command line it install the latest 2.2.0 luarocks but when I try to use luarocks to install other rocks it will come back with an error Site-local luarocks/site_config.lua file not found. Incomplete installation? 'uname' is not recognized as an internal or external command, operable program or batch file. 'uname' is not recognized as an internal or external command, operable

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

删除回忆录丶 提交于 2019-12-09 17:21:51
问题 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 the 'gem' command locally. I'm wondering if the same is possible with rocks and luarocks. Is there any way to 'cross-install' a rock (for instance, luafilesystem), by using another local installation of that rock? Something like: luarocks install //10

Luarocks Installation

蓝咒 提交于 2019-12-08 12:31:02
问题 I am trying to install the latest version of Luarocks, obtained from luarocks's official site. Firstly, I used the Lua binaries obtained from LuaForge Lua Binaries project referred from Official Lua site. But the install script returns the following error (trailed output because of stack overflow restrictions) : LuaRocks 2.4.x installer. ======================== == Checking system... == ======================== Admin privileges available for installing Looking for Lua interpreter checking C:

Lua包管理工具Luarocks详解

Deadly 提交于 2019-12-07 16:00:25
#### 讨论话题 什么是Luarocks 源码安装部署Luarocks 注册Luarocks为Lua社区贡献自己的代码 Luarocks使用初探 #### 什么是Luarocks Luarocks是一个Lua包管理器,基于Lua语言开发,提供一个命令行的方式来管理Lua包依赖、安装第三方Lua包等,社区比较流行的包管理器之一,另还有一个LuaDist,Luarocks的包数量比LuaDist多,更细节的两者对比可参阅 这里 。 #### 源码安装部署Luarocks(为何使用源码见 此文 ) wget http://luarocks.org/releases/luarocks-2.2.2.tar.gz tar zxvf luarocks-2.2.2.tar.gz cd luarocks-2.2.2 ./configure --help configure help查看所支持的安装配置,这里我们主要关注以下两个 --prefix=DIR Prefix where LuaRocks should be installed. Default is /usr/local --with-lua=PREFIX Use Lua from given prefix. Default is auto-detected (the parent directory of $LUA_BINDIR). -

Error requiring luasocket on socket.core file installed through Luarocks on Windows

混江龙づ霸主 提交于 2019-12-04 06:47:40
问题 System configuration: OS: Windows 7 x64 lua -v Lua 5.1.4 luarocks -v 2.2.0beta1 luarocks list luasocket 3.0rc1-1 (installed) - C:/Program Files (x86)/LuaRocks/systree/lib/luarocks/rocks luarocks show luasocket LuaSocket 3.0rc1-1 - Network support for the Lua language LuaSocket is a Lua extension library that is composed by two parts: a C core that provides support for the TCP and UDP transport layers, and a set of Lua modules that add support for functionality commonly needed by applications

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

夙愿已清 提交于 2019-12-04 03:12:39
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 the 'gem' command locally. I'm wondering if the same is possible with rocks and luarocks. Is there any way to 'cross-install' a rock (for instance, luafilesystem), by using another local installation of that rock? Something like: luarocks install //10.0.1.123/machine/path/to/luafilesystem/on/other/machine is what I'd like to be able to do. UPDATE: I'd

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

主宰稳场 提交于 2019-12-03 06:19:57
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 tell Lua5.1 to use the 5.2 libraries that Luarocks installed (by setting the LUA_PATH environment

Installing Torch7 with Luarocks on Windows with mingw build error

时间秒杀一切 提交于 2019-11-30 03:34:52
问题 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 install Torch via luarocks. But it fails building. I do not understand why. Here is the console output. My best guess is that it has something to do with Building for: Visual Studio 9 2008 when I think I want it to use Mingw. PS C:\WINDOWS\system32>