加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-17 03:04:31 所属栏目:百科 来源:网络整理
导读:这是我遇到的一个奇怪的问题 – 但是我已经和它摔跤了一个多小时没有解决方案.我正在尝试配置 vim构建,但是使用enable python继续运行错误并启用ruby参数. 这是我正在尝试使用相关的错误部分: $./configure --prefix=/usr/local --with-features=huge --ena
这是我遇到的一个奇怪的问题 – 但是我已经和它摔跤了一个多小时没有解决方案.我正在尝试配置 vim构建,但是使用enable 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等环境管理器,那么您必须指定,作为confiugre行上的参数,以便configure脚本可以找到更新的Ruby头.可以在RVM站点找到此文档.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读