-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 1/9/12 2:37 PM, E. H. Smith wrote: > Hello, Fink beginner here. I'm trying to build gcc with certain > specifications: $ sudo ../gcc-4.6.0/configure --target=$TARGET > --prefix=$PREFIX --disable-nls --enable-languages=c,c++ > --without-headers >
"fink install gcc46" was too easy? > When I run that package's configuration script, it goes through > checking various configuration details (build system type, C > compiler, et cetera). However, this fails with the following > error: > > checking for the correct version of gmp.h... no configure: error: > Building GCC requires GMP 4.2+, MPFR 2.3.1+ 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. > > Using Fink, I went through and installed (fink install) the latest > versions of gmp5, libmpfr4, libmpc2, and libmpc2-shlibs. If I > again run > > $ sudo ../gcc-4.6.0/configure --target=$TARGET --prefix=$PREFIX > --disable-nls --enable-languages=c,c++ --without-headers > > I get the same problem; ditto if I run > > $ sudo ../gcc-4.6.0/configure --target=$TARGET --prefix=$PREFIX > --disable-nls --enable-languages=c,c++ --without-headers > --with-gmp=/sw/include/gmp.h --with-mpfc=/sw/include/mpfr.h > --with-mpc=/sw/include/mpc.h > > Does anyone have any suggestions? I have /sw/lib in my $PATH. $PATH is for executables, not libraries. > > Thanks in advance. > Start with http://www.finkproject.org/faq/usage-general.php?phpLang=en#compile-myself but change the last two lines: export PATH=/sw/var/lib/fink/path-prefix-clang:$PATH export MACOSX_DEPLOYMENT_TARGET=10.7 It's also worth seeing what options our gcc46 package uses in its build, e.g. via "fink dumpinfo gcc46". - -- Alexander Hansen, Ph.D. Fink User Liaison http://finkakh.wordpress.com/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk8LSUkACgkQB8UpO3rKjQ/pfwCdEosDDzhnkMu5akHpmsOTQgLZ bkgAn0Ls2njBtVDiEsWcY0KPFY0iovCl =ifGO -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ Fink-beginners mailing list Fink-beginners@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.apple.fink.beginners Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-beginners