How to get f77 compiler on Ubuntu 12.04
Hello,
I am in the process of upgrading one of my systems to a newer beefier server. We are transitioning from Red Hat version 4 update 9 to the latest LTS version of Ubuntu, 12.04. One of the users of this system absolutely needs the f77 fortran compiler (don't ask) and this package does not seem to be available from Ubuntu (which makes sense since the compiler is 9 years my senior). Any suggestions on an easy way to get the compiler on the Ubuntu system? Thanks for any help in advance. |
A quick google, and
I found this that may help:
May 4th, 2010, 05:14 PM Edit your /etc/apt/sources.list to add: deb http://cz.archive.ubuntu.com/ubuntu hardy-updates main universe Then use: sudo apt-get update sudo apt-get install g77 -------------------- G77 is the GNU F77 compiler package that is part of the GCC/G++ world. To get it all on Ubuntu, you may need to download new libs (after checking the requirments) and the GCC source package and compile the compiler with the right options to create a new GCC with G77. Rather a pain, but someone on the Ubuntu team decided we will never need FORTRAN again. How silly! ------------ I have not checked the Debian repos and packages. There may be something interesting there! I run CentOS and Debian on my systems, but cross loading packages is not recommended. |
The g77-compat compiler for Ubuntu 11* .. 12* :
g77-compat-3.4.6.ubuntu11_i386.deb https://docs.google.com/open?id=0B7S...kZXX0xWN0M0Um8 Ubuntu 12.04, g77-compat depends on gcc34-compat-3.4.6.ubuntu1204_i386.deb https://docs.google.com/open?id=0B7S...GdETGREbXp2T1U |
It would be good to investigate why he needs g77. Some defaults are different any maybe gfortran needs -finit-local-zero or other switches. But this could also be fixed inside the source code not to rely on this behavior of the compiler.
|
@knudfl
thank you very much! @Reuti Have ya ever met someone who is "set in their ways"? That's what I'm dealing with here. Nothing could be said to change the situation. Appreciate the response though. |
I just found out that there is a fortan 77 compiler for Ubuntu 12.04 (fort77). Has anyone used this? Is it the same as f77?
Also, while installing the application, apt had the following output: Code:
update-alternatives: using /usr/bin/fort77 to provide /usr/bin/f77 (f77) in auto mode. |
# 6.
gcc34-compat-3.4.6, g77-compat-3.4.6 : A gcc-3.4.6 build. 'fort77' is a 7.5 kB perl script that "Invokes f2c like a real compiler" http://packages.ubuntu.com/precise/fort77 Works with some f77 code, not all. If I remember right. . |
Quote:
|
# 8
Why not use the proof tool ? I.e. g77-compat-3.4.6 . |
Quote:
|
Here's the error I was talking about:
Code:
# dpkg -i gcc34-compat-3.4.6.ubuntu1204_i386.deb |
# 11
May be you have a 64bits OS ? This command will reply with i686 for 32bits, and x86_64 for 64bits : $ uname -m |
Yes, it's a 64 bit system.
|
#12
Do I require 64 bit versions of the deb files that you provided for it to work? If so, do you know where I could get them? |
# 14.
The gccXx-compat compilers for 32bits Ubuntu 11* - 12* : They were created by me, mainly to be used for old versions of ns2, which work best on a 32bits OS. I will check if it's possible to build a 64bits gcc-3.4.6 + f77, and let you know. . |
All times are GMT -5. The time now is 12:28 PM. |