=configureで以下のwarningが出るとき。
configure: WARNING: cfitsio: == No acceptable f77 found in $PATH
configure: WARNING: cfitsio: == Cfitsio will be built without Fortran wrapper su
simx-1.1.2/configureの中で実行されるsimx-1.1.2/libsrc/cfitsio/configureはg77を探す。
おそらく多くのMac userはfortranコンパイラを持っていないか、HEASoftのコンパイルのために持っていたとしてもg77ではなくgfortran。てっとり早い対処はgfortranをg77として使わせること。
参考: http://monteboo.blogspot.com/2007/12/cfitsio-fortran-wrap.html
1-0. gfortranを入手。
1-0-1. finkを入れる。
- fink for Snow Leopard (@0.29.10) http://www.finkproject.org/download/index.php?phpLang=ja
- Must be installed from source code at this time (2010/04)
- After downloading a tarball,
$ cd ~/Download $ tar -xvf fink-0.29.10.tar $ cd fink-0.29.10/ $ ./bootstrap
- Choose [1: Default (mostly 32bit)], [1: Use sudo], [/sw] in the bootstrap.
- Choose defaults for the others
- After installation, add source /sw/bin/init.csh to .cshrc
- and do $ sudo fink selfupdate once
(なぜか外から閲覧できなくなってる?wikiから転載: http://byakko.scphys.kyoto-u.ac.jp:8830/MSworklog/iMacSetUpLog#General)
1-0-2. sudo fink install gcc4.4でgfortran4.4.1を入れる。
1-1. $PATHに/sw/lib/gcc4.4/lib追加
1-2. sudo ln -s /sw/bin/gfortran /sw/bin/g77
1-3. sudo ln -s /Users/sawada/Downloads/simx-1.1.2/libsrc/cfitsio/* /sw/lib/gcc4.4/lib
(1-3.が必須かどうか未確認。)
2. src/libsimx.a のtableができない問題
=makeで以下のerrorが出るとき。
ld: in ../src/libsimx.a, archive has no table of contents
collect2: ld returned 1 exit status
make[1]: *** [simx] Error 1
make: *** [all] Error 2
2-a. arのoptionを変更する
/Users/sawada/Downloads/simx-1.1.2/src/MakefileのL33を
$(AR) rv $@ $(OBJS)
から
$(AR) srv $@ $(OBJS)
に修正
参考: http://hidemon-memo.blogspot.com/2009/01/mac-os-ar-commandmode.html
2-b. (未試行) Randollの示した対処法
"cd src ; ranlib libsimx.a ; cd .."
参考: http://hea-www.harvard.edu/simx/install.html の末尾
0 件のコメント:
コメントを投稿