博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
mac os安装vim74
阅读量:4611 次
发布时间:2019-06-09

本文共 1558 字,大约阅读时间需要 5 分钟。

1,下载vim74( )

2,解压

tar -jxvf vim-7.4.tar.bz2

3,配置

./configure --with-features=huge --enable-rubyinterp --enable-pythoninterp --with-python-config-dir=/usr/lib/python2.7/config/ --enable-perlinterp --enable-cscope --prefix=/opt/local --enable-luainterp

4,编译

make VIMRUNTIMEDIR=/opt/local/vim/vim74make install

5,编译过程中出现错误如下

:info:build os_unix.c:830:46: warning: declaration of ‘struct sigaltstack‘ will not be visible outside of this function [-Wvisibility]:info:build         extern int sigaltstack __ARGS((const struct sigaltstack *ss, struct sigaltstack *oss));:info:build                                                     ^:info:build ./os_unix.h:88:21: note: expanded from macro ‘__ARGS‘:info:build #  define __ARGS(x) x:info:build                     ^:info:build os_unix.c:830:13: error: conflicting types for ‘sigaltstack‘:info:build         extern int sigaltstack __ARGS((const struct sigaltstack *ss, struct sigaltstack *oss));:info:build                    ^:info:build /usr/include/signal.h:89:5: note: previous declaration is here:info:build int     sigaltstack(const stack_t * __restrict, stack_t * __restrict)  __DARWIN_ALIAS(sigaltstack);:info:build         ^:info:build 1 warning and 1 error generated.:info:build make[1]: *** [objects/os_unix.o] Error 1:info:build make[1]: *** Waiting for unfinished jobs….)

解决办法:在src/os_unix.h中加上#include <AvailabilityMacros.h>就可以了  

6,如果要用vim74,而不是系统自带的vim73,可以设置别名,在~/.bash_profile里面加入alias vim=‘/opt/local/bin/vim‘,然后在终端中执行source ~/.bash_profile

 

转载于:https://www.cnblogs.com/muyuzhanglao/p/5373142.html

你可能感兴趣的文章
图的邻接表存储
查看>>
2018 leetcode
查看>>
各浏览器对 onbeforeunload 事件的支持与触发条件实现有差异
查看>>
PHP中获取当前页面的完整URL
查看>>
所谓输入掩码技术,即只有数字键起作用
查看>>
Display对象,Displayable对象
查看>>
安装oracle11G,10G时都会出现:注册ocx时出现OLE初始化错误或ocx装载错误对话框
查看>>
数据结构(并查集):COGS 260. [NOI2002] 银河英雄传说
查看>>
生产环境下正则的应用实例(一)
查看>>
在CentOS7命令行模式下安装虚拟机
查看>>
【Hadoop】三句话告诉你 mapreduce 中MAP进程的数量怎么控制?
查看>>
【微信小程序】 引用公共js里的方法
查看>>
统计学的统一(2)
查看>>
AE程序中变量的类型
查看>>
python3多线程爬虫(第一卷)
查看>>
列表元祖的一些方法
查看>>
[操作系统实验lab3]实验报告
查看>>
Android倒计时简单实现
查看>>
js数组
查看>>
开学第一周
查看>>