IRAF: iraf_step_by_step_installation

File iraf_step_by_step_installation, 3.9 KB (added by rubab@…, 19 years ago)

Installation of IRAF along with X11IRAF, DS9, Tables, and STSDAS on 32-bit Ubuntu/Debian

Line 
1
2= IRAF Setup on Ubuntu/Debian =
3
4This page describes how to setup IRAF on a 32-bit Ubuntu/Debian machine.
5Installation of X11IRAF, DS9, Tables, and STSDAS are also included.
6
7It will be easiest if you just copy-paste the instructions one by one.
8Please be sure to read and implement the instructions in [[brackets]] as well.
9
10(For 64-bit installation, use
11 http://geco.phys.columbia.edu/~rubab/iraf/iraf-64-bit_step_by_step_installation )
12
13Please send questions or comments to:
14rubab@astro.columbia.edu
15
16--------------------------------------------------------------------------------------------------------------------------------
17
18sudo apt-get install tcsh
19
20wget http://geco.phys.columbia.edu/~rubab/iraf/ldso_1.9.11-15_i386.deb
21
22sudo dpkg -i ldso_1.9.11-15_i386.deb
23
24wget http://geco.phys.columbia.edu/~rubab/iraf/libc5_5.4.46-15_i386.deb
25
26sudo dpkg -i libc5_5.4.46-15_i386.deb
27
28wget http://geco.phys.columbia.edu/~rubab/iraf/termcap-compat_1.2.3_i386.deb
29
30sudo dpkg -i termcap-compat_1.2.3_i386.deb
31
32[[Use System>Administration>Users and Groups to create an account with username "iraf",
33real name "IRAF Maintenance", home directory "/iraf/iraf/local", shell "/bin/tcsh",
34and a secure password. For sudo commands here on, use this password.]]
35
36sudo chown -R iraf:iraf /iraf
37
38su iraf
39
40mkdir /iraf/irafbin
41
42mkdir /iraf/irafbin/bin.linux
43
44mkdir /iraf/irafbin/noao.bin.linux
45
46mkdir /iraf/x11iraf
47
48mkdir /iraf/extern
49
50cd /iraf/iraf
51
52wget http://iraf.net/ftp/iraf/V2.13-BETA/as.pcix.gen.gz
53
54tar -zxf as.pcix.gen.gz
55
56rm as.pcix.gen.gz
57
58cd /iraf/iraf/unix/bin.redhat/
59
60mv * ../bin.linux/
61
62cd /iraf/irafbin/bin.linux
63
64wget http://iraf.net/ftp/iraf/V2.13-BETA/ib.rhux.x86.gz
65
66tar -zxpf ib.rhux.x86.gz
67
68rm ib.rhux.x86.gz
69
70cd /iraf/irafbin/noao.bin.linux
71
72wget http://iraf.net/ftp/iraf/V2.13-BETA/nb.rhux.x86.gz
73
74tar -zxpf nb.rhux.x86.gz
75
76rm nb.rhux.x86.gz
77
78setenv iraf /iraf/iraf/
79
80cd $iraf/unix/hlib
81
82source irafuser.csh
83
84[[Choose default paths as will be shown in on-screen prompt parentheses.
85Type "y" only where "yes" returns "huh?".]]
86
87sudo ./install
88
89sudo apt-get install libncurses4
90
91cd /iraf/x11iraf/
92
93wget http://iraf.noao.edu/iraf/ftp/iraf/x11iraf/x11iraf-v1.3.1-bin.redhat.tar.gz
94
95tar -zxf x11iraf-v1.3.1-bin.redhat.tar.gz
96
97mv lib.redhat lib.linux
98
99mv bin.redhat bin.linux
100
101sudo ./install
102
103rm x11iraf-v1.3.1-bin.redhat.tar.gz
104
105wget http://hea-www.harvard.edu/saord/download/ds9/linux/ds9.linux.5.0.tar.gz
106
107tar -zxf ds9.linux.5.0.tar.gz
108
109rm ds9.linux.5.0.tar.gz
110
111sudo mv ds9 /usr/local/bin/
112
113cd /iraf/extern/
114
115mkdir tables stsdas
116
117cd /iraf/extern/tables/
118
119wget ftp://ftp.stsci.edu/pub/software/stsdas/tables_v3.7/source/tables37.tar.gz
120
121tar -zxf tables37.tar.gz
122
123rm tables37.tar.gz
124
125cd bin.linux/
126
127wget ftp://ftp.stsci.edu/pub/software/stsdas/tables_v3.7/binaries/tables37.bin.redhat.tar.gz
128
129tar -zxf tables37.bin.redhat.tar.gz
130
131rm tables37.bin.redhat.tar.gz
132
133cd /iraf/extern/stsdas
134
135wget ftp://ftp.stsci.edu/pub/software/stsdas/stsdas_v3.7/source/stsdas37.tar.gz
136
137tar -zxf stsdas37.tar.gz
138
139rm stsdas37.tar.gz
140
141cd bin.linux
142
143wget ftp://ftp.stsci.edu/pub/software/stsdas/stsdas_v3.7/binaries/stsdas37.bin.redhat.tar.gz
144
145tar -zxf stsdas37.bin.redhat.tar.gz
146
147rm stsdas37.bin.redhat.tar.gz
148
149cd /iraf/extern/stsdas
150
151python python/compileall.py ./python
152
153python python/compileall.py ./python/*
154
155exit
156
157cd
158
159wget http://geco.phys.columbia.edu/~rubab/iraf/iraf
160
161sudo chmod u=rwx iraf
162
163mkdir ~/IRAF
164
165cd ~/IRAF
166
167mkiraf
168
169[[Select "xgterm" as your IRAF shell when prompted.]]
170
171-----------------------------------------------------------------------------------------------------------------------------------------------
172
173The command ./iraf will now launch a complete IRAF session containing DS9,
174xgterm and ecl, based in ~/IRAF. Alternately, type "ecl" for enhanced IRAF, "cl"
175for regular IRAF, and "ds9" for standalone DS9 launch. Please note that "tables"
176and "stsdas" can only be used within IRAF.
177
178Repeat the last 5 steps for each user as needed.
179
180= END =
181