Vim: 源代码编译安装

警告
本文最后更新于 2022-12-12,文中内容可能已过时。

从源代码编译安装 Vim9.2

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
export LDFLAGS="-rdynamic"
cd /tmp && \
    yum install perl-ExtUtils-Embed ruby ruby-devel -y && \
    yum clean all && \
    rm -rf /var/cache/yum/* && \
    wget --no-check-certificate http://www.lua.org/ftp/lua-5.4.4.tar.gz && \
    tar -xvf lua-5.4.4.tar.gz && \
    cd lua-5.4.4 && \
    make -j && make install && \
    rm -rf /tmp/lua* && \
    cd /tmp && \
    git clone https://github.com/vim/vim.git && \
    cd vim && \
    git pull origin master && \
    make clean distclean && \
    ./configure --prefix=/usr/local/vim9 \
        --with-features=huge \
        --enable-multibyte \
        --enable-rubyinterp=yes \
        --enable-python3interp=yes \
        --with-python3-command=/usr/local/python3/bin/python3 \
        --with-python3-config-dir=$(/usr/local/python3/bin/python3-config --configdir) \
        --enable-perlinterp=yes \
        --enable-luainterp=yes \
        --with-lua-prefix=/usr/local \
        --enable-cscope\
        --enable-largefile \
        --disable-netbeans \
        --with-compiledby="william" \
        --enable-fail-if-missing && \
    make -j && make install && \
    ln -sfn /usr/local/vim9/bin/vim /usr/bin/vim && \
    echo "/usr/local/vim9/bin" >> /etc/ld.so.conf && \
    ldconfig -v && \
    rm -rf /tmp/vim*

相关内容

william 支付宝支付宝
william 微信微信
0%