Last active
November 19, 2023 05:00
-
-
Save mrsipan/20f9bdddb656f319e45467c73f508701 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -vex | |
printf "%s\n" "Make sure python is compiled with --enable-shared!!!" | |
rm -rf vim | |
git clone https://github.com/vim/vim.git | |
cd vim | |
export PATH=$HOME/opt/pylocal/bin:$PATH | |
CPPFLAGS="-I$HOME/opt/pylocal/include" | |
export LDFLAGS="-L$HOME/opt/pylocal/lib" | |
CPPFLAGS="-I$HOME/opt/pylocal/include/python3.11" \ | |
LDFLAGS="-L$HOME/opt/pylocal/lib" \ | |
./configure --with-features=huge \ | |
--enable-multibyte \ | |
--enable-python3interp \ | |
--with-python3-config-dir=$HOME/opt/pylocal/lib/python3.11/config-3.11-darwin \ | |
--enable-cscope \ | |
--prefix=$HOME/opt/vimlocal | |
# --with-python3-config-dir=$HOME/opt/pylocal/lib/python3.8/config-3.8-x86_64-linux-gnu \ | |
make VIMRUNTIMEDIR="$HOME/opt/vimlocal/share/vim/vim90" | |
make | |
make install | |
# # add python lib to /etc/ld.so.conf | |
# cat << EOF > /etc/ld.so.conf.d/clean-python.conf | |
# /opt/clean_python/3.6.1/lib | |
# EOF | |
# sudo ldconfig -v | |
# or | |
# export LD_LIBRARY_PATH=$HOME/opt/pylocal/lib | |
export LD_LIBRARY_PATH=$HOME/opt/pylocal/lib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment