xmdsのOS Xへのインスコ

訳あって英語も表記します。
どうやら前のバージョンと言うか、今のバージョンにはconfigureファイルにエラーがあったらしく、それが直った1.6とかいうのが転がってた。というかプロジェクトのサイトに最新版がなくてsuorceforgeにうpされてるのは何でなんだぜ?

http://sourceforge.net/project/downloading.php?groupname=xmds&filename=xmds-1.6-1.tar.gz&use_mirror=heanet

まあ詳しいことは良いとして、それを拾ってきて、解凍して、fftw.hのあるディレクトリを指定しながらconfigureして、makeして、make installすれば良いらしい。俺の場合、fftw.hは/usr/local/includeにあった。/usr/includeにあることもあるらしいです。

# ./configure --with-fftw-path=/usr/local/include
...
# make
...
# make install

これで適当にチュートリアルにそって作ったVan der Pol振動子の問題が解けたらしいので良いとする。あとはこれで境界値問題が解けるかを調べれば良いのかなあと。そして英語での説明を下の方に書いてみる。俺超親切。

Installation of xmds on OS X

This English document written below is the same as the Japanese document described above. It is just for users who cannot read Japanese.
I installed xdms on my Mac mini. The OS version is 10.3.9. Before installing xmds, we shall comfirm whether FFT package "FFTW" is installed. We can find "fftw.h" header usually in /usr/include, /usr/local/include, or /usr/local include. If you cannot find fftw.h in your system, you can download source files of FFTW from, http://www.fftw.org/download.html , and install it. The fftw version 2.1.5 is preffered, maybe(with ver. 3.1, xdms doesn't work well on my system). Also, precompiled packages for OS X in the site does not work well. It is better to install from a tarball(ftp://ftp.fftw.org/pub/fftw/fftw-2.1.5.tar.gz).
After obtaining fftw, we will start to install xdms.
Download a tarball from sourceforge site*1(http://sourceforge.net/project/downloading.php?groupname=xmds&filename=xmds-1.6-1.tar.gz&use_mirror=heanet), and the zip file will be unpacked automatically with Stiffst Expander. Change directory to the unpacked folder, and su to root permittion,

$ cd /Users/hoge/Desktop/xmds-1.6
$ su
passwd:
#

and configure. We need to add a option concerning to fftw as, "--with-fftw-path=your_fftw_path". If fftw.h is in /usr/local/include,

# ./configure --with-fftw-path=/usr/local/include

, and make , and make install.

# make
...
# make install
..

If make install is successfully finished, the installation of xmds is completed. You can learn how to use it with some exaples. Tha usage is described in the documentation.
Additionally, I recomend you to xmds ver. 1.6. I heard that some serious bugs are found in ver. 1.5.3 which is distributed in the project page from Debian users group forum, and also I could not run the program well with ver. 1.5.3..

*1:Not from project site, but sourceforge page. The package located in Sourceforge is the latest version