1
ウェブページの指示に従ってvim80をコンパイルしたい。私の環境に合わせてカスタマイズする方法python2と3でソースからvim80をビルドするには?
build vim80 from source with python2 and 3 support
./configure --with-features=huge \
--enable-multibyte \
--enable-rubyinterp=yes \
--enable-pythoninterp=yes \
--with-python-config-dir=/usr/lib/python2.7/config \
--enable-python3interp=yes \
--with-python3-config-dir=/usr/lib/python3.5/config \
--enable-perlinterp=yes \
--enable-luainterp=yes \
--enable-gui=gtk2 --enable-cscope --prefix=/usr
?
1.For python2.7
ls /usr/lib/python2.7 |grep config
config-x86_64-linux-gnu
_sysconfigdata.py
_sysconfigdata.pyc
_sysconfigdata.pyo
sysconfig.py
sysconfig.pyc
sysconfig.pyo
2.Forのpython3
sudo find/-name 'config' |grep python3
/home/debian8/anaconda3/lib/python3.6/site-packages/navigator_updater/config
/home/debian8/anaconda3/lib/python3.6/site-packages/anaconda_navigator/config
/home/debian8/anaconda3/lib/python3.6/site-packages/spyder/config
/home/debian8/anaconda3/lib/python3.6/site-packages/spyder/utils/help/js/mathjax/config
/home/debian8/anaconda3/lib/python3.6/site-packages/notebook/static/components/MathJax/config
/home/debian8/anaconda3/lib/python3.6/site-packages/notebook/services/config
/home/debian8/anaconda3/lib/python3.6/site-packages/astropy/config
/home/debian8/anaconda3/lib/python3.6/site-packages/traitlets/config
/home/debian8/anaconda3/pkgs/spyder-3.1.4-py36_0/lib/python3.6/site-packages/spyder/config
/home/debian8/anaconda3/pkgs/spyder-3.1.4-py36_0/lib/python3.6/site-packages/spyder/utils/help/js/mathjax/config
/home/debian8/anaconda3/pkgs/astropy-1.3.2-np112py36_0/lib/python3.6/site-packages/astropy/config
/home/debian8/anaconda3/pkgs/traitlets-4.3.2-py36_0/lib/python3.6/site-packages/traitlets/config
/home/debian8/anaconda3/pkgs/anaconda-navigator-1.6.2-py36_0/lib/python3.6/site-packages/anaconda_navigator/config
/home/debian8/anaconda3/pkgs/navigator-updater-0.1.0-py36_0/lib/python3.6/site-packages/navigator_updater/config
/home/debian8/anaconda3/pkgs/notebook-5.0.0-py36_0/lib/python3.6/site-packages/notebook/static/components/MathJax/config
/home/debian8/anaconda3/pkgs/notebook-5.0.0-py36_0/lib/python3.6/site-packages/notebook/services/config
は具体的に、どのように私のOS用の3行を変更するには?
--with-python-config-dir=/usr/lib/python2.7/config \
--enable-python3interp=yes \
--with-python3-config-dir=/usr/lib/python3.5/config \
ここで私はpython2と3のサポートを試しています。
./configure --with-features=huge \
--enable-multibyte \
--enable-rubyinterp=yes \
--enable-pythoninterp=yes \
--with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu \
--enable-python3interp=yes \
--with-python3-config-dir=/home/debian8/anaconda3/lib/python3.6/site-packages/anaconda_navigator/config \
--enable-perlinterp=yes \
--enable-luainterp=yes \
--enable-gui=gtk2 --enable-cscope --prefix=/usr
make install後にこの設定に対してpython2またはpython3をサポートしていないことは不幸です。
vim --version|grep python
+cryptv +linebreak -python +vreplace
+cscope +lispindent -python3 +wildignore
私はあなたの質問がここにあるのかわからないんだけど。 "+ python"と "+ python3"以外のものを見たいと思っていましたか? – GregHNZ
はい、+ pythonと+ python3 –