-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Windows
mijoharas edited this page Nov 14, 2014
·
38 revisions
There are several ways to install The Silver Searcher on Windows.
Install using chocolatey (easy)
The chocolatey silver searcher package can be installed using
choco install ag
It will automatically fetch any required dependencies. Note that chocolatey packages are sometimes behind the latest silver searcher release.
Install MinGW and MSYS (download page).
mingw-get install autotools
Install PCRE for Windows. Make sure you install it to /mingw
, which is C:\MinGW
by default. See the MinGW quickstart guide for more information on paths.
Run build.sh
.
cinst mingw
REM Add C:\mingw\bin to your path.
mingw-get install autotools
REM Get PCRE.
git clone git://github.com/ggreer/the_silver_searcher.git
cd the_silver_searcher
./build.sh
Or you can use native Visual Studio port: https://github.com/kjk/the_silver_searcher (compile instructions at: https://github.com/kjk/the_silver_searcher/blob/master/README-WINDOWS.md)
# if you don't have cyg-apt
wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg
install apt-cyg /bin
# then
apt-cyg install automake gcc-core libpcre-devel liblzma-devel
./build.sh && make install