可以使用Luarocks安装LUA软件包,这是由于架构冲突而使用的
尝试安装lpeg
使用luarocks
库时,我会遇到以下错误:
lptree.obj : error LNK2019: unresolved external symbol luaL_checkudata referenced in function lp_gc
C:\Program Files (x86)\Lua\5.1\lib\lua5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
lpeg.dll : fatal error LNK1120: 55 unresolved externals
Error: Build error: Failed installing lpeg.dll in C:\Program Files (x86)\Lua\5.1\rocks/lpeg/1.0.2-1/lib
我正在使用以下版本的lua
:
LUA 5.1.5版权(c)1994-2012 lua.org,puc-rio
和以下版本的luarocks
:
luarocks 2.0.2
LuaRocks main command-line interface
我使用命令安装了lpeg
提供在这里 namely:
luarocks install lpeg
我不确定我不确定什么我做错了。有什么想法吗?
I'm getting the following error when trying to install the lpeg
library using luarocks
:
lptree.obj : error LNK2019: unresolved external symbol luaL_checkudata referenced in function lp_gc
C:\Program Files (x86)\Lua\5.1\lib\lua5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
lpeg.dll : fatal error LNK1120: 55 unresolved externals
Error: Build error: Failed installing lpeg.dll in C:\Program Files (x86)\Lua\5.1\rocks/lpeg/1.0.2-1/lib
I'm using the following version of lua
:
Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio
And the following version of luarocks
:
luarocks 2.0.2
LuaRocks main command-line interface
I installed lpeg
using the command provided here namely:
luarocks install lpeg
I'm not sure what I'm doing wrong. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论