Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

DaveDub

macrumors newbie
Original poster
Aug 22, 2006
2
0
Can anybody walk me through how to install g77 fortran?

I think gcc is installed (the terminal recognises the gcc command). I downloaded the tar file for g77 and extracted it and now I have some folders /usr/local/loads of stuff. I have no idea what to do with them now... (why can't it be like the good old days where you just threw stuff in the Extensions or Control Panels folders...)

I'm using it as part of a theoretical modelling assignment at uni - I'd like to learn Fortran as most physics stuff is still written in it... old school, but it's still good :)
 

risc

macrumors 68030
Jul 23, 2004
2,756
0
Melbourne, Australia
The GNU Fortran Compiler is available via Fink, so get Fink up and running and it would be as easy as

sudo apt-get install g77

or

sudo fink install g77

from the terminal, apt-get install would install the binary, fink install would compile it from source.

Fink - http://fink.sourceforge.net/
Fink GNU Fortran Compiler package - http://pdb.finkproject.org/pdb/package.php/g77

I'm sure it is available via DarwinPorts too. http://macports.com/

As for your comment about the good old days, welcome to UNIX. ;)
 

DaveDub

macrumors newbie
Original poster
Aug 22, 2006
2
0
Awesome! That seems to have worked... I don't think I'll ever get used to installing things through command line though...

Thanks for your help :)
 

jag0872

macrumors newbie
Jan 24, 2009
1
0
TX
I am also trying to install Fortran 77 compiler. I have 10.4 intel Mac. I installed fink then fort77 but when I run
#fort77 test.f

Can't exec "cc": No such file or directory at /sw/bin/fort77 line 392.
/sw/bin/fort77: aborting compilation

when I try to install g77 it gives:
#sudo fink install g77
could not determine XFree86 version number
Information about 1731 packages read in 0 seconds.
Failed: no package found for specification 'g77'!

Please help me. I need f77 up and running

Thanks, Jyoti.
 

decal12

macrumors newbie
May 21, 2009
1
0
Need to enable unstable trees

I'm relatively new to all this, but according to this discussion, it's because you need to first enable unstable trees.

I'm in the midst of trying to use fink to install g77 on a intel-based 10.4, so I'll return later and let you know if I was eventually successfuly.

UPDATE - no such luck, but it may be due to novice status.
 

ChrisA

macrumors G5
Jan 5, 2006
12,560
1,671
Redondo Beach, California
I have some folders /usr/local/loads of stuff. I have no idea what to do with them now... (why can't it be like the good old days where you just threw stuff in the Extensions or Control Panels folders...)

Why can't it be like the "old days"? Because The "new" Mac OS X is even older. It's a 40 year old OS, UNIX. It dates from 1969.

If you have "stuff" in /usr/local/* then you are likely done. That is a good place for a compiler. Try running it. At the command line type "/usr/local/bin/g77 -V" ad you should get a line of text printed with f77's version number.

If you place "/usr/local/bin" in the PATH environment variable than you will not have to always type "/usr/local/bin"
 

trn

macrumors newbie
Oct 8, 2009
1
0
Help appreciated

I'm relatively new to all this, but according to this discussion, it's because you need to first enable unstable trees.

I'm in the midst of trying to use fink to install g77 on a intel-based 10.4, so I'll return later and let you know if I was eventually successfuly.

UPDATE - no such luck, but it may be due to novice status.

--------
Hi,

I have an Intel Mac and I am also having problems. Grateful for advice on what to do.

Regards
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.