2009/10/12

HEASOFT & CFITSIO @_@

Orz...
已經有好幾次在更新 HEASOFT 後都忘了修改對應的 CFITSIO 版本...

以下是給自己的 note (以 Heasoft 6.7 為例):

  • cd /usr/lib
  • sudo ln -s /HEASOFT/heasoft-6.7/heacore/i386-apple-darwin9.7.0/lib/libcfitsio_3.181.dylib ./libcfitsio_3.181.dylib
  • sudo ln -s /HEASOFT/heasoft-6.7/ftools/i386-apple-darwin9.7.0/include/cfitsio.h ./cfitsio.h
  • sudo ln -s /HEASOFT/heasoft-6.7/heacore/i386-apple-darwin9.7.0/include/fitsio.h ./fitsio.h
  • gcc xxx.c -o xxx -lm -lcfitsio_3.181


3 則留言:

Yuan 提到...

sudo ln -s /usr/include/malloc/malloc.h /usr/include/malloc.h

sudo ln -s /HEASOFT/heasoft-6.7/ftools/i386-apple-darwin10.0.0/include/cfitsio.h /usr/include/cfitsio.h

sudo ln -s /HEASOFT/heasoft-6.7/heacore/i386-apple-darwin10.0.0/include/fitsio.h /usr/include/fitsio.h

sudo ln -s /HEASOFT/heasoft-6.7/heacore/i386-apple-darwin10.0.0/include/longnam.h /usr/include/longnam.h

原普拉斯 提到...

Pour HEASoft 6.16

cd /usr/lib

sudo ln -s /HEASoft/heasoft-6.16/heacore/x86_64-apple-darwin13.2.0/lib/libcfitsio_3.37.dylib ./libcfitsio_3.37.dylib

sudo ln -s /HEASoft/heasoft-6.16/ftools/x86_64-apple-darwin13.2.0/include/cfitsio.h ./cfitsio.h

cd /usr/include

sudo ln -s /HEASoft/heasoft-6.16/heacore/x86_64-apple-darwin13.2.0/include/fitsio.h ./fitsio.h

sudo ln -s /HEASoft/heasoft-6.16/heacore/x86_64-apple-darwin13.2.0/include/fitsio2.h ./fitsio2.h

sudo ln -s /HEASoft/heasoft-6.16/heacore/x86_64-apple-darwin13.2.0/include/longnam.h ./longnam.h

原普拉斯 提到...

Pour 08Feb2016_V6.18

sudo ln -s /HEASoft/heasoft-6.18/heacore/x86_64-apple-darwin15.3.0/lib/libcfitsio.4.3.38.dylib /usr/lib/libcfitsio.4.3.38.dylib
sudo ln -s /HEASoft/heasoft-6.18/ftools/x86_64-apple-darwin15.3.0/include/cfitsio.h /usr/include/cfitsio.h
sudo ln -s /HEASoft/heasoft-6.18/heacore/x86_64-apple-darwin15.3.0/include/fitsio.h /usr/include/fitsio.h
sudo ln -s /HEASoft/heasoft-6.18/heacore/x86_64-apple-darwin15.3.0/include/fitsio2.h /usr/include/fitsio2.h
sudo ln -s /HEASoft/heasoft-6.18/heacore/x86_64-apple-darwin15.3.0/include/longnam.h /usr/include/longnam.h
sudo ln -s /usr/include/malloc/malloc.h /usr/include/malloc.h