之前按照这篇文章安装vim7.4,因为使用YCM和UltiSnips的缘故。在安装过程中make时,出现如下错误:
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[1]: *** [vim] Error 1 make: *** [first] Error 2解决方案:
在configure时,使用如下命令即可
LDFLAGS=-L/usr/lib ./configure --with-features=huge --enable-pythoninterp=yes --enable-cscope --enable-fontset --enable-perlinterp --enable-rubyinterp --with-python-config-dir=/usr/lib/python2.6/config --prefix=/opt/local
原文地址:http://blog.csdn.net/chienchia/article/details/42525405