This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: mpfr.h cannot be located while compiling GCC
- From: Philip Herron <herron dot philip at googlemail dot com>
- To: Ankit Mahanot <ankit1986 at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 09 Sep 2009 05:05:48 +0100
- Subject: Re: mpfr.h cannot be located while compiling GCC
- Openpgp: url=http://keyserver.ubuntu.com:11371/
- References: <7e6ebd600909081949g77c0da1cq1c95355a7f00117d@mail.gmail.com> <7e6ebd600909082059j7f985a88y49117df433435a7f@mail.gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ankit Mahanot wrote:
> I am using gmp-4.2.4 & mpfr-2.4.1.
> OS - Mac OS X v 10.5.7
> I am trying to compile GCC-4.4.1.
>
> But the error that I get is "checking for correct version of mpfr.h... no".
>
> I configured MPFR into /pkg/mpfr-2.4.1 & GMP into /pkg/gmp-4.2.4. Then
> Make , make check , make install .. nothing gave error. But while
> compiling GCC I get this error.
>
> I manually found out the location of mpfr.h. It's in
/pkg/mpfr-2.4.1/include.
>
> Please help me out with this. I think this is a quiet common problem
> with no structured solution :(
>
> -- Ankit Mahanot
>
>
>
Hey
If you used ports to install mpfr and gmp your stuff is in
/opt/local/lib and /opt/local/include
./configure ...
--with-mpfr-include=PATH
--with-mpfr-lib=PATH
--with-gmp-include=PATH
--with-gmp-lib=PATH
Hope that helps, when in doubt ./configure --help :)
- --Phil
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkqnKZgACgkQAhcOgIaQQ2EgjwCcCkzqoRBtiDU0gL/R6bhkjwnc
HcIAn2n6IcXhg4JDr2+7yKeW0Y1escY0
=KHuw
-----END PGP SIGNATURE-----