| 172 | | |
| 173 | | |
| 174 | | |
| 175 | | |
| 176 | | |
| 177 | | |
| 178 | | |
| 179 | | |
| 180 | | |
| 181 | | |
| | 171 | =Alternate Installation/Testing= |
| | 172 | {{{ |
| | 173 | IRAF/PYRAF errors: |
| | 174 | |
| | 175 | (1) Testing the installed redhat binairies (instead of compiling): |
| | 176 | |
| | 177 | |
| | 178 | tv> display pat4.fits |
| | 179 | ERROR: Cannot open device (node!imtool,,512,512) |
| | 180 | |
| | 181 | |
| | 182 | cdelacruz@metis:~$ pyraf |
| | 183 | setting terminal type to ... |
| | 184 | xgterm ncols=80 nlines=40 |
| | 185 | |
| | 186 | NOAO PC-IRAF Revision 2.12.2a-EXPORT Wed Jul 14 20:45:34 MST 2004 |
| | 187 | This is the EXPORT version of PC-IRAF V2.12 supporting most PC systems. |
| | 188 | |
| | 189 | Welcome to IRAF. To list the available commands, type ? or ??. To get |
| | 190 | detailed information about a command, type `help command'. To run a |
| | 191 | command or load a package, type its name. Type `bye' to exit a |
| | 192 | package, or `logout' to get out of the CL. Type `news' to find out |
| | 193 | what is new in the version of the system you are using. The following |
| | 194 | commands or packages are currently defined: |
| | 195 | |
| | 196 | clpackage/: |
| | 197 | apropos images/ obsolete/ stsdas/ utilities/ |
| | 198 | clpackage/ language/ plot/ system/ |
| | 199 | dataio/ lists/ proto/ tables/ |
| | 200 | dbms/ noao/ softools/ user/ |
| | 201 | PyRAF 1.2 (2005Nov01) Copyright (c) 2002 AURA |
| | 202 | Python 2.4.2 Copyright (c) 2001-2005 Python Software Foundation. |
| | 203 | Python/CL command line wrapper |
| | 204 | .help describes executive commands |
| | 205 | --> images |
| | 206 | --> tv |
| | 207 | --> display pat4.fits |
| | 208 | |
| | 209 | PANIC in `/usr/local/iraf/iraf/bin.linux/x_tv.e': Memory has been corrupted |
| | 210 | Killing IRAF task `display' |
| | 211 | Traceback (innermost last): |
| | 212 | File "<CL script CL1>", line 1, in ? |
| | 213 | iraf.display('pat4.fits', _save=1) |
| | 214 | IrafError: Error running IRAF task display |
| | 215 | ('Not a legal IRAF pipe record', 32, 'Broken pipe') |
| | 216 | --> |
| | 217 | |
| | 218 | |
| | 219 | Issued the following command at prompt: |
| | 220 | |
| | 221 | |
| | 222 | limit stacksize unlimited (for csh) |
| | 223 | ulimit -s unlimited (for bash) |
| | 224 | |
| | 225 | |
| | 226 | --> display pat4.fits |
| | 227 | Killing IRAF task `display' |
| | 228 | Traceback (innermost last): |
| | 229 | File "<CL script CL1>", line 1, in ? |
| | 230 | iraf.display('pat4.fits', _save=1) |
| | 231 | IrafError: Error running IRAF task display |
| | 232 | IRAF task terminated abnormally |
| | 233 | ERROR (742, "Cannot open device (node!imtool,,512,512)") |
| | 234 | |
| | 235 | --> |
| | 236 | |
| | 237 | |
| | 238 | Solution was to install the ds9 binary, 4.0b8. As far as x11iraf is concerned, if needed, use the redhat binaries; run the install script but modify the directory names (redhat >>> linux). |
| | 239 | |
| | 240 | |
| | 241 | For Pyraf installation, downloaded all dependant packages from [http://www.stsci.edu/resources/software_hardware/pyraf/current/support_pyraf here]. |
| | 242 | |
| | 243 | libf2c.tar |
| | 244 | Numeric-23.8.tar |
| | 245 | Pmw.1.2.tar |
| | 246 | Python-2.3.4.tar |
| | 247 | readline-4.3.tar |
| | 248 | stsci_python_v2.2.tar |
| | 249 | tcl8.3.5-src.tar |
| | 250 | tk8.3.5-src.tar |
| | 251 | |
| | 252 | (1) created a directory under /usr/local/pyraf |
| | 253 | (2) Copied and extracted all packages to the pyraf directory |
| | 254 | (3) created a directory where all compiled binaries will be installed: |
| | 255 | /usr/local/pyraf/install |
| | 256 | (4) compile and install tcl: |
| | 257 | gunzip -d tcl8.3.5-src.tar.gz |
| | 258 | tar xvf tcl8.3.5-src.tar |
| | 259 | cd tcl8.3.5/unix |
| | 260 | ./configure --enable-shared --prefix=/usr/local/pyraf/install |
| | 261 | make |
| | 262 | make install |
| | 263 | |
| | 264 | (5) Compile and install Tk: |
| | 265 | gunzip -d tk8.3.5-src.tar.gz |
| | 266 | tar xvf tk8.3.5-src.tar |
| | 267 | cd tk8.3.5/unix |
| | 268 | ./configure --enable-shared --prefix=/usr/local/pyraf/install |
| | 269 | make |
| | 270 | make install |
| | 271 | |
| | 272 | (6) Install readline: |
| | 273 | gunzip -d readline-4.3.tar.gz |
| | 274 | tar xvf readline-4.3.tar |
| | 275 | cd readline-4.3 |
| | 276 | ./configure --prefix=/usr/local/pyraf/install |
| | 277 | make |
| | 278 | make install |
| | 279 | |
| | 280 | (7) Install Python |
| | 281 | gunzip -d Python-2.3.4.tar.gz |
| | 282 | tar xvf Python-2.3.4.tar |
| | 283 | cd Python-2.3.4 |
| | 284 | ./configure --prefix=/usr/local/pyraf/install |
| | 285 | edit /Python-2.3.4/Modules/Setup |
| | 286 | |
| | 287 | # *** Always uncomment this (leave the leading underscore in!): |
| | 288 | _tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \ |
| | 289 | # *** Uncomment and edit to reflect where your Tcl/Tk libraries are: |
| | 290 | -L/usr/local/pyraf/install/lib \ |
| | 291 | # *** Uncomment and edit to reflect where your Tcl/Tk headers are: |
| | 292 | -I/usr/local/pyraf/install/include \ |
| | 293 | # *** Uncomment and edit to reflect where your X11 header files are: |
| | 294 | -I/usr/X11R6/include \ |
| | 295 | # *** Or uncomment this for Solaris: |
| | 296 | # -I/usr/openwin/include \ |
| | 297 | # *** Uncomment and edit for Tix extension only: |
| | 298 | # -DWITH_TIX -ltix8.1.8.2 \ |
| | 299 | # *** Uncomment and edit for BLT extension only: |
| | 300 | # -DWITH_BLT -I/usr/local/blt/blt8.0-unoff/include -lBLT8.0 \ |
| | 301 | # *** Uncomment and edit for PIL (TkImaging) extension only: |
| | 302 | # (See http://www.pythonware.com/products/pil/ for more info) |
| | 303 | # -DWITH_PIL -I../Extensions/Imaging/libImaging tkImaging.c \ |
| | 304 | # *** Uncomment and edit for TOGL extension only: |
| | 305 | # -DWITH_TOGL togl.c \ |
| | 306 | # *** Uncomment and edit to reflect your Tcl/Tk versions: |
| | 307 | -ltk8.3.5 -ltcl8.3.5 \ |
| | 308 | # *** Uncomment and edit to reflect where your X11 libraries are: |
| | 309 | -L/usr/X11R6/lib \ |
| | 310 | # *** Or uncomment this for Solaris: |
| | 311 | # -L/usr/openwin/lib \ |
| | 312 | # *** Uncomment these for TOGL extension only: |
| | 313 | # -lGL -lGLU -lXext -lXmu \ |
| | 314 | # *** Uncomment for AIX: |
| | 315 | # -lld \ |
| | 316 | # *** Always uncomment this; X11 libraries to link with: |
| | 317 | -lX11 |
| | 318 | |
| | 319 | |
| | 320 | |
| | 321 | make |
| | 322 | make install |
| | 323 | |
| | 324 | (8) Install Numeric: |
| | 325 | gunzip -d Numeric-23.8.tar.gz |
| | 326 | tar xvf Numeric-23.8.tar |
| | 327 | cd Numeric-23.8 |
| | 328 | /usr/local/pyraf/install/bin/python setup.py install |
| | 329 | |
| | 330 | (9) Install Pmw |
| | 331 | gunzip -d Pmw.1.2.tar.gz |
| | 332 | tar xvf Pmw.1.2.tar |
| | 333 | cp -r /usr/local/pyraf/Pmw. . |
| | 334 | |
| | 335 | (10) Install libf2c: |
| | 336 | gunzip -d libf2c.tar.gz |
| | 337 | tar xvf libf2c.tar |
| | 338 | cd libf2c |
| | 339 | make -f makefile.u |
| | 340 | |
| | 341 | (11) Install Pyraf: |
| | 342 | gunzip -d stsci_python_v2.2.tar.gz |
| | 343 | tar xvf stsci_python_v2.2.tar |
| | 344 | cd stsci_python/ |
| | 345 | mkdir libf2c |
| | 346 | cp ../libf2c/f2c.h libf2c/ |
| | 347 | cp ../libf2c/libf2c.a libf2c/ |
| | 348 | cd /numarray-1.4.1 |
| | 349 | /usr/local/pyraf/install/bin/python setup.py install --with-f2c=/usr/local/pyraf/stsci_python/libf2c |
| | 350 | |
| | 351 | (12) Add path '/usr/local/pyraf/install/bin/python' to PATH. |
| | 352 | }}} |
| | 353 | |
| | 354 | |
| | 355 | |
| | 356 | |
| | 357 | |
| | 358 | |
| | 359 | |
| | 360 | |
| | 361 | |
| | 362 | |
| | 363 | }}} |
| | 364 | |
| | 365 | |
| | 366 | |
| | 367 | |
| | 368 | |
| | 369 | |
| | 370 | |
| | 371 | |
| | 372 | |
| | 373 | |
| | 374 | |