IRAF 安装 for Ubuntu 10.04
来源:互联网 发布:谷歌语音识别python 编辑:程序博客网 时间:2024/05/16 18:23
按照这个步骤,基本上能装好,只是DS9的wget地址有点问题,需要注意:
wget http://hea-www.harvard.edu/saord/ds9/archive/linux/ds9.linux.6.2.tar.gz
开始转发的安装版本,也能成功,不过好像没有装X11和DS9
IRAF 安装 for Ubuntu 10.04
|||
IRAF
The version of iraf that we will install is v214. This one, unlike version v212 comes with the ecl terminal which allows autocompletion and using the up key to check previous commands.
Okay, so, to begin with, we will install the tcsh package (that's in the universe repository)
Code:
sudo apt-get install tcsh
Code:
mkdir ~/irafcd ~/iraf
- as.pcix.gen.gz, the architecture independent files
- ib.lnux.x86.gz, the linux dependent base files
- nb.lnux.x86.gz, the linux dependent noao files
Code:
wget http://iraf.noao.edu/iraf/ftp/iraf/v214/PCIX/as.pcix.gen.gzwget http://iraf.noao.edu/iraf/ftp/iraf/v214/PCIX/ib.lnux.x86.gzwget http://iraf.noao.edu/iraf/ftp/iraf/v214/PCIX/nb.lnux.x86.gz
Code:
sudo mkdir -p /iraf/{irafbin/{bin.linux,noao.bin.linux},iraf/local}
Code:
sudo adduser iraf --home /iraf/iraf/local --shell /bin/csh --ingroup admin
Code:
sudo mv ~/iraf/* /iraf/irafsudo chown iraf -R /iraf
Code:
su iraf
Code:
cd ~/irafwget http://hea-www.harvard.edu/saord/download/ds9/linux/ds9.linux.5.6.tar.gztar -zxf ds9.linux.5.6.tar.gzsudo mv ds9 /usr/local/binsudo chmod +x /usr/local/bin/ds9
此时可能对不同的版本修改linux.5.6
And we remove the unneccesary files:
Code:
rm /iraf/iraf/as.pcix.gen.gzrm /iraf/iraf/ib.lnux.x86.gzrm /iraf/iraf/nb.lnux.x86.gz
Code:
setenv iraf /iraf/irafcd $iraf/unix/hlib/source irafuser.csh
Code:
sudo ./install -n
Code:不进行网络设置就不会有此提示。
Checking that iraf networking is properly enabled ... os.zgtenv:
cannot open ‘/usr/include/iraf.h’
[ FAIL ]
*** The NETSTATUS task claims that networking is disabled.
*** Please contact site support (iraf@noao.edu) with questions
*** or check the Site Manager’s Guide for details on how to
*** properly configure networking.
cannot open ‘/usr/include/iraf.h’
[ FAIL ]
*** The NETSTATUS task claims that networking is disabled.
*** Please contact site support (iraf@noao.edu) with questions
*** or check the Site Manager’s Guide for details on how to
*** properly configure networking.
To solve this simply say no at this point.在询问是否进行网络设置的时候,建议输入 n 后回车
If the installation test went fine, you can install everything by omitting the -n argument:
Code:
sudo ./install
Code:
exit
Next we install x11iraf which is needed for irafs graphical support. The version to be installed is 1.3.1, but this could be replaced for a newer one with no problem only by changing the download.
We download x11iraf files to our downloads folder:
Code:
cd ~/irafwget http://iraf.noao.edu/iraf/ftp/iraf/x11iraf/x11iraf-v1.3.1/x11iraf-v1.3.1-bin.linux.tar.gz
Code:
cat x11iraf-v1.3.1-bin.linux.tar.gz | gunzip | tar -xf -sudo ./install
The proccess is simple, download the file, extract it, and copy and give write permission to the binary. We install with this version 5.6 of ds9, but just as in the other steps, this can easily be updated by changing the download address:
Code:
cd ~/irafwget http://hea-www.harvard.edu/saord/download/ds9/linux/ds9.linux.5.6.tar.gz
tar -zxf ds9.linux.5.6.tar.gzsudo mv ds9 /usr/local/binsudo chmod +x /usr/local/bin/ds9
For convenience, we will make a start-up script (created by michael hutchinson http://mjhutchinson.com/) that will open an xgterm with an ecl promt and ds9. We use gedit or this, but any text editor (for example kate in kde or vim) could be used:
Code:
sudo gedit /usr/local/bin/irafshell
Code:
#!/bin/bashPID=`pidof ds9`if [ ! $PID ]; thends9 &fipushd ~/iraf > /dev/nullxgterm -iconic -geometry 80x24 -sb -title "IRAF" -bg "black" -fg "green" -e "ecl" &popd > /dev/null
Then, add execution permission to the script:
Code:
sudo chmod +x /usr/local/bin/irafshell
Running iraf
First, I clean the ~/iraf folder (THIS COMMAND WILL DELETE EVERYTHING ON THE FOLDER):
Code:
rm -rf ~/iraf/*
Code:
cd ~/irafmkirafirafshell
Code:
wget ftp://iraf.noao.edu/pub/xgterm.fedorasudo mv xgterm.fedora /usr/local/bin/xgtermsudo chmod +x /usr/local/bin/xgterm
Icon!
This is a suggestion made by Elias Pizarro. You can download the iraf icon and use it to show an iraf icon in your application list wich will execute the irafshell script. First, download the iraf icon:
Code:
cd /usr/share/pixmaps/sudo wget http://iraf.noao.edu/iraf/web/images/iraf.gif
Code:
gedit ~/.local/share/applications/iraf.desktop
Code:
[Desktop Entry]Encoding=UTF-8Version=1.0Terminal=falseType=ApplicationCategories=Application;Office;Astronomy;Exec=irafshellName=IRAFComment=Image reduction and analysis facilityIcon=/usr/share/pixmaps/iraf.gif
References: www.ubuntuforums.org/showthread.php?t=912583
承蒙协助,谨致谢忱!
2010-08-04于河北兴隆
http://blog.sciencenet.cn/home.php?mod=space&uid=287062&do=blog&id=349790
- IRAF 安装 for Ubuntu 10.04
- Ubuntu 下安装IRAF
- Ubuntu 14.04 安装IRAF, PyRAF
- IRAF安装
- IRAF 2.15 安装笔记
- IRAF Setup on Ubuntu/Debian
- ubuntu 10.04下安装 QQ for Linux
- OpenCV 安装 for Ubuntu
- docker for ubuntu安装
- 网络电视软件sopcast安装 for ubuntu
- Dropbox for ubuntu无法安装
- Ubuntu 安装极点五笔 for ibus
- Ubuntu 安装极点五笔 for ibus
- flashplayer for ubuntu命令安装
- Ubuntu 安装极点五笔 for ibus
- Ubuntu安装WPS For Linux
- Ubuntu Navicat for MySQL安装:
- Chrome for Ubuntu 安装试用
- java.io.IOException: Server returned HTTP response code: 500 for URL
- ASP.NET 服务器控件渲染到客户端之后对应的HTML标签
- Uploading audio, video or image files from Android to php server.
- TabHost使用(一)
- 将注入进行到底--------远程线程实现 Dll 注入 汇编实现
- IRAF 安装 for Ubuntu 10.04
- js 的拖拉效果
- LookupPrivilegeValue
- 有关ucenter通讯失败的问题
- eclipse 的jetty配置jndi数据源
- 4大国外自由职业者项目外包网站
- 设置datetimepicket的时间为当天日期+当前时间,当天日期+“00:00:00”的格式,选择的日期+“23:59:59”的格式
- 将汉字转换成汉语拼音的工具代码
- 国外最流行的几个外包接活平台简要介绍