羽绒服安装 [英] Luarocks Installation
问题描述
我正在尝试安装最新版本的Luarocks,该软件是从 luarocks的官方网站获得的.首先,我使用从
LuaRocks 2.4.x installer.
========================
== Checking system... ==
========================
Admin privileges available for installing
Looking for Lua interpreter
checking C:\Programs\Lua
Found lua.exe, testing it...
Interpreter found, now looking for link libraries...
checking for C:\Programs\Lua\lua5.3.lib
checking for C:\Programs\Lua\lua53.lib
checking for C:\Programs\Lua\lua5.3.dll
checking for C:\Programs\Lua\lua53.dll
Found lua53.dll
....................................................
Could not find Lua. See /? for options for specifying the location of Lua, or installing a bundled copy of Lua 5.1.
Failed installing LuaRocks. Run with /? for help.
然后,我又使用了从 Lua-从官方Lua网站.但是安装脚本返回以下错误(由于堆栈溢出限制,输出为跟踪):
LuaRocks 2.4.x installer.
========================
== Checking system... ==
========================
Admin privileges available for installing
Looking for Lua interpreter
checking C:\Programs\Lua
Found lua53.exe, testing it...
Interpreter found, now looking for link libraries...
checking for C:\Programs\Lua\lua5.3.lib
checking for C:\Programs\Lua\lua53.lib
checking for C:\Programs\Lua\lua5.3.dll
checking for C:\Programs\Lua\lua53.dll
Found lua53.dll
Link library found, now looking for headers...
checking for C:\Programs\Lua\include\lua\5.3\lua.h
checking for C:\Programs\Lua\include\lua53\lua.h
checking for C:\Programs\Lua\include\lua5.3\lua.h
checking for C:\Programs\Lua\include\lua.h
checking for C:\Programs\Lua\lua.h
checking C:\Windows\system32\inetsrv
Found lua53.exe, testing it...
Interpreter found, now looking for link libraries...
checking for C:\Programs\Lua\lua5.3.lib
checking for C:\Programs\Lua\lua53.lib
checking for C:\Programs\Lua\lua5.3.dll
checking for C:\Programs\Lua\lua53.dll
Found lua53.dll
......................................................
Could not find Lua. See /? for options for specifying the location of Lua, or installing a bundled copy of Lua 5.1.
Failed installing LuaRocks. Run with /? for help.
然后,我使用了另一个 LuaDist 的Lua二进制文件,该文件来自在Windows中使用Luarocks进行轨道安装.因此,尝试了luarocks的安装脚本.安装成功,我根据安装程序指令配置了以下变量(由于堆栈溢出限制,输出被跟踪):
............................................................
============================
== LuaRocks is installed! ==
============================
You may want to add the following elements to your paths;
Lua interpreter;
PATH : C:\Programs\Binaries-LuaDist-batteries-0.9.8-Windows-x86\bin
PATHEXT : .LUA
LuaRocks;
PATH : C:\Program Files (x86)\LuaRocks
LUA_PATH : C:\Program Files (x86)\LuaRocks\lua\?.lua;C:\Program Files (x86)\LuaRocks\lua\?\init.lua
Local user rocktree (Note: %APPDATA% is user dependent);
PATH : %APPDATA%\LuaRocks\bin
LUA_PATH : %APPDATA%\LuaRocks\share\lua\5.1\?.lua;%APPDATA%\LuaRocks\share\lua\5.1\?\init.lua
LUA_CPATH: %APPDATA%\LuaRocks\lib\lua\5.1\?.dll
System rocktree
PATH : c:\programs\binaries-luadist-batteries-0.9.8-windows-x86\\bin
LUA_PATH : c:\programs\binaries-luadist-batteries-0.9.8-windows-x86\\share\lua\5.1\?.lua;c:\programs\binaries-luadist-batteries-0.9.8-windows-x86\\share\lua\5.1\?\init.lua
LUA_CPATH: c:\programs\binaries-luadist-batteries-0.9.8-windows-x86\\lib\lua\5.1\?.dll
Note that the %APPDATA% element in the paths above is user specific and it MUST
be replaced by its actual value.
For the current user that value is: C:\Users\Banee-Ishaque-K\AppData\Roaming.
但是luarocks命令现在返回
Windows无法打开该文件
错误,该怎么办?我正在使用Windows 7 64位,并且没有用于Windows的手动编译Lua而不是使用二进制文件的编译方法.
解决方案是,只需使用CMD行参数/LUA将Lua安装目录指定到Luarocks安装脚本(INSTALL.bat)文件即可.在上述情况下,
C:\Programs\luarocks-2.4.2-win32>install.bat /LUA C:\Programs\Binaries-LuaDist-batteries-0.9.8-Windows-x86
将成功安装Luarocks. 经过测试的在Win 7 64位,Lua 5.1 64位以及Luarocks 2.4.2 win32软件包中进行了验证.
要安装Luockcks; Lua解释器,链接库,标题和内容来自 LuaForge Lua Binaries项目的二进制文件. Lua-joedf的版本仅包含Lua解释器&链接库.这就是为什么前两种方法失败并出现错误的原因.
从 LuaDist 中获得的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:\Programs\Lua
Found lua.exe, testing it...
Interpreter found, now looking for link libraries...
checking for C:\Programs\Lua\lua5.3.lib
checking for C:\Programs\Lua\lua53.lib
checking for C:\Programs\Lua\lua5.3.dll
checking for C:\Programs\Lua\lua53.dll
Found lua53.dll
....................................................
Could not find Lua. See /? for options for specifying the location of Lua, or installing a bundled copy of Lua 5.1.
Failed installing LuaRocks. Run with /? for help.
Then I used another Lua binaries obtained from Lua - joedf's Builds 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:\Programs\Lua
Found lua53.exe, testing it...
Interpreter found, now looking for link libraries...
checking for C:\Programs\Lua\lua5.3.lib
checking for C:\Programs\Lua\lua53.lib
checking for C:\Programs\Lua\lua5.3.dll
checking for C:\Programs\Lua\lua53.dll
Found lua53.dll
Link library found, now looking for headers...
checking for C:\Programs\Lua\include\lua\5.3\lua.h
checking for C:\Programs\Lua\include\lua53\lua.h
checking for C:\Programs\Lua\include\lua5.3\lua.h
checking for C:\Programs\Lua\include\lua.h
checking for C:\Programs\Lua\lua.h
checking C:\Windows\system32\inetsrv
Found lua53.exe, testing it...
Interpreter found, now looking for link libraries...
checking for C:\Programs\Lua\lua5.3.lib
checking for C:\Programs\Lua\lua53.lib
checking for C:\Programs\Lua\lua5.3.dll
checking for C:\Programs\Lua\lua53.dll
Found lua53.dll
......................................................
Could not find Lua. See /? for options for specifying the location of Lua, or installing a bundled copy of Lua 5.1.
Failed installing LuaRocks. Run with /? for help.
Then I used another Lua binaries obtained from LuaDist referred from official Lua site. It already includes luarocks, but an older version. Using this version results the following error : Orbit Installation Using Luarocks in Windows. So, tried install script of luarocks. The installation is successful, and I configured the following variables according to the installer instruction (trailed output because of stack overflow restrictions) :
............................................................
============================
== LuaRocks is installed! ==
============================
You may want to add the following elements to your paths;
Lua interpreter;
PATH : C:\Programs\Binaries-LuaDist-batteries-0.9.8-Windows-x86\bin
PATHEXT : .LUA
LuaRocks;
PATH : C:\Program Files (x86)\LuaRocks
LUA_PATH : C:\Program Files (x86)\LuaRocks\lua\?.lua;C:\Program Files (x86)\LuaRocks\lua\?\init.lua
Local user rocktree (Note: %APPDATA% is user dependent);
PATH : %APPDATA%\LuaRocks\bin
LUA_PATH : %APPDATA%\LuaRocks\share\lua\5.1\?.lua;%APPDATA%\LuaRocks\share\lua\5.1\?\init.lua
LUA_CPATH: %APPDATA%\LuaRocks\lib\lua\5.1\?.dll
System rocktree
PATH : c:\programs\binaries-luadist-batteries-0.9.8-windows-x86\\bin
LUA_PATH : c:\programs\binaries-luadist-batteries-0.9.8-windows-x86\\share\lua\5.1\?.lua;c:\programs\binaries-luadist-batteries-0.9.8-windows-x86\\share\lua\5.1\?\init.lua
LUA_CPATH: c:\programs\binaries-luadist-batteries-0.9.8-windows-x86\\lib\lua\5.1\?.dll
Note that the %APPDATA% element in the paths above is user specific and it MUST
be replaced by its actual value.
For the current user that value is: C:\Users\Banee-Ishaque-K\AppData\Roaming.
But luarocks command now returns
windows can't open this file
error, what will do? I am working on Windows 7 64 bit and there is no compilation method for Windows for manual compilation of Lua instead of using binaries.
The Solution is, just specify the Lua installation directory to Luarocks Installation script(INSTALL.bat) file using CMD line argument /LUA. In the above case,
C:\Programs\luarocks-2.4.2-win32>install.bat /LUA C:\Programs\Binaries-LuaDist-batteries-0.9.8-Windows-x86
will install Luarocks successfully. Tested & Verified on Win 7 64 bit with Lua 5.1 64 bit along with Luarocks 2.4.2 win32 package.
To Install Luarocks; Lua interpreter,link libraries,headers & runtime must be present in the system. The binaries from LuaForge Lua Binaries project & Lua - joedf's Builds only contains Lua interpreter & link libraries. That's why the first two methods failed with errors.
Lua binaries obtained from LuaDist contains Lua interpreter,link libraries & headers; The runtime will be available in most windows systems used for development purpose (if not, we can install matching ( version that is used to compile Lua source to binary) Microsoft Visual C++ Redistributables from Microsoft website). But, the problem is ..\Binaries-LuaDist-batteries-0.9.8-Windows-x86\bin is in path. the folder contains only Lua interpreter. link libraries & headers are in ..\Binaries-LuaDist-batteries-0.9.8-Windows-x86 folder.
这篇关于羽绒服安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!