gpt4 book ai didi

vim - 无法使用 Ruby 和 Python 支持构建 Vim

转载 作者:行者123 更新时间:2023-12-05 00:31:50 26 4
gpt4 key购买 nike

这是我遇到的一个奇怪的问题 - 但我已经与它搏斗了一个多小时而没有解决方案。我正在尝试配置 vim 构建,但一直遇到启用 python 和启用 ruby​​ 参数的错误。

这是我试图对相关错误部分做的事情:

$ ./configure --prefix=/usr/local --with-features=huge --enable-pythoninterp --enable-rubyinterp
...
checking --enable-rubyinterp argument... yes
checking --with-ruby-command argument... defaulting to ruby
checking for ruby... (cached) /usr/bin/ruby
checking Ruby version... OK
checking Ruby rbconfig... RbConfig
checking Ruby header files... not found; disabling Ruby
...
checking --enable-pythoninterp argument... yes
checking for python2... (cached) /usr/bin/python2
checking Python version... (cached) 2.7
checking Python is 1.4 or better... yep
checking Python's install prefix... (cached) /usr
checking Python's execution prefix... (cached) /usr
(cached) checking Python's configuration directory... (cached)
can't find it!
...

我完全被难住了,我对 linux 比较陌生,但尝试了一些不同的东西 - 都无济于事。帮助!

编辑:我正在运行 Mint 14

最佳答案

假设您想使用 Linux Mint 附带的 Ruby (1.8.7) 和 Python (??) 版本,您将需要它们各自的开发包。

sudo apt-get install ruby-dev python-dev

完成后,您应该能够运行原始配置脚本
./configure --prefix=/usr/local --with-features=huge --enable-pythoninterp --enable-rubyinterp

至于 Ruby,如果您使用的是环境管理器,例如 RVM 或 Rbenv,那么您必须在 configure 行中指定一个参数,以便配置脚本可以找到更新的 Ruby header 。相关文档可以在 RVM 中找到。地点。

关于vim - 无法使用 Ruby 和 Python 支持构建 Vim,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14258041/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com