Chandra数据处理软件CIAO 的安装

此文最初于2016年10月24日发表于科学网博客,最近博客升级,博文对公众已不可见,现搬来博客园。

1.访问Chandra官网,下载CIAO 4.8

2.安装:(U为我的用户名)

[U@U ~]$ cd CIAO

[U@U CIAO]$ ./ciao-install

ciao-install v1.6 installing ciao-4.8

Requested packages: sherpa chips tools prism obsvis contrib CALDB_mainScript log file is /home/ciaouser/ciao-install-16-02-09.17.30.16

Download directory for tar files (/home/U/CIAO):  

CIAO installation directory (/usr): /home/U/CIAO

Run smoke tests? (y|n) (y):

Delete tar files after install? (y|n) (n):

Save these settings? (y|n) (y):

成功以后会出现以下提示:

  [40/42] Running test tools-dmstat-smoke001 ... PASS

  [41/42] Running test tools-dmstat-smoke002 ... PASS

  [42/42] Running test tools-dmstat-smoke003 ... PASS

All smoke tests PASSED.

Smoke tests complete. All tests passed!

Processing complete!Script Log file is /home/../ciao-install-16-02-09.17.30.16

3.设置环境变量:

[U@U CIAO]$ cd

[U@U ~]$ vi .bashrc

# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
       . /etc/bashrc
fi

# User specific aliases and functions

alias ciao="source /home/U/ciao-4.8/bin/ciao.bash"

保存并退出。

4.检查:

[U@U ~]$ ciao

CIAO configuration is complete...
CIAO 4.8 Thursday, January 28, 2016
 bindir      : /home/U/ciao-4.8/bin
 CALDB       : 4.7.2

[U@U ~]$ ls -1F /home/U/ciao-4.8/CALDB

data/
docs/
software/

[U@U ~]$ check_ciao_caldb

CALDB environment variable = /home/U/ciao-4.8/CALDB

5.成功!!!

6.BUG:

如果出现如下错误:

  [5/42] Running test <testname> ... FAIL

Review /tmp/smoke.username/<testname>/diff.log for details 1 out of 42 smoke tests FAILED.            !! CIAO MAY HAVE FAILED TO INSTALL PROPERLY !! Please check http://cxc.harvard.edu/ciao4.7/bugs/smoke.html for a list of known issues before contacting the Help Desk.

可以尝试以下方法:

  • A: 删除/tmp/smoke.U/下的smoketests.txt文件:

    mv smoketests.txt smoketests.txt.root

    尝试第2步:./ciao-install

  • B:改变/tmp/smoke.U/下的smoketests.txt文件的权限:

    sudo chmod 777 /tmp/smoke.U/smoketests.txt

    尝试第2步:./ciao-install

  • C:改变/tmp/下的smoke.U文件夹的权限:

    sudo chmod 777 /tmp/smoke.U

    尝试第2步:./ciao-install

posted @ 2025-05-05 15:12  天文圈打工人  阅读(85)  评论(0)    收藏  举报