试图在OS X上编译vim? [英] Trying to compile vim on OS X?

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

问题描述

遵循此次撰写 ...

编译好的二进制文件似乎工作正常,但安装的二进制文件失败(运行 make install 时)。



这个步骤似乎失败了:

  ... 
生成帮助标签
/ usr / local / bin / vim -u NONE -esX -chelptags ++ t。 -c quit
dyld:未找到符号:_environ
引用自:/Users/neezer/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.1.9.1.dylib
预期在:flat namespace
在/Users/neezer/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.1.9.1.dylib
make [2]:** * [vimtags]跟踪/ BPT陷阱
make [1]:[installrtbase]错误2(忽略)


$ b b

我用它来配置:

  ./ configure --prefix = / usr / local --enable-rubyinterp --enable-gui = no --disable-gpm 

就像我说的, ,因为我可以运行 ./ src / vim 之后 make 只是罚款(没有错误)。但是当我尝试运行安装的版本后 make install / usr / local / bin / vim

  dyld:未找到符号:_environ 
引用自:/ Users / neezer /。 rvm / rubies / ruby​​-1.9.2-p0 / lib / libruby.1.9.1.dylib
预期在:flat命名空间
在/Users/neezer/.rvm/rubies/ruby-1.9.2 -p0 / lib / libruby.1.9.1.dylib
[1] 13175跟踪陷阱vim

运行其中vim 验证它正在尝试加载 / usr / local / bin / vim



我当前的Ruby版本是 ruby​​ 1.9.2p0(2010-08-18版本29036)[x86_64-darwin10.5.0] code>通过 RVM



这里发生了什么?



否:我不想只使用MacVim ...

解决方案

在博客帖子中可以看到:


你可能已经被一个不支持将Ruby 1.9.x集成到Snow Leopard上。


此门票



但总之,您必须链接Ruby 1.8.7,这是Snow Leopard的版本。


Following this writeup...

The compiled binary seems to work fine, but the installed binary fails (when running make install).

It seems to be failing on this step:

...
generating help tags
/usr/local/bin/vim -u NONE -esX -c "helptags ++t ." -c quit
dyld: Symbol not found: _environ
  Referenced from: /Users/neezer/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.1.9.1.dylib
  Expected in: flat namespace
 in /Users/neezer/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.1.9.1.dylib
make[2]: *** [vimtags] Trace/BPT trap
make[1]: [installrtbase] Error 2 (ignored)

I used this to configure:

./configure --prefix=/usr/local --enable-rubyinterp --enable-gui=no --disable-gpm

Like I said, I think it compiled correctly, because I can run ./src/vim after make just fine (no errors). But when I try to run the installed version after make install in /usr/local/bin/vim, I get this (mirrors above):

dyld: Symbol not found: _environ
  Referenced from: /Users/neezer/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.1.9.1.dylib
  Expected in: flat namespace
 in /Users/neezer/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.1.9.1.dylib
[1]    13175 trace trap  vim

Running which vim verifies that it is trying to load the new binary in /usr/local/bin/vim.

My current version of Ruby is ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.5.0] via RVM.

What's happening here?

And no: I don't want to just use MacVim instead...

解决方案

Says right in the blog post:

you’ve probably fallen prey to a (currently) not very well documented issue: Vim 7.2 does not support the integration of Ruby 1.9.x on Snow Leopard.

There's more information available in this ticket.

But in summary, you have to link against Ruby 1.8.7, which is the version that ships with Snow Leopard anyway.

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

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