There's a couple of things about this script, useful as it is: 1. IIRC it downloads the minimal set of prerequisites. Wouldn't be bad to have it optionally grab the optional prerequisites. 2. It uses wget. At this point I'm not sure if wget or curl are more common; on OS X I had to rewrite the wget commands as curl commands. I work on a bunch of large open source projects with many prerequisites, of which Slicer is a prime example (http://slicer.org). Slicer (and any projects my lab originates) use CMake, and prerequisites are handled by a CMake macro that downloads, configures and builds all prerequisites. It also subsumes a lot of the nuts & bolts of autoconf system-sniffing into the 'it just works' background. It also generates build files for a large set of build tools, like Make and Visual Studio. I can't imagine the GNU development community embracing CMake, for any number of reasons -- licensing, 'not-invented-here', an existing, functional build system, CLANG uses it ;-) -- but some of the things that people find difficult about building and deploying the GNU compilers are fairly easy with CMake. As the complexity of projects like GCC grow, it's never the wrong time to try and refine and simplify the way it's built and deployed. On Thu, Aug 23, 2012 at 6:20 AM, Andrew Haley <aph@xxxxxxxxxx> wrote: > On 08/23/2012 11:58 AM, Klaus Rudolph wrote: >> Hi >> >> Benjamin Beurdouche wrote: >>> Sorry I did copy the wrong line Š >>> Did you try to give the path of mpfr directly in the configuration step ? >>> >>> >>> ../configure --prefix=/opt/linux_4.7.1 --with-mpfr=/where-you-put-it >>> --enable-languages=c,c++ >>> >>> >> >> Installation of prerequisites to the default path will also not work! >> >> The only way I found to get the things work is to install all packets to >> exact one path and give all the path information manually to all the >> packages and the compiler configure itself: >> >> >> >> tar -xjf ../avrdownload/gmp-5.0.5.tar.bz2 >> cd gmp-5.0.5/ >> ./configure --enable-cxx --prefix=/opt/linux-gnu_4.7.1 >> make >> sudo make install >> >> --------- >> >> tar -xjf ../avrdownload/mpfr-3.1.1.tar.bz2 >> cd mpfr-3.1.1/ >> ./configure --prefix=/opt/linux-gnu_4.7.1 --with-gmp=/opt/linux-gnu_4.7.1 >> make >> sudo make install >> >> ------ >> tar -xzf ../avrdownload/mpc-1.0.tar.gz >> cd mpc-1.0/ >> ./configure --prefix=/opt/linux-gnu_4.7.1 >> --with-gmp=/opt/linux-gnu_4.7.1 --with-mpfr=/opt/linux-gnu_4.7.1 >> make >> sudo make install >> >> --------- >> tar -xjf ~/avrdownload/ppl-1.0.tar.bz2 >> cd ppl-1.0/ >> ./configure --prefix=/opt/linux-gnu_4.7.1 --with-gmp=/opt/linux-gnu_4.7.1 >> make >> sudo make install >> >> ----------- >> >> tar -xjf ../../avrdownload/gcc-4.7.1.tar.bz2 >> mkdir build_linux >> cd build_linux >> ../configure --prefix=/opt/linux-gnu_4.7.1 >> --with-mpfr=/opt/linux-gnu_4.7.1 --with-mpc=/opt/linux-gnu_4.7.1 >> --with-ppl=/opt/linux-gnu_4.7.1 --with-gmp=/opt/linux-gnu_4.7.1 >> --enable-languages=c,c++ >> make -j8 >> sudo make install >> >> >> For me it looks that there is no way to simply copy the prerequisite >> packages to the compiler and start configure/make. > > We still don't understand what you did. > > Did you go into the top-level source directory and run > > ./contrib/dowload_prerequisites > > ? > > Andrew. > >