Fixing MacVim on OSX Yosemite 10.10
OSX 10.10 (Yosemite) seems to break the much loved MacVim. Attempts to recompile MacVim from the source code with the instructions in the README_mac.txt produces some variation on the following error.
Undefined symbols for architecture x86_64: "_iconv", referenced from: _buf_write_bytes in fileio.o _readfile in fileio.o _my_iconv_open in mbyte.o _string_convert_ext in mbyte.o (maybe you meant: _my_iconv_open) "_iconv_close", referenced from: _buf_write in fileio.o _readfile in fileio.o _my_iconv_open in mbyte.o _convert_setup_ext in mbyte.o "_iconv_open", referenced from: _my_iconv_open in mbyte.o (maybe you meant: _my_iconv_open) ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make: *** [vim] Error 1 make: *** [first] Error 2
This procedure appears to work.
Get the source code by either downloading the source bundle or clone the repository into a working directory.
git clone https://github.com/b4winckler/macvim
Configure the source code for compiling and manually set the linker libraries
cd macvim/src LDFLAGS=-L/usr/lib ./configure --with-features=huge \ --enable-rubyinterp \ --enable-pythoninterp \ --enable-perlinterp \ --enable-cscope make
The executable binary (.app) can then be found in
Simply drag and drop this into the Applications folder and overwrite the broken version.