neovimインストール時にluaパッケージが無いと言われた時の対処

neovimをHomebrewでインストールした時、以下のようなエラーを得た:

$ brew install neovim/neovim/neovim
==> Installing neovim from neovim/neovim
==> Downloading https://github.com/neovim/neovim/archive/v0.1.7.tar.gz
Already downloaded: /Users/***/Library/Caches/Homebrew/neovim-0.1.7.tar.gz
==> Downloading https://github.com/luvit/luv/archive/146f1ce4c08c3b67f604c9ee1e124b1cf5c15cf3.tar.gz
Already downloaded: /Users/***/Library/Caches/Homebrew/neovim--luv-3.tar.gz
==> Downloading https://raw.githubusercontent.com/neovim/deps/master/opt/LuaJIT-2.0.4.tar.gz
Already downloaded: /Users/***/Library/Caches/Homebrew/neovim--luajit-2.0.4.tar.gz
==> Downloading https://github.com/keplerproject/luarocks/archive/5d8a16526573b36d5b22aa74866120c998466697.tar.gz
Already downloaded: /Users/***/Library/Caches/Homebrew/neovim--luarocks-998466697.tar.gz
==> Building third-party dependencies.
==> cmake ../third-party -DUSE_BUNDLED_BUSTED=OFF -DUSE_BUNDLED_GPERF=OFF -DUSE_BUNDLED_LIBUV=OFF -DUSE_BUNDLED_MSGPACK=OFF -DUSE_BUNDLED_UNIBILIUM=OFF -DUSE_BUNDLED_LIBTERMKEY=OFF -DUSE_BUNDLED_LIBVTERM=OFF -DUSE_BUNDLED_JEMALLOC=OFF -DUSE_EXISTING_SRC_DIR=ON -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/
==> make VERBOSE=1
==> Building Neovim.
==> cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/neovim/0.1.7 -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DDEPS_PREFIX=../deps-build/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo -DJEMALLOC_LIBRARY=/usr/local/opt/jemalloc/lib/libjemalloc.a
Last 15 lines from /Users/***/Library/Logs/Homebrew/neovim/03.cmake:
-- Found Iconv
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Checking Lua interpreter /tmp/neovim-20170125-64421-1l8rrfq/neovim-0.1.7/deps-build/usr/bin/luajit
-- [/tmp/neovim-20170125-64421-1l8rrfq/neovim-0.1.7/deps-build/usr/bin/luajit] The 'lpeg' lua package is required for building Neovim
CMake Error at CMakeLists.txt:409 (message):
  A suitable Lua interpreter was not found.


-- Configuring incomplete, errors occurred!
See also "/tmp/neovim-20170125-64421-1l8rrfq/neovim-0.1.7/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/neovim-20170125-64421-1l8rrfq/neovim-0.1.7/build/CMakeFiles/CMakeError.log".

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/neovim/homebrew-neovim/issues

These open issues may also help:
Build a proper release version of neovim, not a release with debugging info version https://github.com/neovim/homebrew-neovim/issues/209
Can't install via homebrew-neovim if luarocks path is set explicitly https://github.com/neovim/homebrew-neovim/issues/149

これはluaのlpegというパッケージが無いという内容。
luarocksというluaのパッケージマネージャで依存パッケージをインストールする。lpegmpackの二種類が必要。

luarocks install lpeg
luarocks install mpack

これで無事インストールできた。

作ってます↓

Inkdrop - The Notebook App for Markdown Lover

気に入ったらシェアしてね


コメントを残す