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

inanoifish

macrumors newbie
Original poster
Apr 25, 2010
6
0
Hi everyone, I´m desperate because I´m new on Mac (Leopard) and I need to run some programs which are written in f77.
How do I get a g77 compiler? What are the install steps?

I will appreciate someone to explain it, please!
Thank you!

Art.
 
Yeah, thanks. I already did that and didn´t succeeded... I need some step by step instructions.

Thanks!
 
The instructions are right there... Need I highlight them for you?

g77 3.4 :

Recently compiled using source code from the GNU CVS servers. This is the FINAL release of g77 (version 3.4 compiler). Future versions of GCC will have gfortran (see above). Download my binaries, and cd to the download folder. Then gunzip g77-bin.tar.gz (if your browser didn't do so already) and sudo tar -xvf g77-bin.tar -C /. It installs everything in /usr/local. Try it! You will need to have Apple's Developer Tools installed. They are included on a separate CD in the retail version of OS X and also available as a free download from Apple's Developer Site. Please install the most current version of Developer Tools. Thanks to James Wookey for the Intel Mac version of g77.

Mac users will need to make sure /usr/local/bin is in their $PATH variable. This can be done by adding a line to your (hidden) .bash_profile file (or creating it if it doesn't exist) that looks like the following:
Code:
export PATH=$PATH:/usr/local/bin:/usr/local/sbin
Though my system doesn't have anything in /usr/local/sbin, it can't hurt to add it to the path just in case something else uses it.
 
Just out of curiosity:
Do you have some Fortran 77 code that doesn't adhere to Fortran 90+? If so, maybe it's worth converting it so you can use a newer compiler with more advanced features. If you do go this direction, you can get g95 OS X binaries.

-Lee
 
Apparently the problem is solved, thank you!
By the way where can I get gnuplot and how do I install it?

Art.
 
Thank you, everything seems to be working fine until gnuplot calls aqua to plot the graph. Aqua opens but doesn´t plot anything.

If I write:

$ gnuplot
gnuplot> set term x11

I do get the graph. Something´s wrong with aqua...

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