PDA

View Full Version : [ubuntu] where is g77??????



sephora
October 31st, 2008, 09:16 AM
Hi everyone!

I installed Intrepid today.

Everything went perfect, even the "turn off" and "restart" buttons worked perfectly:), until I tried to install g77 (fortran 77) because I use it for running programs for numeric calculations.
It isn't in the repositories:confused:. Can anybody help me to install it?



Best regards....

Thank you:lolflag:

Partyboi2
October 31st, 2008, 09:43 AM
Try downloading the deb package from here (https://launchpad.net/ubuntu/intrepid/i386/g77-3.4/3.4.6-6ubuntu3) and installing it by double clicking on it.

sephora
November 1st, 2008, 06:48 AM
Hi!

I tried to install g77 using the deb package but it didn't work. I got an error saying that a dependency is not satisfiable, specifically with the package gcc-3.4. This is strange because I have this program installed....

Does anybody know another way to install g77?


Greetings

Sorivenul
November 1st, 2008, 07:29 AM
gfortran has replaced g77.
Try it. Hope it works for you.

Partyboi2
November 1st, 2008, 07:46 AM
deleted

khayyam37
November 3rd, 2008, 04:28 AM
gfortran has replaced g77.
Try it. Hope it works for you.

ugh. no, it doesn't. it seems this was once in the release notes, but no more. i wish it still were, would have saved me a lot of trouble.

Sorivenul
November 3rd, 2008, 05:43 AM
I'm not sure, then. I forgot that you were looking for Fortran 77 not 95.
Have you tried fort77? It invokes f2c like a real Fortran compiler, and should be able to handle your 77 code. If it doesn't I'm at a loss on this one.

nhmc
November 12th, 2008, 02:44 PM
fort77 is not a replacement for g77. I have fortran 77 code that compiled without any problems using g77 that fort77 does not compile.

Sorivenul
November 12th, 2008, 04:19 PM
Okay, did some more research.
You may need to install the older version of the gcc, 3.4, which is in the repositories:

sudo apt-get install gcc-3.4

Apparently this should contain what you need to get going.

However, searching the Ubuntu package site showed this (http://packages.ubuntu.com/hardy/g77), as well.
If you have the Universe repositories enabled you should be able to install it.

Good luck!

swhit
November 12th, 2008, 07:08 PM
If fort77 is in the repositories (it does install and does appear to work as I tried fort77 with a few simple programs), why can't g77 be included? This doesn't make any sense to me.

sayantandas
December 4th, 2008, 10:29 AM
i tried installing from the repos of hardy heron. g77 doesnt install. although gcc and cpp r installed , g77 shows unresolved dependencies.
any idea?

abouzar
September 16th, 2009, 04:08 AM
The problem is caused by the new version of gcc which is incompatible with g77-3.4.

I found that you can still use the old g77-2.95 compiler properly. In order to install it, I followed the below steps.

First, make sure you have the following repositories:


deb http://archive.ubuntu.com/ubuntu/ jaunty-security main restricted multiverse universe
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-security restricted main
deb-src http://archive.ubuntu.com/ubuntu/ jaunty universe multiverse
deb http://ftp.de.debian.org/debian etch main
You can compare these with your source list by checking:


$ cat /etc/apt/sources.listIf any of the repositories are not available, add them to the source list.

Then try


$ sudo apt-get updateand then try:


$ sudo apt-get install g77-2.95
$ sudo apt-get install g77-2.95-docThen you can create symbolic links to mach g77:


$ cd /usr/bin/
$ sudo ln -s g77-2.95 g77
$ cd /usr/share/man/man1
$ sudo ln -s g77-2.95.1.gz g77.1.gz
Now, you can have the older version of g77 as your Fortran compiler. You can also see the man-pages.

Enjoy :P


Hi everyone!

I installed Intrepid today.

Everything went perfect, even the "turn off" and "restart" buttons worked perfectly:), until I tried to install g77 (fortran 77) because I use it for running programs for numeric calculations.
It isn't in the repositories:confused:. Can anybody help me to install it?



Best regards....

Thank you:lolflag: