Skip to content

Instantly share code, notes, and snippets.

@takkii takkii/vim_build_com.md
Last active Jul 24, 2019

Embed
What would you like to do?
vim8.1

Vim8.1をソースからビルド

LinuxMint / Ubuntu

git clone https://github.com/vim/vim

cd vim

git pull

cd src

sudo ./configure \
--enable-multibyte \
--enable-perlinterp=dynamic \
--enable-rubyinterp=dynamic \
--enable-python3interp=dynamic \
--with-python3-config-dir=/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu/ \
--enable-luainterp \
--with-luajit \
--enable-cscope \
--enable-gui=auto \
--with-features=huge \
--with-x \
--enable-fontset \
--enable-largefile \
--disable-netbeans \
--with-compiledby="Takayuki Kamiyama" \
--enable-fail-if-missing \
--prefix=/usr/local/vim

macvim

git clone https://github.com/macvim-dev/macvim.git

 cd macvim

 ./configure \
 --with-features=huge \
 --enable-multibyte \
 --enable-perlinterp \
 --enable-rubyinterp \
 --enable-tclinterp \
 --with-tlib=ncurses \
 --with-local-dir="$(brew --prefix)" \
 --enable-cscope \
 --enable-luainterp \
 --with-lua-prefix="$(brew --prefix luajit)" \
 --with-luajit \
 --enable-python3interp

 make

 mv src/MacVim/build/Release/MacVim.app /Applications

 ln -s /Applications/MacVim.app/Contents/bin/mvim "$(brew --prefix)/bin/gvim"

Neovim

[Debug]

git clone https://github.com/neovim/neovim 

cd neovim

rm -rf build/

make CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX:PATH=/usr/local"

sudo rm -rf /usr/local/share/nvim

sudo make install

or

[release]

https://github.com/neovim/neovim/wiki/Installing-Neovim

curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim-macos.tar.gz
tar xzf nvim-macos.tar.gz
./nvim-osx64/bin/nvim

neovim-qt

git clone https://github.com/equalsraf/neovim-qt

cd neovim-qt

mkdir build

cd build

cmake -DCMAKE_BUILD_TYPE=Release ..

make

neovim-qt(Windows visual studio 2017 開発者プロンプト)

$ mkdir build
$ cd build
$ cmake -G "Visual Studio 15" -DCMAKE_BUILD_TYPE=Release ..
$ cmake --build . --config Release --target install

Neovim / VisualStudio2017ビルド

必須条件

visualstudio2017 community edition https://visualstudio.microsoft.com/ja/vs/older-downloads/

QT5 select open source edition https://www.qt.io/download

参考サイト https://qiita.com/DaisukeAtaraxiA/items/60787eb83c133ff9cbee

> git clone https://github.com/neovim/neovim

> cd (クローンしたneovimのディレクトリ)
> mkdir .deps
> cd .deps
> cmake -G "Visual Studio 15 2017 Win64" ..\third-party -DCMAKE_BUILD_TYPE=Debug
> cmake --build .

> cd (クローンしたneovimのディレクトリ)
> mkdir build
> cd build
> cmake -G "Visual Studio 15 2017 Win64" ..\ -DCMAKE_BUILD_TYPE=Debug

> "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe" nvim.sln

fedora 30 (Vim8 build)

CFLAGS=-fPIC ./configure --enable-multibyte --enable-perlinterp=dynamic --enable-rubyinterp=dynamic --enable-python3interp=dynamic --enable-luainterp --with-luajit --enable-cscope --enable-gui=auto --with-features=huge --with-x --enable-fontset --enable-largefile --disable-netbeans --with-tlib=ncurses --with-compiledby="Takayuki Kamiyama" --enable-fail-if-missing --prefix=/usr/local/vim
@takkii

This comment has been minimized.

Copy link
Owner Author

commented May 27, 2019

sudo apt install ruby-dev
sudo apt install lua5.3 liblua5.3-dev
sudo apt install python2.7-dev python2.7-doc
sudo apt install libperl-dev
sudo apt list --installed | grep vim

make clean
sudo make uninstall
make && sudo make install

@takkii

This comment has been minimized.

Copy link
Owner Author

commented Jun 6, 2019

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Xcode-select --install
xcode-select -p
sudo xcode-select --switch /Library/Developer/CommandLineTools
sudo xcode-select -r

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.