View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

Problem installing Tables under Fedora 9

thr3shold wrote on Dec 09, 2008

I am trying to install Tables under Fedora 9. I got IRAF running OK using http://student.dcu.ie/~reynols7/iraf.html
When I tried installing the tables package following the directions in http://stsdas.stsci.edu/download/stsdas_3.9/stsdas_install_guide_39.pdf
and I got to the portion where it instructs you to issue the command mkpkg redhat I get the following error message:
Warning, hlib@mkpkg.inc line 5: macro 'IRAFARCH' not found /bin/bash: host//mkfloat.csh: No such file or directory

if I try and run IRAF and then tables I get a message saying 'tables' has no param file. Any ideas?

Mike Fitzpatrick wrote on Dec 09, 2008

Compiling anything in IRAF requires that you define certain environment variables appropriate for your system e.g.


setenv iraf /iraf/iraf/                        <-- trailing '/' required
setenv IRAFARCH redhat
source $iraf/unix/hlib/irafuser.csh


In general, these (or the Bash equivalents) should be put in your .cshrc file (or .bashrc/.profile) so they can be used if you invoke MKPKG from within the CL.

For compiling external packages, there is also the assumption that the 'tables' package variable has been defined in the hlib$extern.pkg file or as an environment variable (in both cases, with a trailing '/'). Compiling external packages also requires the '-p' flag to load a specific package environment, e.g.

mkpkg -p tables


to do the compilation. Pre-built binaries are available for most popular systems as well.

-Mike

thr3shold wrote on Dec 09, 2008

Executing mkpkg tables return the error
Warning, mkpkg line 188: could not find mkpkg module or label 'tables'
Warning, mkpkg line 188: no entry in mkpkg file for 'tables'
I've edited extern.pkg and .cshrc as you suggested. Any other help with this?

Mike Fitzpatrick wrote on Dec 09, 2008

Executing mkpkg tables return the error


The command is "mkpkg -p tables" not "mkpkg tables". The first uses the '-p' flag to name 'tables' as the package environment, the second command tells mkpkg to execute the 'tables' directive in the mkpkg file (which doesn't exist).

-Mike

thr3shold wrote on Dec 09, 2008

mkpkg -p tables produces nothing but pages and pages of errors, gongi into IRAF then trying to run tables produces the error
ERROR:Task 'tables' has no param file.

Mike Fitzpatrick wrote on Dec 09, 2008

Sounds like the package isn't (properly) declared in the hlib$extern.pkg file, e.g.


setenv tables     /iraf/extern/tables/          <-- trailiing '/' required
task tables = tables$tables.cl


Note that the last line in the file must be 'keep', a missing trailing '/' would also account for the problem.

Last post on Dec 09, 2008