Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was trying to install VIM with the ruby package through macports, by executing the command:

sudo port install vim +ruby +huge

It seems the package was downloaded fine, but an error occurred. This is the end of the log file. Perhaps somebody can shed any light on the causes?

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 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.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

I'm running Darwin (OSX Lion) with the latest MacPorts.

share|improve this question

migrated from Oct 24 '11 at 8:56

This question came from our site for professional and enthusiast programmers.

the binaries from are not an option for you? – akira Oct 24 '11 at 9:37
Are you sure you're compiling it for the right architecture? I'd guess you probably want to compile the x86_64 version if you're on a somewhat new computer. – Martin Frost Oct 24 '11 at 9:38

Please refer same question here:

citation from here:

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.)

Also it provides terminal version to use.

share|improve this answer
+1, this is the easiest option. – romainl Oct 24 '11 at 13:23
Thank you, as a beginner, I was under the impression that all the packages MacPorts lists work under Darwin. – Andres Oct 24 '11 at 20:38
Many things in Mac OS X are from FreeBSD – Eir Nym Oct 24 '11 at 21:33
What OS are you using? Darwin or Mac OS X? All the non-aqua MacPorts packages are supposed to work in both OSes. Could it be that your problem comes from a library imported from an old G5 based machine? If the CLI Vim found in MacVim's bundle doesn't work (it may be expecting Mac OS X specifically, I don't know) you may try to remove ruby completely from your machine (include gems) then try again with $ sudo port install vim +huge +ruby. MacPorts will take care of all the dependencies including ruby and use the correct flags. Why not a Linux or BSD distro instead? – romainl Oct 25 '11 at 5:40
@romainl can you give link to Darwin OS distribution you mean? I use Mac OS X Lion, which Andres is using too. – Eir Nym Oct 25 '11 at 13:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .