标签存档: Scisoft

IRAF安装之 Fedora3

第一次准备装Iraf时就在何勃亮那里发现ESO的Scisoft中有支持Federa3以上内核的RPM安装包。但是用本本挂了一天从ESO官方Ftp拖下来200多M的文件居然MD5校验出错!而lamost镜像站没有查看权限,这下只得乖乖调试RH9。直到两个月后,LiNan姐向崔博士问及此事,才知道是网站链接出错。在RHSL4(FC5找不到我的SATAII硬盘)上测试,发现安装过程的确要简单很多。

首先要安装两个公共库函数包:

ncurses4-5.0-12.i386.rpm 342K

scisoft-common-6.0.4-0.i386.rpm 75M

然后就是scisoft-iraf-6.0.4-0.i386.rpm 238M;命令都是rpm -ivh < 文件名>, 安装过程会在根目录下生成scisoft文件夹, 然后shell为bash的用户在终端运行./scisoft/bin/Setup.bash , csh和 tcsh 用户运行 source /scisoft/bin/Setup.csh 即可。现在就可以直接在终端运行xgterm、cl了,连ds9都是现成的:)

记得仍要su到根用户下mkiraf进行初始化。

但是在我测试的RHEL4中如果此时退出系统,下次登录时仍无法调用命令,安装帮助中提到Setup.bash文件会更改用户目录下隐藏的.profile配置文件,而RHEL对应的文件为$home/.bash_profile,因此还要在此配置文件中写入Iraf命令的搜索路径。添加如下代码即可。

# User specific environment and startup programs

if [ “X$PATH” != X ]; then
export PATH=/scisoft/bin:$PATH
else
export PATH=/scisoft/bin
fi

#
# Add the main Scisoft libraries to the library search path
#

if [ “X$LD_LIBRARY_PATH” != X ]; then
export LD_LIBRARY_PATH=/scisoft/lib:$LD_LIBRARY_PATH
else
export LD_LIBRARY_PATH=/scisoft/lib
fi

#
# Add the main Scisoft manual pages to the manual page search path
#

if [ “X$MANPATH” != X ]; then
export MANPATH=/scisoft/man:$MANPATH
else
export MANPATH=/scisoft/man
fi

#
# Add the Scisoft X application defaults directory to XUSERFILESEARCHPATH.
#

if [ “X$XUSERFILESEARCHPATH” != X ]; then
export XUSERFILESEARCHPATH=/scisoft/lib/X11/app-defaults:$XUSERFILESEARCHPATH
else
export XUSERFILESEARCHPATH=/scisoft/lib/X11/app-defaults
fi

#
# IRAF related definitions
#

if [ -d /scisoft/share/iraf ]; then
# Note trailing slashes
export iraf=/scisoft/share/iraf/iraf/
export stsdas=/scisoft/share/iraf/extern/stsdas/
export tables=/scisoft/share/iraf/extern/tables/
if [ -f ${iraf}unix/hlib/irafuser.bash ]; then
. ${iraf}unix/hlib/irafuser.bash
# The above script sets F77, which is quite naughty of it;
# it can cause users’ own compiles of totally unrelated software
# to fail.
export F77_IRAF=$F77
unset F77
fi
export IRAFARCH=redhat

ulimit -s unlimited

fi

export PATH
unset USERNAME

至于其他系统请根据具体情况将Setup.bash的内容添加到登录配置文件中(大不了全复制过去,就相当于每次开机跑一遍:)。

标签:, , , .
porno film