可以使用Luarocks安装LUA软件包,这是由于架构冲突而使用的

发布于 2025-02-08 07:01:07 字数 934 浏览 3 评论 0原文

尝试安装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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文