MinGWのMSYSを使用してWindows7でGDC(v2)をコンパイルしようとしています。
このステップに到達すると:
$ ../configure --enable-languages=d --disable-shared --disable-bootstrap
私は得る:
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking target system type... i686-pc-mingw32
checking for a BSD-compatible install... /bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... no
configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.2+.
--with-gmpおよび/または--with-mpfrオプションを試して、それらの場所を指定してください。
これらのライブラリのソースコードのコピーは、それぞれのホスティングサイトとftp://gcc.gnu.org/pub/gcc/infrastructure/にあります。追加情報については、http: //gcc.gnu.org/install/prerequisites.htmlも参照してください。ベンダー配布パッケージからGMPやMPFRを入手した場合は、ライブラリとヘッダーファイルの両方がインストールされていることを確認してください。それらは別々のパッケージにあるかもしれません。
これにより、次のライブラリが必要であることが記載された手順を振り返ることができました。
- libgmp3-dev
- libmpfr-dev
- libmpc-dev
では、問題は、これらのヘッダーやライブラリはどこにあるのかということです。libgmp3-devを検索しましたが、Windows用のものが見つかりません。(私はまだ* nixの学習プロセスにあるので、あまり詳しくありません。)
ありがとう!
更新:
だから私はmake
MPFRを試みました(それが正しいバージョンであったかどうかさえわかりません)、そして私はこのエラーを受け取りました:
$ make install
Making install in tests
[...]
test -z "/usr/local/lib" || /bin/mkdir -p "/usr/local/lib"
/bin/sh ./libtool --mode=install /bin/install -c libmpfr.la '/usr/local/lib'
libtool: install: /bin/install -c .libs/libmpfr.lai /usr/local/lib/libmpfr.la
libtool: install: /bin/install -c .libs/libmpfr.a /usr/local/lib/libmpfr.a
libtool: install: chmod 644 /usr/local/lib/libmpfr.a
libtool: install: ranlib /usr/local/lib/libmpfr.a
/bin/sh: /home/Home: No such file or directory
make[2]: *** [install-libLTLIBRARIES] Error 127
make[2]: Leaving directory `/home/Home User/mpfr-2.4.2'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/Home User/mpfr-2.4.2'
make: *** [install-recursive] Error 1
何か案は?