Last active
July 2, 2019 01:07
-
-
Save pocari/198a188206ecc99fca68e5193111d2f0 to your computer and use it in GitHub Desktop.
Neovim build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 2019/6末ぐらいから変わった | |
https://github.com/neovim/neovim/wiki/Building-Neovim#quick-start | |
brew install ninja libtool automake cmake pkg-config gettext | |
## 初回 | |
cloneしてきたneovim/neovimディレクトリで下記を実行 | |
make CMAKE_INSTALL_PREFIX=~/usr/local CMAKE_BUILD_TYPE=RelWithDebInfo install | |
## 二回目以降 | |
CMAKE_XXXのオプションは ./buildに保存されているので、 普段はgit pullしてmake, make installのみ | |
CMAKE_XXXのオプションをリセットした場合は、 ./build ディレクトリを削除して初回の手順を再度行う | |
# ↓は古いのでもうビルドできない | |
# 公式のbuild手順でmac用の準備をする | |
https://github.com/neovim/neovim/wiki/Building-Neovim#macos | |
# 依存ライブラリbuild | |
mkdir .deps | |
cd .deps | |
cmake ../third-party/ | |
make | |
# neovim をビルドしてインストール ~/usr/local以下に入れる | |
cd .. | |
mkdir build | |
cd build | |
cmake .. -DCMAKE_INSTALL_PREFIX=~/usr/local -DCMAKE_BUILD_TYPE=RelWithDebInfo | |
make | |
make install | |
# その後は、ライブラリなどに変更がなければ日々の作業は | |
git pull | |
make | |
make install | |
のみ。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment