A story when a beginner gets stuck trying to build a vim 8.2 + python 3.8.2 + lua plugin environment on Ubuntu 18.04.4 LTS

Overview

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

Install Vim

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.

Lesson

Take a look at your environment before copying. Read the error message properly.

Recommended Posts

A story when a beginner gets stuck trying to build a vim 8.2 + python 3.8.2 + lua plugin environment on Ubuntu 18.04.4 LTS
How to build a Python environment using Virtualenv on Ubuntu 18.04 LTS
How to build a new python virtual environment on Ubuntu
A story that got stuck when trying to upgrade the Python version on GCE
Memo A beginner tried to build a Java environment and Japaneseize it on Ubuntu 18.04.2 LTS.
When I tried to build a Rails environment on WSL2 (Ubuntu 20.04LTS), I stumbled and fell.
How to build a Django (python) environment on docker
How to build a Python environment on amazon linux 2
Building a Python environment on Ubuntu
Build Python 3.8 + Pipenv environment on Ubuntu 18.04
When creating an environment that uses python django on Ubuntu 12.04 LTS
Build Python environment on Ubuntu (when pip is not the default)
I want to build a Python environment
Steps to install Python environment on Ubuntu
Build a Python + OpenCV environment on Cloud9
Things to watch out for when creating a Python environment on a Mac
A story of a deep learning beginner trying to classify guitars on CNN
Ubuntu18.04.05 Creating a python virtual environment in LTS
Build python environment with pyenv on EC2 (ubuntu)
Build Python3.5 + matplotlib environment on Ubuntu 12 using Anaconda
Simply build a Python 3 execution environment on Windows
[Latest] How to build Java environment on Ubuntu
Build a python environment with ansible on centos6
Build a Python development environment on your Mac
[Venv] Create a python virtual environment on Ubuntu
Build a Kubernetes environment for development on Ubuntu
How to build Java environment on Ubuntu (Linux)
Build a Python development environment on Raspberry Pi
How to build a beautiful Python environment on a new Mac and install Jupter Notebook
I got stuck when trying to specify a relative path with relative_to () in python
A story about a Python beginner trying to get Google search results using the API
How to create a Python 3.6.0 environment by putting pyenv on Amazon Linux and Ubuntu
Build a GVim-based Python development environment on Windows 10 (3) GVim8.0 & Python3.6
Build a machine learning Python environment on Mac OS
Create a plugin to run Python Doctest in Vim (2)
Create a plugin to run Python Doctest in Vim (1)
I made a Python3 environment on Ubuntu with direnv.
Build a GVim-based Python development environment on Windows 10 (1) Installation
Build a Python development environment on Mac OS X
Build a Python environment on your Mac using pyenv
Troublesome story when using Python3 with VScode on ubuntu
Build a Python development environment using pyenv on MacOS
build Python on Ubuntu
A story about trying to use cron on a Raspberry Pi and getting stuck in space
Build a python machine learning study environment on macOS sierra
Build an Ubuntu python development environment on Google Cloud Platform
[python] A note when trying to use numpy with Cython
Build a python data analysis environment on Mac (El Capitan)
Build a GVim-based Python development environment on Windows 10 (2) Basic settings
Build a Python environment and transfer data to the server
How to build a python2.7 series development environment with Vagrant
A story about trying to implement a private variable in Python.
When you want to hit a UNIX command on Python
Until building a Python development environment using pyenv on Ubuntu 20.04
Build a python environment on CentOS 7.7 for your home server
A story about a python beginner stuck with No module named'http.server'
Build Python environment on Windows
Build a Python environment offline
About the error I encountered when trying to use Adafruit_DHT from Python on a Raspberry Pi
A story about trying to automate a chot when cooking for yourself
Build a 64-bit Python 2.7 environment with TDM-GCC and MinGW-w64 on Windows 7