- Install the Mac Development Tools (if you don't already have them).
- Get the AUTO file auto2000-0.9.8.tar.bz2 from the
SourceForge web site,
and put it in your home directory.
- In a terminal, enter the following commands:
$ tar xvjf auto2000-0.9.8.tar.bz2
$ cd auto/2000
$ ./configure --with-F77=no
$ make
(F77 is disabled because the Mac Development environment does not
include Fortran. I haven't needed any of the Fortran programs that
are included with AUTO. If you need them, you can install g77 from
fink--do this before running the configure command, and don't
use the --with-F77=no argument.)
- Move to the cmds subdirectory
$ cd cmds
and use your favorite text editor to edit the file cmds.make.
Change this line
LIBS = -L$(AUTO_DIR)/lib -lauto -lauto_f2c -lm
to this
LIBS = $(AUTO_DIR)/lib/libauto.a $(AUTO_DIR)/lib/libauto_f2c.a -lm
(Why? As far as I can tell, the -L option doesn't work in the Mac's gcc.
I'm sure there are valid technical reasons for this, but from this
naive Mac user's point of view, -L is simply broken. The above change
gives the full paths to the libraries that AUTO uses.)
- Before running AUTO, enter the following commands in your terminal:
$ source ~/auto/2000/cmds/auto.env.sh
$ export PATH=.:$PATH
The first command defines the environment variable $AUTO_DIR, and
modifies $PATH to include $(AUTO_DIR)/cmds and $(AUTO_DIR)/bin.
The second command adds the "current directory" to $PATH.