安装步骤
- 首先下载压缩包
wget ftp://ftp.astro.caltech.edu/pub/difmap/difmapx.x.tar.gz
;- x.x为版本号,目前最新版本2.5e
- 解压
tar xvf difmap2.5e.tar.gz
- 进入目录
cd uvf_difmap
- 编辑
configure
文件,将f77
修改为gfortran
,并酌情修改pgplot
参数- 对于MacOSX比较麻烦,可能修改的地方比较多,比如PGPLOT以及CCLIB
- 编译
./configure system_name
- 其中system_name可以为如下参数:
- sun4-gcc - Sun sparc running SUNOS4.* using gcc.
- sol2-gcc - Sun sparc running Solaris 2.* using gcc.
- sol2-cc - Sun Sparc running Solaris 2.* using the SUN ANSI cc
compiler.
- hppa-c89 - HP9000 700 or 800 series workstations using c89.
- IBM-c89 - IBM 6xxx series workstations using c89.
- alpha-osf1-gcc - Alpha AXP running OSF1, using the Gnu C compiler, gcc.
- alpha-osf1-cc - Alpha AXP running OSF1, using the native DEC C compiler.
- linux-i486-gcc - I486 PC running Linux, using the Gnu C compiler, gcc.
- linux-ia64-ecc - Itanium PC running Linux, using the Intel compiler ecc.
- linux-ia64-gcc - Itanium or AMD64 PC running Linux, using gcc.
- apple-osx-gcc - Macintosh computer running OSX, using the Gnu C compiler.
- intel-osx-gcc - Intel Mac computer running OSX, using the Gnu C compiler.
- 安装
./makeall
详情参考压缩包中的README文件