SSブログ

ubuntu で gcc の configure [ぱそ関係]

ubuntu メモシリーズ。

ubuntu 12.04.1 LTS で gcc の configure しようとしたら
。。。
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... no
configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.2+.
Try the --with-gmp and/or --with-mpfr options to specify their locations.
Copies of these libraries' source code 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 and/or MPFR 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.
xxx@ubuntu:~/Downloads/gcc-4.4.7$

てな感じで GMP と MPFR がないよエラーが出た。
GMP も MPFR もなんのこっちゃという感じですが、
どうやら libgmp3-dev と libmpfr-dev というパッケージが必要らしい。

ついでに他のも入れてこんな感じ。
sudo apt-get install gcc g++
sudo apt-get install build-essential libtool
sudo apt-get install libgmp3-dev libmpfr-dev
sudo apt-get update
sudo apt-get upgrade

で configure はできた。

nice!(0)  コメント(0)  トラックバック(0) 
共通テーマ:パソコン・インターネット

nice! 0

コメント 0

コメントを書く

お名前:[必須]
URL:
コメント:
画像認証:
下の画像に表示されている文字を入力してください。

トラックバック 0

この広告は前回の更新から一定期間経過したブログに表示されています。更新すると自動で解除されます。