apt-get install silversearcher-ag
wget https://github.com/ggreer/the_silver_searcher/archive/master.zip
mv master ag.zip
unzip ag.zip
cd the_silver_searcher-master/
./build.sh
make install
錯誤
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