GILDAS is a collection of state-of-the-art software oriented toward (sub-)millimeter radioastronomical applications (either single-dish or interferometer). It is daily used to reduce all data acquired with the IRAM 30M telescope and the NOrthern Extended Millimeter Array NOEMA (except VLBI observations). GILDAS is easily extensible. GILDAS is written in Fortran-90/95, with a few parts in C/C++ (mainly keyboard interaction, plotting, widgets).
1、下載 http://www.iram.fr/IRAMFR/GILDAS/
gildas-src-may18a.tar.gz 31210236 Tue May 1 8:40:45 2018
gildas-doc-may18a.tar.gz 25978258 Tue May 1 8:40:57 2018
2、註釋Anaconda2/python 依賴(也可能是3),刷新源,重啓
source .bashrc
3、安裝依賴包
Fedora 23 (or yum/dnf-based distributions):
Required: dnf install gcc-gfortran gcc-c++ gtk2-devel
Recommended: dnf install python-devel numpy libpng-devel
Optional: dnf install blas-devel lapack-devel fftw-devel cfitsio-devel
Pre-install: export GAG_SEARCH_PATH="/usr/lib:/usr/lib/x86_64-linux-gnu"
4、解壓src後查看readme和install,按步驟在終端中寫入命令
1. shell-prompt> gunzip gildas-src-mmmyya.tar.gz
2. shell-prompt> tar -xvf gildas-src-mmmyya.tar
3. shell-prompt> cd gildas-src-mmmyya
4. shell-prompt> sh
5. shell-prompt> source admin/gildas-env.sh
6. shell-prompt> make
7. shell-prompt> make install
5、make install 成功後會有顯示類似以下三個語句寫入 .bash_profile
export GAG_ROOT_DIR=/home/luoluo/Science_tools/gildas-exe-jun15bexport GAG_ROOT_DIR=/home/luoluo/scientific_tools/gildas-exe-may18a
export GAG_EXEC_SYSTEM=x86_64-ubuntu18.04-gfortran
source $GAG_ROOT_DIR/etc/bash_profile
export GAG_EXEC_SYSTEM=x86_64-centos7-gfortran
source $GAG_ROOT_DIR/etc/bash_profile
終端命令:source .bash_profile
6、terminal class 能用啦 /home/luoluo/Science_tools/gildas-exe-jun15b/x86_64-centos7-gfortran/bin/class'
7、doc安裝
待更 。。。
參考文章:
http://www.iram.fr/~gildas/dist/gildas.README
http://blog.sciencenet.cn/blog-783377-616460.html
http://blog.sciencenet.cn/blog-783377-816985.html
備註:readme install
環境變量.bashrc和bash_profile 的區別:
1、配置文件的兩個級別,系統(/etc)和用戶(~/),每次開機優先調用系統級profile用於登陸式shell,bashrc用與每個交互式shell
2、.bashrc在每次任何目錄下打開shell都能調用,bash_profile在home目錄下打開shell才能成功調用(class)