标签:http href 使用 apt byte share ble iba 添加
这一步其实我没做,直接下载编译成功了。估计有些包不是必需的。姑且列在这里供参考
sudo apt install libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev python3-dev ruby-dev lua5.1 liblua5.1-dev libperl-dev git
git clone https://github.com/vim/vim.git
由于我希望能在无sudo权限机器,所以决定安装到~/usr目录下。这个可以通过 --prefix指定
cd vim
make distclean
./configure --enable-cscope --enable-largefile --enable-multibyte --enable-mzschemeinterp --enable-xim --enable-perlinterp=yes --enable-python3interp=yes --enable-luainterp=yes --enable-gui=no --enable-fontset --enable-terminal --with-features=huge --with-x --with-compiledby="zhuangqiubin" --with-python3-config-dir=/usr/lib/python3.7/config-$(uname -m)-linux-gnu --prefix=/home/zhuangqiubin/usr
make VIMRUNTIMEDIR=/home/zhuangqiubin/usr/share/vim/vim81 -j4
make install
安装后的vim在
/home/zhuangqiubin/usr/bin/vim
配置下环境变量的PATH,即在~/.bashrc中添加一行
export PATH="$HOME/usr/bin:$PATH"
后续即可优先使用这个新的vim
本文参考了
https://www.cnblogs.com/JoiT/p/build_from_source_for_linux_vim.html
本文链接
https://www.cnblogs.com/zqb-all/p/12045895.html
标签:http href 使用 apt byte share ble iba 添加
原文地址:https://www.cnblogs.com/zqb-all/p/12045895.html