生成Lupa时出错(可能是pkgconfig的问题)

2024-05-29 00:11:36 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图在64位的Windows7上编译lupa,并且我已经安装了所有的依赖项(包括LuaJIT2和lua5.2)。但是当我尝试安装时,我得到了一个错误:

RuntimeError: Neither LuaJIT2 nor Lua 5.1 were found, please install the library and its development packages, or put a local build into the lupa main directory (or pass '--no-luajit' option)

这也让我困惑,因为它检查了lua5.2和5.1,但抱怨我没有5.1。在

Checking for installed lua5.2 library using pkg-config
Did not find lua5.2 using pkg-config: pkg-config cannot find an installed lua5.2

Checking for installed lua-5.2 library using pkg-config
Did not find lua-5.2 using pkg-config: pkg-config cannot find an installed lua-5 .2

Checking for installed lua library using pkg-config
Did not find lua using pkg-config: pkg-config cannot find an installed lua

Checking for installed lua5.1 library using pkg-config
Did not find lua5.1 using pkg-config: pkg-config cannot find an installed lua5.1

Checking for installed lua-5.1 library using pkg-config
Did not find lua-5.1 using pkg-config: pkg-config cannot find an installed lua-5 .1

Checking for installed lua library using pkg-config
Did not find lua using pkg-config: pkg-config cannot find an installed lua

我很确定这是pkg配置的问题。我看了看里面设置.py它使用pkg config来测试包是否存在,并获取版本。直接从控制台运行pkg配置时找不到任何包。当我寻找一个(在本例中是LuaJIT2)时,我得到的是:

Package luajit was not found in the pkg-config search path.
Perhaps you should add the directory containing `luajit.pc' to the PKG_CONFIG_PATH environment variable
No package 'luajit' found

没有名为PG_CONFIG_PATH的环境变量,手动添加它不起作用。 请帮帮我,我被难住了。如果你需要更多信息,请告诉我。在


Tags: installedtheanconfigforlibrarynotpkg
1条回答
网友
1楼 · 发布于 2024-05-29 00:11:36

您需要将LuaJIT包解压到LUPA的基本目录中。在

如果lupa位于“D:\project\lupa1.1”,则需要将LuaJIT放入该目录,如“D:\project\lupa1.1\LuaJIT-2.0.3”。在

试试看,祝你好运!在

相关问题 更多 >

    热门问题