Equations

Friday 23 October 2009

install g77 in Ubuntu 9.04 (Jaunty Jackalope)

Recently i needed to compile some programs with g77, ubuntu 9.04 repositories has gcc 4.3 and gfortran. Unfortunately, gfortran is not compatible with many g77 dependent programs.
There's an easy way to install gcc 3.4 and g77:
add to /etc/sources.list the ubuntu 8.04 hardy repositories:

deb http://hu.archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://hu.archive.ubuntu.com/ubuntu/ hardy universe
deb http://hu.archive.ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://hu.archive.ubuntu.com/ubuntu/ hardy-updates universe

then in the terminal:

sudo aptitude update
sudo aptitude isntall g77

remove or comment the ubuntu 8.04 repositories in sources.list
that's it