Last active
December 29, 2015 12:38
-
-
Save ephemeralsnow/7671370 to your computer and use it in GitHub Desktop.
mingw(32bit) に the silver searcher 0.18.1 をインストールしたときのメモ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # mingw(32bit) に the silver searcher 0.18.1 をインストールしたときのメモ | |
| # mingw は C:\MinGW へインストールし、一通りのパッケージも合わせてインストールした。 | |
| # pkgconfig をビルド | |
| wget http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz | |
| tar xzf pkg-config-0.28.tar.gz | |
| cd pkg-config-0.28 | |
| ./configure --with-internal-glib | |
| make | |
| make install | |
| # /usr/local/share/aclocal/pkg.m4 を automake? autoconfig? で探せるようにする設定 | |
| echo '/usr/share/aclocal/dirlist' >> /usr/local/share/aclocal | |
| # *.pc を pkgconfig が探せるようにする設定 | |
| echo 'export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH' >> ~/.profile | |
| # zlib をビルド | |
| wget http://zlib.net/zlib-1.2.8.tar.gz | |
| tar xzf zlib-1.2.8.tar.gz | |
| cd zlib-1.2.8 | |
| make -f win32/Makefile.gcc | |
| INCLUDE_PATH=/usr/local/include LIBRARY_PATH=/usr/local/lib BINARY_PATH=/usr/local/bin make -f win32/Makefile.gcc install | |
| # PCRE をビルド | |
| wget http://downloads.sourceforge.net/project/pcre/pcre/8.33/pcre-8.33.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fpcre%2Ffiles%2Fpcre%2F8.33%2F&ts=1385523205&use_mirror=jaist | |
| tar xjf pcre-8.33.tar.bz2 | |
| cd pcre-8.33 | |
| ./configure --enable-pcre16 --enable-pcre32 --enable-jit --enable-utf --enable-unicode-properties --enable-newline-is-anycrlf | |
| make | |
| make install | |
| # XZ Utils(liblzma) をビルド | |
| wget http://tukaani.org/xz/xz-5.0.5.tar.bz2 | |
| tar xjf xz-5.0.5.tar.bz2 | |
| cd xz-5.0.5 | |
| ./configure | |
| make | |
| make install | |
| # the silver seacher(ag) をビルド | |
| wget https://github.com/ggreer/the_silver_searcher/archive/0.18.1.tar.gz | |
| tar xzf the_silver_searcher-0.18.1.tar.gz | |
| cd the_silver_searcher-0.18.1 | |
| # "undefined reference to `isascii'" を回避するため src/util.c に下記のパッチを当てた | |
| #290c290 | |
| #< if (!isascii(s[i]) || isupper(s[i])) { | |
| #--- | |
| #> if (!__isascii(s[i]) || isupper(s[i])) { | |
| ./configure CFLAGS="-U__STRICT_ANSI__" LIBS="-lshlwapi" | |
| make | |
| make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment