Open AllanChain opened 3 years ago
Thank YOU!
You save me. Compiling Vim on RHEL 7 with python support has been killing me for weeks.
LDFLAGS=-rdynamic
is my saver!
If someone else will be searching for this:
--enable-python3interp=dynamic
did not work for me but
--enable-python3interp
works.
View Post on Blog
Disclaimer: There may be many errors and unneccesary parts in this post. But the command works, at least on my machine.
Background
Somewhat old system. No
sudo
. Want awesome Vim8 +Python3.8Quick Answer
Break Down
Clean before try again
Options v.s. Env vars
Both are important. For example, do not pass
vi_cv_path_python
as an option, although it's in lower case 😄User install
What is
python3-config-dir
https://vi.stackexchange.com/a/18509
A directory containing
config.c
-rdynamic
?It just solves
undefined symbol: PyTuple_Type
: https://github.com/vim/vim/issues/5509#issuecomment-650468467Also, just go dynamic (with
+python3/dyn
) is fine: