[vim 8.0] -python, -python3 지원가능하도록 compile 문의

   조회 3815   추천 2    

vim8.0을 기본값으로 complile하여 설치하면, 하기와 같이 python이 지원되지 않네요

> vim --version | grep python

VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jun 12 2017 05:24:26)
Included patches: 1-635
Compiled by ****@***.localdomain
Huge version without GUI.  Features included (+) or not (-):

...
+cryptv          +linebreak       -python          +vreplace
+cscope          +lispindent      -python3         +wildignore


하기와 같이 설치하면, 

./configure --with-features=huge \
                 --with-python-config-dir=/usr/lib/python2.7/config

하기와 같이 설치가 되네요

[nso] root:~/vim > vim --version | grep python
+cryptv          +linebreak       -python          +vreplace
+cscope          +lispindent      -python3         +wildignore


vim 8.0에 python module enable 하신분의 조언 부탁 드립니다.


감사합니다.


짧은글 일수록 신중하게.
--enable-pythoninterp 옵션도 추가해주세요..
     
알려주신 조언대로 하였는데, 아직 해당 현상은 해결되지 않았습니다.
제가 무엇인가 놓치고 있는 것이 있는 거 같습니다.

./configure --with-features=huge --enable-pythoninterp --with-python-config-dir=/usr/lib/python2.7/config
....
1634 translated messages, 3 fuzzy translations.
make[2]: Leaving directory `/root/vim/vim80/src/po'
make[2]: Entering directory `/root/vim/vim80/src/po'
make[2]: Nothing to be done for `converted'.
make[2]: Leaving directory `/root/vim/vim80/src/po'
make[1]: Leaving directory `/root/vim/vim80/src'

make
....
checking linker --as-needed support... yes
configure: updating cache auto/config.cache
configure: creating auto/config.status
config.status: creating auto/config.mk
config.status: creating auto/config.h

make install
....
if test -d /usr/local/share/applications -a -w /usr/local/share/applications; then \
  cp ../runtime/vim.desktop \
        ../runtime/gvim.desktop \
        /usr/local/share/applications; \
  if test -z "" -a -x ""; then \
      -q /usr/local/share/applications; \
  fi \
fi
make[1]: Leaving directory `/root/vim/vim80/src'

$  ls -al /usr/local/bin/vim
-rwxr-xr-x. 1 root root 2525800 Jun 13 17:22 /usr/local/bin/vim
$  /usr/local/bin/vim --version | grep python
+cryptv          +linebreak      -python          +vreplace
+cscope          +lispindent      -python3        +wildignore
          
--with-python-config-dir=/usr/bin/python-config 로 변경해보세요


QnA
제목Page 4267/5711
2014-05   5163837   정은준1
2015-12   1698045   백메가
2020-03   3829   guest1
2015-11   3829   AI입니다
2017-05   3829   코뿔사냥
2021-12   3829   몽동이
2017-09   3829   대한민국
2019-07   3829   대한민국
2016-02   3829   인생여전
2016-03   3829   슬루프
2014-08   3829   나현근
2020-09   3829   김준유
2020-06   3829   공백기
2018-07   3829   동행큐브
2015-12   3829   김건우
2017-05   3829   나비z
2014-03   3829   아름다운노을
2018-11   3829   Realwook
2014-04   3829   여주이상돈
2019-08   3829   이종현oph
2016-06   3829   늘파란
2015-12   3829   chinni00