-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Philip Herron wrote: > 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 Oh just so i don't look stupid you don't need % bunzip2 gcc-4.4.1.tar.bz2 tar jxvf handles that :) - --Phil -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkqYO7oACgkQAhcOgIaQQ2HyEACfQL2b9gfYL0vmpRCjIoxKbtWP zK0An2nGTa7dwTjRLDoXw+mEVc+L66u8 =omCs -----END PGP SIGNATURE-----