私が持っている特定のLinuxマシンでGCCを更新しようとしていますが、利用可能なパッケージはありません。GCCのアップグレード - 問題を引き起こすGMPのバージョン
私はconfigureスクリプトを実行すると、それはGMPのバージョン文句:
# ../gcc/configure
checking build system type... i686-pc-linux-gnu
[snip]
checking for the correct version of gmp.h... no
configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations. Source code for these libraries can be found at
their respective hosting sites as well as at
ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
http://gcc.gnu.org/install/prerequisites.html for additional info. If
you obtained GMP, MPFR and/or MPC from a vendor distribution package,
make sure that you have installed both the libraries and the header
files. They may be located in separate packages.
私はgmp.hをチェックするときしかし、それは示しています
/* Major version number is the value of __GNU_MP__ too, above and in mp.h. */
#define __GNU_MP_VERSION 4
#define __GNU_MP_VERSION_MINOR 2
#define __GNU_MP_VERSION_PATCHLEVEL 1
とRPMは、次のように報告されます
# rpm -q --qf "%{VERSION}\n" gmp
4.2.1
# rpm -q --qf "%{VERSION}\n" gmp-devel
4.2.1
ライブラリーとヘッダーの両方が正しいバージョンであるようです(混乱して、 F libgmp用の.soファイルは、これは失敗するかもしれない、なぜ誰もが知ってい
libgmp.so -> libgmp.so.3.4.1
として表示されるバージョン番号...で行うには、正確には何もないように見えますか?これらは、このマシンにインストールされた唯一の2つのgmpパッケージであり、標準の/ usr/includeと/ usr/libの場所にあるので、すでに検索パス上にあるはずです。
"マシン"、 "バージョン"などを実際の情報に置き換えた方が簡単です...いいえ、libsmurf.X.Y.Zの番号はパッケージのバージョンとは関係ありません。 config.logをチェックする必要があります。何らかの理由でコンパイルが失敗したり、バージョンが間違っていたりすると、エラーメッセージは同じになります。 –