用ruby编译vim [英] Compiling vim with ruby

查看:112
本文介绍了用ruby编译vim的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在Mac Osx 10.7.3上编译vim
i出现此错误

I trying to compile vim on my Mac Osx 10.7.3 i got this Error

./configure --enable-rubyinterp 
make 

ld: library not found for -lruby.1.9.1
collect2: ld returned 1 exit status
make[1]: *** [vim] Error 1
make: *** [first] Error 2

有人知道我怎么能安装这个库吗?

Did anyone know how i can install this lib?

推荐答案

不要。

MacVim 内置了ruby支持(以及更多),并且都带有GUI ,CLI包装器 CLI可执行文件。

MacVim has ruby support (and more) built in and comes with both the GUI, a CLI wrapper and a CLI executable.

我的版本(快照61)已经使用了8个月左右,并且可以正常使用通过3次红宝石升级。

My version (snapshot 61) is 8 months old or so and it has worked without any problem through 3 ruby upgrades.

编辑

EDIT

记录下来,MacVim随以下版本一起分发:

For the record, MacVim is distributed with:


  • mvim ,这是一个CLI封装,使得可以从终端启动MacVim(GUI)。

  • /path/to/MacVim.app/Contents/MacOS/Vim ,可以在终端中运行的CLI可执行文件。

  • mvim, a CLI wrapper that makes it possible to launch MacVim (GUI) from a terminal.
  • /path/to/MacVim.app/Contents/MacOS/Vim, a CLI executable that you can run in the terminal.

CLI可执行文件的构建与GUI相同,因此完全无法创建自己的在大多数情况下,是Mac OS X上的vim

The CLI executable has been built with the same bells and whistles as the GUI and thus makes it totally useless to build your own vim on Mac OS X. In most cases.

要在终端中使用它( $ vim file.tx ),则只需在〜/ .profile / 〜/ .bashrc

To use it in a terminal ($ vim file.tx), you only need to add an alias to your ~/.profile/~/.bashrc:

alias vim='/path/to/MacVim.app/Contents/MacOS/Vim'

或添加 /path/to/MacVim.app/Contents/MacOS 到您的路径。

整个过程不会超过一分钟。

The whole process doesn't take more than a minute.

这篇关于用ruby编译vim的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆