0

I try to compile VIM with python interpreter enabled.

Yet, I've got Ubuntu 20.04 (can not update easily) with Python 3.8 as system version. I need VIM with Python >3.9.

I installed python3.10 and libpython3.10 to compile.

I run this command to configure it:

./configure \
  --prefix=/usr/local \
  --with-features=huge \ 
  --with-x \
  --enable-python3interp=yes \
  --with-python3-config-dir=$(python3.10-config --configdir) \
  --with-python3-command=python3.10

and I still get

checking --enable-pythoninterp argument... no
checking --enable-python3interp argument... no

No need to tell you vim --version still tell me -python3. This is not enabled.

It seems VIM configure can not take this option into account. It does not find the python dependencies.

What's wrong here?

I saw this solution which tell not to use the deprecated option --with-python3-config-dir but it does not work either...

Merry christmas to everyone :)

6
  • 1
    What exact packages did you install? Commented Dec 24, 2024 at 15:33
  • I made sudo apt-get install python3.10 libpython3.10-dev python3.10-dev Commented Dec 24, 2024 at 16:15
  • You should add that info to the question. Commented Dec 24, 2024 at 16:21
  • Try with the --verbose option? Commented Dec 24, 2024 at 22:09
  • IIRC the homebrew recipe also sets PYTHONPATH or similar in the environment when compiling. I generally use it as inspiration Commented Dec 25, 2024 at 12:49

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.