美文网首页
ubuntu18.04下编译neovim

ubuntu18.04下编译neovim

作者: 笑吧小鸟 | 来源:发表于2020-05-04 19:38 被阅读0次

自己编译,大概率不成功,因为编译过程会总从github上下载文件,网络不佳

    # 安装编译依赖
    sudo apt-get install libtool libtool-bin autoconf automake cmake g++ pkg-config unzip -y
    # 获取源代码
    git clone https://github.com/neovim/neovim
    cd neovim
    make
    sudo make install
    # 让neovim支持python和python3
    sudo apt-get install python3 python3-pip python-pip -y
    pip install neovim
    pip3 install neovim

PPA方式安装

Before 18.04 Neovim has been added to a "Personal Package Archive" (PPA). This allows you to install it with apt-get. Follow the links to the PPAs to see which versions of Ubuntu are currently available via the PPA. Choose stable or unstable:

To be able to use add-apt-repository you may need to install software-properties-common:

sudo apt-get install software-properties-common

If you're using an older version Ubuntu you must use:

sudo apt-get install python-software-properties

Run the following commands:

sudo add-apt-repository ppa:neovim-ppa/stable
sudo apt-get update
sudo apt-get install neovim

Prerequisites for the Python modules:

sudo apt-get install python-dev python-pip python3-dev python3-pip

相关文章

网友评论

      本文标题:ubuntu18.04下编译neovim

      本文链接:https://www.haomeiwen.com/subject/fknyghtx.html