| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
11-29-2012, 01:03 PM
|
#1
|
|
Member
Registered: Aug 2012
Distribution: Ubuntu 10.04, CentOS 6.3, Windows 7
Posts: 96
Rep:
|
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.
|
|
|
|
11-29-2012, 04:29 PM
|
#2
|
|
Member
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix
Posts: 731
Rep: 
|
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.
|
|
|
1 members found this post helpful.
|
12-02-2012, 07:30 AM
|
#4
|
|
Senior Member
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 11.4
Posts: 1,314
|
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.
|
|
|
1 members found this post helpful.
|
12-03-2012, 08:28 AM
|
#5
|
|
Member
Registered: Aug 2012
Distribution: Ubuntu 10.04, CentOS 6.3, Windows 7
Posts: 96
Original Poster
Rep:
|
@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.
|
|
|
|
12-10-2012, 02:43 PM
|
#6
|
|
Member
Registered: Aug 2012
Distribution: Ubuntu 10.04, CentOS 6.3, Windows 7
Posts: 96
Original Poster
Rep:
|
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.
I'm not sure what this means, and Google didn't yield anything helpful. Does anyone know what this means?
|
|
|
1 members found this post helpful.
|
12-10-2012, 03:44 PM
|
#7
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,609
|
# 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.
.
|
|
|
1 members found this post helpful.
|
12-11-2012, 08:44 AM
|
#8
|
|
Member
Registered: Aug 2012
Distribution: Ubuntu 10.04, CentOS 6.3, Windows 7
Posts: 96
Original Poster
Rep:
|
Quote:
Originally Posted by knudfl
# 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.
.
|
Have you used it before? Would it work the same way (despite some code possibly not working)?
|
|
|
|
12-12-2012, 06:36 AM
|
#9
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,609
|
# 8
Why not use the proof tool ? I.e. g77-compat-3.4.6 .
|
|
|
1 members found this post helpful.
|
12-12-2012, 07:58 AM
|
#10
|
|
Member
Registered: Aug 2012
Distribution: Ubuntu 10.04, CentOS 6.3, Windows 7
Posts: 96
Original Poster
Rep:
|
Quote:
Originally Posted by knudfl
# 8
Why not use the proof tool ? I.e. g77-compat-3.4.6 .
|
I had tried to use it but the system was complaining about missing packages when I tried to install the .deb file. I forget exactly what.
|
|
|
|
12-12-2012, 08:28 AM
|
#11
|
|
Member
Registered: Aug 2012
Distribution: Ubuntu 10.04, CentOS 6.3, Windows 7
Posts: 96
Original Poster
Rep:
|
Here's the error I was talking about :
Code:
# dpkg -i gcc34-compat-3.4.6.ubuntu1204_i386.deb
Selecting previously unselected package gcc34-compat:i386.
(Reading database ... 24090 files and directories currently installed.)
Unpacking gcc34-compat:i386 (from gcc34-compat-3.4.6.ubuntu1204_i386.deb) ...
dpkg: dependency problems prevent configuration of gcc34-compat:i386:
gcc34-compat:i386 depends on libc6.
dpkg: error processing gcc34-compat:i386 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
gcc34-compat:i386
|
|
|
|
12-12-2012, 10:23 AM
|
#12
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,609
|
# 11
May be you have a 64bits OS ?
This command will reply with i686 for 32bits, and x86_64 for 64bits :
$ uname -m
|
|
|
1 members found this post helpful.
|
12-12-2012, 10:36 AM
|
#13
|
|
Member
Registered: Aug 2012
Distribution: Ubuntu 10.04, CentOS 6.3, Windows 7
Posts: 96
Original Poster
Rep:
|
Yes, it's a 64 bit system.
|
|
|
|
12-13-2012, 10:21 AM
|
#14
|
|
Member
Registered: Aug 2012
Distribution: Ubuntu 10.04, CentOS 6.3, Windows 7
Posts: 96
Original Poster
Rep:
|
#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?
|
|
|
|
12-13-2012, 10:49 AM
|
#15
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,609
|
# 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.
.
Last edited by knudfl; 12-13-2012 at 04:38 PM.
|
|
|
1 members found this post helpful.
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:23 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|