ubuntu18.04下編譯neovim

自己編譯,大概率不成功,因?yàn)榫幾g過程會(huì)總從github上下載文件,網(wǎng)絡(luò)不佳

    # 安裝編譯依賴
    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

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

友情鏈接更多精彩內(nèi)容