ag 工具

作者: chliar | 来源:发表于2018-10-18 12:24 被阅读0次

    apt-get install silversearcher-ag

    错误

    configure: error: Package requirements (liblzma) were not met:

    No package ‘liblzma’ found

    Consider adjusting the PKG_CONFIG_PATH environment variable if you
    installed software in a non-standard prefix.

    Alternatively, you may set the environment variables LZMA_CFLAGS
    and LZMA_LIBS to avoid the need to call pkg-config.
    See the pkg-config man page for more details.

    解决方案

    • yum -y install xz-devel

    安装

    RHEL7+

    rpm -Uvh http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
    yum install the_silver_searcher
    RHEL7-

    wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/utilities/CentOS_6/x86_64/the_silver_searcher-0.14-1.1.x86_64.rpm
    rpm -ivh the_silver_searcher-0.14-1.1.x86_64.rpm

    相关文章

      网友评论

          本文标题:ag 工具

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