首页 > 代码库 > Mac安装vim7.4
Mac安装vim7.4
之前按照这篇文章安装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
然后再运行make和sudo make install
Mac安装vim7.4
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。