2014-11-08 42 views
1

我想在Windows 7 64bit上編譯lupa,並且已經安裝了所有依賴項(包括LuaJIT2和Lua 5.2)。但是,當我嘗試安裝,我得到這個錯誤:構建Lupa時出錯(可能是pkg-config的一個問題)

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)

它困惑我也因爲它檢查的Lua 5.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-config的一個問題。我查看了setup.py,它使用pkg-config來測試軟件包是否存在,並獲取版本。直接從控制檯運行時,pkg-config無法找到任何軟件包。當我尋找一個(在這種情況下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環境變量,並將其添加手動沒有工作。 請幫忙,我很難過。如果您需要更多信息,請與我們聯繫。

回答

2

您需要將LuaJIT軟件包解壓縮到LUPA的基礎目錄中。

如果lupa位於「D:\ project \ lupa1.1」,則需要將LuaJIT放入該目錄,例如「D:\ project \ lupa1.1 \ LuaJIT-2.0.3」。

試試吧,祝你好運!

+0

這就是我做到的方式,嗯.. – JuniorGenius 2014-12-20 10:52:56

相關問題