AUTO on mac
2021/09/14
I'm going to write some memos about how to install AUTO on your new macOS. Here I consider clean installed macOS Big Sur (11.5.2). I don't know very well about Apple Silicon mac because I don't have it. But I am pretty sure it will run.
At first, you have to install Xcode app from AppStore. Also, you have to launch it once because it will install some stuff during its first launch.
I believe the following is an AUTO original HP.
http://indy.cs.concordia.ca/auto/
Now, the source code of AUTO is maintained on GitHub.
You can download newest release from following link.
https://github.com/auto-07p/auto-07p/releases/tag/v0.9.3
You should download following file and extract in appropriate folder.
auto-0.9.3.tar.gz
Then launch the Terminal app, then change directory in to the auto/07p folder. Then type a following command in a Terminal app.
./configure
You may see following error messages.
checking for Fortran flag to compile .f90 files... unknown
configure: error: Fortran could not compile .f90 files
It says that you do not have Fortaran 90. So, you should install it. You can download from following URL.
http://gcc.gnu.org/wiki/GFortran
Form Download -> Binaries , you will arrive following URL. Then you can download dmg file.
https://github.com/fxcoudert/gfortran-for-macOS/releases
After installing the gfortran, on Terminal app, type the following command again.
./configure
This time, you may see following messages.
***************************************************
It was requested that the plotting utility PLAUT04
be compiled but the proper libraries (Coin3D and
SoQt or SoXt or Open Inventor and Open Inventor Xt)
and perhaps Motif libraries (libXm) could not be
found. The compilation of PLAUT04 is disabled.
***************************************************
It says that if you want to install PLAUT04 software, you have to install additional dependent software. However, it is not necessary to install now. So, ignore it, and proceed now.
Then, on Terminal, type following command.
make
You may meet following error messages.
gfortran -g -O autlab.f90 utility.o -o ../bin/autlab
ld: library not found for -lSystem
collect2: エラー: ld はステータス 1 で終了しました
make[1]: *** [../bin/autlab] Error 1
make: *** [util] Error 2
In the case, you should type following command on Terminal.
xcode-select --install
This command install something important. It takes long time, just wait.
Then, make again. I believe you will succeed to build newest AUTO finally.
OK, try the demo on an AUTO manual. Download a newest manual (auto.pdf) from following URL.
https://github.com/auto-07p/auto-07p/releases/tag/v0.9.3
I am going to try 12.2 cusp. Make a temporally folder and enter it.
mkdir tmp
cd tmp
Run auto. (This notation is depended on where you are. )
../bin/auto
Then, you can see like following.
daishin@mac tmp % ../bin/auto
Python 2.7.16 (default, Jun 18 2021, 03:23:53)
[GCC Apple LLVM 12.0.5 (clang-1205.0.19.59.6) [+internal-os, ptrauth-isa=deploy on darwin
Type "help", "copyright", "credits" or "license" for more information.
(AUTOInteractiveConsole)
AUTO>
Follow the tutorial, then I can see following bifurcation diagram etc. So, it works!
Addendum: June 7, 2023
I initially started `auto` by running `../bin/auto`. How can I start it from another location?
The command to start `auto` varies depending on where you installed AUTO. For example, in my case, I can start it by running `~/AUTO/auto/07p/bin/auto`. From there, simply follow the instructions in the manual.
By the way, I followed these steps on an Apple Silicon machine and it worked without any problems. However, I have installed the latest version of Python using Anaconda. I have a feeling that the latest version of macOS does not come with Python pre-installed.