长话短说,我正在安装LuaFileSystem来安装opengl loader gen。但是,我无法安装LuaFileSystem,因为它一直产生这个错误:
C:\Users\username\Downloads\luafilesystem-master\luafilesystem-master>luarocks in
stall luafilesystem
Installing http://luarocks.org/repositories/rocks/luafilesystem-1.6.2-2.src.rock
...
7-Zip 9.10 beta Copyright (c) 1999-2009 Igor Pavlov 2009-12-22
Processing archive: luafilesystem-1.6.2.tar.gz
Extracting luafilesystem-1.6.2.tar
Everything is Ok
Size: 122880
Compressed: 27886
7-Zip 9.10 beta Copyright (c) 1999-2009 Igor Pavlov 2009-12-22
Processing archive: luafilesystem-1.6.2.tar
Extracting pax_global_header
Extracting luafilesystem-1.6.2
Extracting luafilesystem-1.6.2\Makefile
Extracting luafilesystem-1.6.2\Makefile.win
Extracting luafilesystem-1.6.2\README
Extracting luafilesystem-1.6.2\config
Extracting luafilesystem-1.6.2\config.win
Extracting luafilesystem-1.6.2\doc
Extracting luafilesystem-1.6.2\doc\us
Extracting luafilesystem-1.6.2\doc\us\examples.html
Extracting luafilesystem-1.6.2\doc\us\index.html
Extracting luafilesystem-1.6.2\doc\us\license.html
Extracting luafilesystem-1.6.2\doc\us\luafilesystem.png
Extracting luafilesystem-1.6.2\doc\us\manual.html
Extracting luafilesystem-1.6.2\rockspecs
Extracting luafilesystem-1.6.2\rockspecs\luafilesystem-1.3.0-1.rockspec
Extracting luafilesystem-1.6.2\rockspecs\luafilesystem-1.4.0-1.rockspec
Extracting luafilesystem-1.6.2\rockspecs\luafilesystem-1.4.0-2.rockspec
Extracting luafilesystem-1.6.2\rockspecs\luafilesystem-1.4.1-1.rockspec
Extracting luafilesystem-1.6.2\rockspecs\luafilesystem-1.4.1rc1-1.rockspec
Extracting luafilesystem-1.6.2\rockspecs\luafilesystem-1.4.2-1.rockspec
Extracting luafilesystem-1.6.2\rockspecs\luafilesystem-1.5.0-1.rockspec
Extracting luafilesystem-1.6.2\rockspecs\luafilesystem-1.6.0-1.rockspec
Extracting luafilesystem-1.6.2\rockspecs\luafilesystem-1.6.1-1.rockspec
Extracting luafilesystem-1.6.2\rockspecs\luafilesystem-1.6.2-1.rockspec
Extracting luafilesystem-1.6.2\rockspecs\luafilesystem-cvs-1.rockspec
Extracting luafilesystem-1.6.2\rockspecs\luafilesystem-cvs-2.rockspec
Extracting luafilesystem-1.6.2\src
Extracting luafilesystem-1.6.2\src\.gitignore
Extracting luafilesystem-1.6.2\src\lfs.c
Extracting luafilesystem-1.6.2\src\lfs.def
Extracting luafilesystem-1.6.2\src\lfs.h
Extracting luafilesystem-1.6.2\tests
Extracting luafilesystem-1.6.2\tests\test.lua
Extracting luafilesystem-1.6.2\vc6
Extracting luafilesystem-1.6.2\vc6\lfs.def
Extracting luafilesystem-1.6.2\vc6\luafilesystem.dsw
Extracting luafilesystem-1.6.2\vc6\luafilesystem_dll.dsp
Everything is Ok
Folders: 7
Files: 31
Size: 86449
Compressed: 122880
cl /MD /O2 -c -Fosrc/lfs.obj -IC:/Program Files (x86)/Lua/5.1/include src/lfs.c
Microsoft (R) C/C++ Optimizing Compiler Version 18.00.21005.1 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
lfs.c
c:\users\username\appdata\local\temp\luarocks_luafilesystem-1.6.2-2-357\luafilesy
stem-1.6.2\src\lfs.c(413) : warning C4716: 'make_link' : must return a value
link -dll -def:lfs.def -out:lfs.dll C:/Program Files (x86)/Lua/5.1/lib/lua5.1.li
b src/lfs.obj
Microsoft (R) Incremental Linker Version 12.00.21005.1
Copyright (C) Microsoft Corporation. All rights reserved.
Creating library lfs.lib and object lfs.exp
Error: Build error: Failed installing lfs.dll in C:\Program Files (x86)\Lua\5.1\
rocks/luafilesystem/1.6.2-2/lib
C:\Users\username\Downloads\luafilesystem-master\luafilesystem-master>
环境细节: Windows 7 64位,Visual Studio 13
我是否需要以管理员身份运行它?如果是这样,我不知道如何以管理员身份运行此脚本。
答案 0 :(得分:2)
可悲的是,Windows无法识别此类安装案例,也不会提示自动。因此,您必须以管理员身份安装它。
以管理员身份登录Windows终端的方法之一:
Win + R
- > cmd
- > Shift + Ctrl + Enter
。