Annotation of OpenXM/doc/HOWTO/how_to_install_MinGW-MSYS2.txt, Revision 1.4
1.3 fujimoto 1: MinGW+msys 環境の構築
1.1 fujimoto 2:
3: 1. msys2-64 をインストール
4: http://sourceforge.net/projects/msys2/files/Base/
5: より、msys2-x86_64-20150512.exe をダウンロードし、c:\msys64にインストール
6:
1.4 ! fujimoto 7: 2. スタートメニューから MSYS2 64bit→MinGW-w64 Win64 Shell を起動する。
1.2 ohara 8:
9: まずは、パッケージデータベースを更新する。
10: pacman -Sy
11:
12: 次に、初期導入パッケージのアップデート
13: pacman -Su
1.4 ! fujimoto 14: としてから、MinGW-w64 Win64 Shell の再起動、これを数度繰り返す。
1.2 ohara 15: アップデートがなくなったことを確認。
16:
17: 以下を実行。
18:
1.1 fujimoto 19: pacman -S base-devel
20: pacman -S msys2-devel
21: pacman -S mingw-w64-i686-toolchain
22: pacman -S mingw-w64-x86_64-toolchain
23:
24: ※pacman -Sl で導入済みのパッケージが確認可能。必要なコマンドが不足した場合は以下のように追加。
1.3 fujimoto 25: パッケージの検索は、pacman -Ss キーワード で行う。
1.1 fujimoto 26: pacman -S bison
27: pacman -S tar
28: pacman -S wget
29: pacman -S patch
30: pacman -S diffutils
31:
32: ※この環境には、3種類のコンパイラがある
1.4 ! fujimoto 33: - msys2-devel でインストールされる gcc は、MSYS2 Shell から使用し、これで生成したバイナリは、cygwin みたいに msys-2.0.dll を必要とする。
! 34: - mingw-w64-i686-toolchain の gcc は、MinGW-w64 Win32 Shell から使用し、これで生成したバイナリは、Windows native 32bit。
! 35: - mingw-w64-x86_64-toolchain の gcc は、MinGW-w64 Win64 Shell から使用し、これで生成したバイナリは、Windows native 64bit。
1.1 fujimoto 36:
37: 3. /usr以下に次のディレクトリを作成
38: cd /usr
39: mkdir local
40: mkdir local/bin
41: mkdir local/lib
42: mkdir local/include
43: mkdir local/share
44:
1.4 ! fujimoto 45: 4. gmp-5.0.4 のビルドとインストール
! 46: cd gmp-5.0.4
! 47: wget -O config.guess 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD'
! 48: wget -O config.sub 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD'
! 49: ./configure --disable-static --enable-shared
! 50: ※MinGW-w64 Win32 Shell (64bit Windowsでの32bit環境)において、mingw32 版のバイナリをビルドしたい時は、
! 51: ./configure ABI=32 --build=x86_64-w64-mingw32 --host=i686-w64-mingw32 --disable-static --enable-shared
! 52: make
! 53: make install
! 54:
! 55: 5. mpfr-3.1.3 のビルドとインストール
! 56: cd mpfr-3.1.3
! 57: wget -O config.guess 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD'
! 58: wget -O config.sub 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD'
! 59: ./configure --disable-static --enable-shared --with-gmp=/usr/local
! 60: ※MinGW-w64 Win32 Shell (64bit Windowsでの32bit環境)において、mingw32 版のバイナリをビルドしたい時は、
! 61: ./configure ABI=32 --disable-static --enable-shared --with-gmp=/usr/local
! 62: make
! 63: make install
! 64:
! 65: 6. mpc-1.0.3 のビルドとインストール
! 66: cd mpc-1.0.3
! 67: wget -O config.guess 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD'
! 68: wget -O config.sub 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD'
! 69: ./configure --disable-static --enable-shared --with-gmp=/usr/local --with-mpfr=/usr/local
! 70: ※MinGW-w64 Win32 Shell (64bit Windowsでの32bit環境)において、mingw32 版のバイナリをビルドしたい時は、
! 71: ./configure ABI=32 --disable-static --enable-shared --with-gmp=/usr/local --with-mpfr=/usr/local
1.1 fujimoto 72: make
73: make install
74:
1.4 ! fujimoto 75: 7. gc-7.4.2 のビルド
1.1 fujimoto 76: cd gc-7.4.2
77: wget http://www.hboehm.info/gc/gc_source/libatomic_ops-7.4.0.tar.gz
1.4 ! fujimoto 78: tar zxf libatomic_ops-7.4.0.tar.gz
1.1 fujimoto 79: mv libatomic_ops-7.4.0 libatomic_ops
1.4 ! fujimoto 80: ./configure
1.1 fujimoto 81: make
82:
1.4 ! fujimoto 83: 8. asir のビルドとインストール
! 84: cd asir2000
1.1 fujimoto 85: ./configure
86: make
87: make install
88: make install-lib
1.4 ! fujimoto 89:
! 90: TODO:
! 91: - ctrl+c での中断
! 92: - ox_launch_nox による ox サーバの起動と通信
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>