Re: Fortran and Xcode
Re: Fortran and Xcode
- Subject: Re: Fortran and Xcode
- From: Don Quixote de la Mancha <email@hidden>
- Date: Sat, 07 Jul 2012 02:49:02 -0700
On Sat, Jul 7, 2012 at 1:31 AM, Jay Reynolds Freeman
<email@hidden> wrote:
> I need to work on some legacy Fortran code on my Mac.
Now that's a blast from the past.
I wrote my very first program in FORTRAN in 1976 at the tender age of
twelve. I learned it from the very same FORTRAN IV textbook that my
father used for his Master's in Electrical Engineering. Back then,
computers were so expensive that the University of Idaho just had one
of them for all eight thousand students to share.
> I know about Macports, and I know where to find prebuilt versions of late GNU Fortrans for the Mac.
I cannot recommend Macports highly enough. I've been using it for years.
However, sometimes installations fail because the ports are usually -
not always, but often - built from source that turns out not to
compile. That can be a problem if you try to install something with
lots of dependencies.
> I am running MacOS 10.6.8 with Xcode 3.2.6. Is there any cause to worry that an install of a new compiler will in some way mess up the command-line tools that I installed as part of the Xcode installation?
You won't have any problem at all. Macports puts *all* of its stuff
in /opt/local. You can totally eliminate Macports from your entire
box by just deleting that one directory tree.
Most Open Source tarballs come preconfigured to install into
/usr/local - *usr* not *opt* - which Apple doesn't install anything
into at all. But just to be sure, have a look at the Makefiles before
you build them.
To switch between Xcode's tools and Macports', put /opt/local/bin
ahead of /usr/local/bin in your $PATH. To switch back to Xcode,
either put /usr/bin first in your path, or remove /opt/local/bin from
your path entirely.
$ port search fortran
... comes up with lots of stuff.
If you want to study the Higgs Boson all by your lonesome, try "sudo
port install geant". I used it at CERN myself in the Summer of 1993.
I'm not really a coder, I'm a Physicist who just can't get a real job:
$ port search geant
geant4 @4.9.4.p02 (science)
Geant4 is a toolkit for the simulation of the passage of particles
through matter.
I don't find cernlib or patchy in Macports though. I would have
thought they would both be dependencies of geant.
--
Don Quixote de la Mancha
Dulcinea Technologies Corporation
Software of Elegance and Beauty
http://www.dulcineatech.com/don-quxote/
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden