我一直在使用google搜索了大約一個小時,很多人都有同樣的問題,儘管我似乎無法得到我的答案。我試圖讓clang_complete工作,並且我知道我需要在Vim中支持Python。根據:version
,我的Vim彙編缺少-python
和-python3
。簡單的問題:在Linux Debian上,如何使用python支持重新編譯Vim?使用Python支持重新編譯VIM for clang_complete
1
A
回答
1
要啓用蟒蛇解釋器,嘗試
./configure --enable-pythoninterp=yes --enable-python3interp=yes && make && make install
你可以尋找到src/auto/configure
獲得的功能和程序包的列表。這是我的vim版本7.4
。
Optional Features:
--disable-option-checking ignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-fail-if-missing Fail if dependencies on additional features
specified on the command line are missing.
--disable-darwin Disable Darwin (Mac OS X) support.
--disable-selinux Don't check for SELinux support.
--disable-xsmp Disable XSMP session management
--disable-xsmp-interact Disable XSMP interaction
--enable-luainterp=OPTS Include Lua interpreter. default=no OPTS=no/yes/dynamic
--enable-mzschemeinterp Include MzScheme interpreter.
--enable-perlinterp=OPTS Include Perl interpreter. default=no OPTS=no/yes/dynamic
--enable-pythoninterp=OPTS Include Python interpreter. default=no OPTS=no/yes/dynamic
--enable-python3interp=OPTS Include Python3 interpreter. default=no OPTS=no/yes/dynamic
--enable-tclinterp Include Tcl interpreter.
--enable-rubyinterp=OPTS Include Ruby interpreter. default=no OPTS=no/yes/dynamic
--enable-cscope Include cscope interface.
--enable-workshop Include Sun Visual Workshop support.
--disable-netbeans Disable NetBeans integration support.
--enable-sniff Include Sniff interface.
--enable-multibyte Include multibyte editing support.
--enable-hangulinput Include Hangul input support.
--enable-xim Include XIM input support.
--enable-fontset Include X fontset output support.
--enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk2/gnome2/motif/athena/neXtaw/photon/carbon
--enable-gtk2-check If auto-select GUI, check for GTK+ 2 default=yes
--enable-gnome-check If GTK GUI, check for GNOME default=no
--enable-motif-check If auto-select GUI, check for Motif default=yes
--enable-athena-check If auto-select GUI, check for Athena default=yes
--enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
--enable-carbon-check If auto-select GUI, check for Carbon default=yes
--disable-gtktest Do not try to compile and run a test GTK program
--disable-largefile omit support for large files
--disable-acl Don't check for ACL support.
--disable-gpm Don't use gpm (Linux mouse daemon).
--disable-sysmouse Don't use sysmouse (mouse in *BSD console).
--disable-nls Don't support NLS (gettext()).
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-mac-arch=ARCH current, intel, ppc or both
--with-developer-dir=PATH use PATH as location for Xcode developer tools
--with-local-dir=PATH search PATH instead of /usr/local for local libraries.
--without-local-dir do not search /usr/local for local libraries.
--with-vim-name=NAME what to call the Vim executable
--with-ex-name=NAME what to call the Ex executable
--with-view-name=NAME what to call the View executable
--with-global-runtime=DIR global runtime directory in 'runtimepath'
--with-modified-by=NAME name of who modified a release version
--with-features=TYPE tiny, small, normal, big or huge (default: normal)
--with-compiledby=NAME name to show in :version message
--with-lua-prefix=PFX Prefix where Lua is installed.
--with-luajit Link with LuaJIT instead of Lua.
--with-plthome=PLTHOME Use PLTHOME.
--with-python-config-dir=PATH Python's config directory
--with-python3-config-dir=PATH Python's config directory
--with-tclsh=PATH which tclsh to use (default: tclsh8.0)
--with-ruby-command=RUBY name of the Ruby command (default: ruby)
--with-x use the X Window System
--with-gnome-includes=DIR Specify location of GNOME headers
--with-gnome-libs=DIR Specify location of GNOME libs
--with-gnome Specify prefix for GNOME files
--with-motif-lib=STRING Library for Motif
--with-tlib=library terminal library to be used
0
您需要首先安裝python3-dev ppkg。
sudo apt-get install python3-dev
,並來自
./configure --enable-python3interp=dynamic && make && make install
是編譯VIM後現在你有一個python3 suppport動態負載LIB活力。
相關問題
- 1. 用+ python重新編譯vim
- 2. 編譯的Vim支持Python在OS X
- 3. 使用IMAP支持重新編譯php for osx
- 4. 用python編譯編譯vim
- 5. 用Python支持編譯Vim,但看不到sys版本
- 6. 用python3支持重新安裝vim
- 7. Point Vim更新Python版本,而不是重新編譯
- 8. Vim的編輯器 - > clang_complete:無
- 9. 使用+ python編譯所需的vim
- 10. 用Python3編譯vim(通過Homebrew安裝)支持?
- 11. 如何用ZLIB支持重新編譯HAProxy?
- 12. 用MPI支持編譯Valgrind
- 13. 支持Windows編譯
- 14. 編譯Python支持SSL的錯誤
- 15. 使用-fPIC支持編譯ghc
- 16. Python youtube-dl重新編譯
- 17. ios編譯ffmpeg不支持ac3支持
- 18. Vim clang_complete自動彈出
- 19. vim似乎找不到.clang_complete
- 20. Admob支持Kivy(Python for Android)
- 21. 使用python支持編譯caffe時的問題
- 22. 使用python支持編譯vim7.4源代碼失敗
- 23. 如何重新編譯android v4的支持庫?
- 24. 重新編譯PHP與GD支持運行JpGraph分區
- 25. 重新編譯現有的目標c庫以支持arm8
- 26. 在PHP中添加對OpenSSL的支持,無需重新編譯
- 27. sox在其源代碼重新編譯後支持mp3仍然不支持mp3支持
- 28. 編譯POCO與支持UTF8
- 29. 編譯器支持C11
- 30. Erlang編譯器UTF32支持
'$ sudo apt-get install vim-gtk'應該足夠了。 – romainl