我想在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.2Checking 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 .2Checking for installed lua library using pkg-config
Did not find lua using pkg-config: pkg-config cannot find an installed luaChecking for installed lua5.1 library using pkg-config
Did not find lua5.1 using pkg-config: pkg-config cannot find an installed lua5.1Checking 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 .1Checking 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
環境變量,並將其添加手動沒有工作。 請幫忙,我很難過。如果您需要更多信息,請與我們聯繫。
這就是我做到的方式,嗯.. – JuniorGenius 2014-12-20 10:52:56