码迷,mamicode.com
首页 > 系统相关 > 详细

Mac安装vim7.4

时间:2015-01-08 18:11:37      阅读:304      评论:0      收藏:0      [点我收藏+]

标签:vim   mac   vim7.4   iconv   

      之前按照这篇文章安装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

标签:vim   mac   vim7.4   iconv   

原文地址:http://blog.csdn.net/chienchia/article/details/42525405

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!