Thanks! I got this error while configuring: "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." How to know if there are GMP 4.1+ and MPFR 2.3.2+ installed on the workstation and where they are? Thanks and regards! Philip Herron wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Tim wrote: >> >> Hi, I wonder if someone by any chance happen to know how to install a > stable latest gcc (4.4.x) for a workstation under Kubuntu 9.04? >> >> The reason I need gcc 4.4.x is that I would like to use Collapse in > OpenMP 3.0 which is only supported in GCC 4.4 and later version. >> >> Stability is important since my administrator would like to make it > work on a workstation shared by many people at work. But I have seen so > many reports about the failure to install a stable gcc 4.4.x in the past > few months. For example, I saw this somewhere online: >> >> sudo apt-get install gcc-snapshot >> >> which as gcc snapshot's website says is not a stable one. >> >> So I wonder if there is some way that can install a stable latest gcc > (4.4.x) for a workstation under Kubuntu 9.04? Even gcc 4.4.0 is fine as > long as it is stable and I assume it to have OpenMP 3.0. Or should I > wait till a stable release of gcc 4.4.x on Kubuntu 9.04 is out? >> >> Another question: is building gcc 4.4.x on someone's Home directory > from its source a good choice? Is it possible to not using root? >> >> Really appreciate your suggestion! >> >> Thanks and regards! >> > Hey > > Well you have several choices i guess, you could either wait for the > next ubuntu release, but thats not very helpful :). > > Or you could download yourself a tarball release of gcc and compile > and install it yourself. Which is probably the best solution. > > http://gcc-uk.internet.bs/releases/gcc-4.4.0/ > > Thats the 4.4.0 releases if your just using C gcc-core is fine. But a > full gcc tarball the top item is probably best. It should come with > all the goodies you want. If you don't have root on the system your > deploying it to > > ./configure --prefix=$HOME/gcc-install > > Don't worry about compiling your own GCC its not as awful as you might > think, you shouldn't have many problems. If your on ubuntu you could: > > % aptitude install libmpfr-dev libgmp3-dev build-essential > % wget -c http://gcc-uk.internet.bs/releases/gcc-4.4.1/gcc-4.4.1.tar.bz2 > % bunzip2 gcc-4.4.1.tar.bz2 > % tar jxvf gcc-4.4.1.tar > % cd gcc-4.4.1 > % ./configure --prefix=$HOME/gcc-install > % make > # go get lunch :) > % make install > > This isn't quite so ideal as you would have to specify your direct > path to gcc in $HOME/gcc-install but its a start :) Though you could > add it to your path. But this is a pain your much better doing a full > install as root. If your on a work-station being shared you should get > root access to do this properly :) > > I was thinking of maintaining my own debs of the latest gcc releases > somewhere i might look into doing this now might be helpful. > > - --Phil > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iEYEARECAAYFAkqYNpsACgkQAhcOgIaQQ2EDKwCcCi+ezFyoYAB5QiUJVcvnbf0m > OJ8AniDsCZcntZ3pZ6c8nHUZ5m1GT9vY > =LAcJ > -----END PGP SIGNATURE----- > > > -- View this message in context: http://www.nabble.com/Install-stable-latest-gcc-4.4.x-on-a-workstation-%28Kubuntu-9.04%29-tp25194246p25216700.html Sent from the gcc - Help mailing list archive at Nabble.com.