Since I subscribed to mastering Vim, I made a transcendental rudimentary mistake when trying to build a plug-in environment by referring to the following article by @ kiwi-bird to prepare the Vim environment, so be careful. I will publish it.
Reference article Build vim8.2 + python + ruby + lua plugin environment on Ubuntu 18.04
We would appreciate it if you could refer to the above for advance preparations. In addition, ruby is not installed this time
I installed it quickly.
git clone https://github.com/vim/vim
cd vim
./configure \
--enable-fail-if-missing \
--with-features=huge \
--disable-selinux \
--enable-perlinterp \
--enable-python3interp \
--enable-rubyinterp \
--with-ruby-command=$HOME/.rbenv/shims/ruby \
--enable-luainterp \
--with-lua-prefix=$HOME/.luaenv/versions/5.3.5 \
--enable-cscope \
--enable-fontset \
--enable-multibyte \
vi_cv_path_python3=$HOME/.pyenv/shims/python
However
configure: creating cache auto/config.cache
checking whether make sets $(MAKE)... yes
~(Abbreviation)~
checking --enable-perlinterp argument... yes
checking for perl... /usr/bin/perl
checking Perl version... OK
checking if compile and link flags for Perl are sane... no: PERL DISABLED
configure: error: could not configure perl
I got an error in perl because I just put it in by copying. At this time, I do make
without much concern, and neither python nor lua is enabled.
As a result, I learned to read the error message only after doing several retries such as changing directories and reinstalling. .. ..
Remove the description of perl and ruby that is not installed this time, and enter the command again as perfect
# ./configure \
--enable-fail-if-missing \
--with-features=huge \
--disable-selinux \
--enable-python3interp \
--enable-luainterp \
--with-lua-prefix=$HOME/.luaenv/versions/5.3.5 \
--enable-cscope \
--enable-fontset \
--enable-multibyte \
vi_cv_path_python3=$HOME/.pyenv/shims/python
configure: creating cache auto/config.cache
checking whether make sets $(MAKE)... yes
~(Abbreviation)~
checking --with-lua-prefix argument... /home/u_sota/.luaenv/versions/5.3.5
checking --with-luajit... no
checking for lua... no
checking if lua.h can be found in /home/u_sota/.luaenv/versions/5.3.5/include... yes
checking if link with -L/home/u_sota/.luaenv/versions/5.3.5/lib -llua is sane... yes
checking --enable-mzschemeinterp argument... no
checking --enable-perlinterp argument... no
checking --enable-pythoninterp argument... no
checking --enable-python3interp argument... yes
checking --with-python3-command argument... no
checking Python version... auto/configure: line 6682: /home/u_sota/.pyenv/shims/python: No such file or directory
checking Python is 3.0 or better... auto/configure: line 6689: /home/u_sota/.pyenv/shims/python: No such file or directory
too old
configure: error: could not configure python3
He said he couldn't find Python this time. python is under $ HOME / .anyenv /
It was because there was. Change the description of vi_cv_path_python3
.
./configure \
--enable-fail-if-missing \
--with-features=huge \
--disable-selinux \
--enable-python3interp \
--enable-luainterp \
--with-lua-prefix=$HOME/.luaenv/versions/5.3.5 \
--enable-cscope \
--enable-fontset \
--enable-multibyte \
vi_cv_path_python3=$HOME/.anyenv/envs/pyenv/shims/python
configure: loading cache auto/config.cache
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
~(Abbreviation)~
configure: updating cache auto/config.cache
configure: creating auto/config.status
config.status: creating auto/config.mk
config.status: creating auto/config.h
It seems that this time it went well. When I checked the version after make
, lua and python3 were enabled, so I installed it.
Take a look at your environment before copying. Read the error message properly.
Recommended Posts