AUTO2000 インストール

http://take.ttlab.cs.hkg.ac.jp/~ttks/AUTO/AUTO-J.html
https://www-nsc.es.hokudai.ac.jp:8192/TYsTIPS/92
マニュアル
https://www-nsc.es.hokudai.ac.jp:8192/TYsTIPS/uploads/92/auto2000.pdf
を参考に.

AUTO2000 (auto2000
/home/hoge 以下に解凍したとす.

.bash_profile (or .bashrc)には下を "export PATH" より前に追記.


AUTO_DIR=$HOME/auto/2000
export AUTO_DIR

PATH=$AUTO_DIR/cmds:$AUTO_DIR/bin:$PATH


$ cd
$ source .bash_profile
$ cd $AUTO_DIR
$ ./configure
$ sudo yum install tk tix tkinter
$ make

tk, tix, tkinter をインストールしていなかったら,次のようなエラーが起こる.


Restart label 2 not found
make: *** [run] アボートしました
AUTO> plot("ab")
2D plotting has been disabled


また,次のようなエラーが起きることもある.


AUTO> run()
gcc -D_THREAD_SAFE -DPTHREADS -O -I/Users/hoge/prog/auto/include -c ab.c
gcc -D_THREAD_SAFE -DPTHREADS -O -I/Users/hoge/prog/auto/include ab.o -o ab.exe -L/Users/hoge/prog/auto/lib -lauto -lauto_f2c -lm
Starting ab ...
ab ... done
/sw/lib/odcctools/bin/ld: archive: /Users/hoge/prog/auto/lib/libauto.a has no table of contents, add one with ranlib(1) (can't load from it)
collect2: ld returned 1 exit status
make: [ab.exe] Error 1 (ignored)
make: ./ab.exe: Command not found
make: [run] Error 127 (ignored)

このような, ranlib(1) (can't load from it) エラーの場合は, ranlib してやればいいらしい.http://110k.net/article.php?id=63
今回は,libauto.a が対象なので,次のようにする.


$ cd {$AUTO_DIR}/lib
$ sudo ranlib libauto.a