ag安装

Installing ag on CentOS

  • Prerequistes

    • libpcre
    • liblzma

    Download, build and install

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    sudo yum install -y pcre-devel
    sudo yum install xz-devel

    cd /usr/local/src && sudo git clone https://github.com/ggreer/the_silver_searcher.git

    cd the_silver_searcher
    sudo ./build.sh
    sudo make install

    which ag
分享到