通过 MacPorts 安装 VIM 出现错误

通过 MacPorts 安装 VIM 出现错误

我尝试通过 macports 使用 ruby​​ 包安装 VIM,方法是执行以下命令:

sudo port 安装 vim +ruby +huge

看来软件包下载成功了,但出现了错误。这是日志文件的结尾。也许有人能解释一下原因?

info:build Undefined symbols for architecture i386:
:info:build   "_rb_num2uint", referenced from:
:info:build       _window_set_cursor in if_ruby.o
:info:build ld: symbol(s) not found for architecture i386
:info:build collect2: ld returned 1 exit status
:info:build lipo: can't open input file: /var/tmp//cc3hoDmr.out (No such file or directory)
:info:build make[1]: *** [vim] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_vim/vim/work/vim73/src'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_vim/vim/work/vim73'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_vim/vim/work/vim73" && /usr/bin/make -j5 -w all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for vim): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for vim is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_vim/vim/main.log

我正在运行带有最新 MacPorts 的 Darwin (OSX Lion)。

答案1

请参考此处的相同问题:https://stackoverflow.com/questions/3272999/install-ruby-support-for-vim-on-mac-os-x

引用自这里:

MacVim is a very Mac-friendly version of Vim, and it's got Ruby support already built in. It can be used as both a GUI and Terminal application. (Check out :help macvim-start from within MacVim for details.)

它还提供可供使用的终端版本。

相关内容