I'm using Debian unstable and with the latest checkout from master my build suddenly fails:
$ git clone https://github.com/neovim/neovim
$ cd neovim
$ make
# Getting dependencies works fine
[67/71] Generating usr/lib/luarocks/rocks/lpeg
/usr/bin/cc -O2 -fPIC -I/mnt/data/build/neovim/.deps/usr/include/luajit-2.0 -c lpcap.c -o lpcap.o
/usr/bin/cc -O2 -fPIC -I/mnt/data/build/neovim/.deps/usr/include/luajit-2.0 -c lpcode.c -o lpcode.o
/usr/bin/cc -O2 -fPIC -I/mnt/data/build/neovim/.deps/usr/include/luajit-2.0 -c lpprint.c -o lpprint.o
/usr/bin/cc -O2 -fPIC -I/mnt/data/build/neovim/.deps/usr/include/luajit-2.0 -c lptree.c -o lptree.o
/usr/bin/cc -O2 -fPIC -I/mnt/data/build/neovim/.deps/usr/include/luajit-2.0 -c lpvm.c -o lpvm.o
/usr/bin/cc -shared -o lpeg.so -L/mnt/data/build/neovim/.deps/usr/lib lpcap.o lpcode.o lpprint.o lptree.o lpvm.o
Updating manifest for /mnt/data/build/neovim/.deps/usr/lib/luarocks/rocks
lpeg 1.0.0-1 is now built and installed in /mnt/data/build/neovim/.deps/usr (license: MIT/X11)
# ....
-- Checking Lua interpreter /mnt/data/build/neovim/.deps/usr/bin/luajit
-- [/mnt/data/build/neovim/.deps/usr/bin/luajit] The 'lpeg' lua package is required for building Neovim
CMake Error at CMakeLists.txt:350 (message):
A suitable Lua interpreter was not found.
-- Configuring incomplete, errors occurred!
See also "/mnt/data/build/neovim/build/CMakeFiles/CMakeOutput.log".
See also "/mnt/data/build/neovim/build/CMakeFiles/CMakeError.log".
Makefile:65: recipe for target 'build/.ran-cmake' failed
make: *** [build/.ran-cmake] Error 1
edit: It seems that the underlying cause is a conflict with my local Lua/LuaRocks installation. Unsetting the LUA_PATH
and LUA_CPATH
environment variables solved the issue.
Maybe this is something that should be mentioned in the wiki?
Please update the wiki. Thanks
Done!
Confirmed:
unsetting LUA_PATH and LUA_CPATH solved make errors for me.
I have torch installed in my home directory which added these variables.
Most helpful comment
Confirmed:
unsetting LUA_PATH and LUA_CPATH solved make errors for me.
I have torch installed in my home directory which added these variables.