View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

Cywin problem with setenv /iraf/iraf

Tom Kaye wrote on Apr 03, 2008

Hello,

I am Unix illiterate and trying to install IRAF under cygwin. My subdirectories are listed under c:/iraf/iraf under windows and in cygwin i can get to them with this command.
cd c:/iraf/iraf

after execution the cursor displays:
/cygdrive/c/iraf/iraf

When i set the environment with the standard command:
sentenv iraf /iraf/iraf
it accepts the command

cd $iraf/
comes up as a non-existant directory

the command:
setenv iraf /cygdrive/c/iraf/iraf
will then work properly with
cd $iraf/

when I check using the ./ install program, it says the directory is 'non-standard' and users will not be able to find it. What do I need to do in order for this to work right?

thanks!!

Tom Kaye

Mike Fitzpatrick wrote on Apr 03, 2008

Hi Tom,

I'm confused. If you were using the DOS 'Command Prompt' then the 'setenv' command should fail, but if you were using a Cygwin shell prompt then the 'cd c:/iraf/iraf' should fail because of the 'c:' directive. Is this an
XP (or earlier system) or a (untested) Vista machine with Cygwin?

Normally the 'iraf' path specified should end with a '/' but if /cygdrive vs /iraf works then go with it. What exactly is the error message when you run install and get the "non-standard" message? Is it a complaint about permissions or the directory structure? If the latter you may have unpacked the files in the wrong place, or it could be an error in $iraf.

Any additional information you can provide would help.

Cheers,
-Mike

Tom Kaye wrote on Apr 03, 2008

Hi Mike,

Thanks for the response. I am the amateur working on extrasolar planet RV, we met at NOAO several years back. I now live in Sierra Vista and will say hi when I visit Mark Trueblood.

All the commands were under cygwin. this is an XP machine with cygwin and i added the tsch and X11 packages.

here is the error word for word.
'ERROR invalid $iraf value <$iraf/iraf>
The iraf directory tree set your environment variable, $iraf is not generally readable. This will prevent most users from being able to read the iraf files, especially the binaries!
Please reset the permissions on the tree and try again....'

I am assuming there is no DOS prompt once you launch cygwin right? We really need an IRAF for Dummies with keystroke-by-keystroke instructions. Instructions ont he net like "launch DS9" are not helpful for us on the outside.

If you can't help me here maybe there is a shortcut to getting my problem solved. I have IRAF running under redhat that works fine for all the RV packages. when i go to noao and try and run daophot it says "task daophot has no param file". I get the same with "epar daophot".

All i am trying to do is get a working version of that program.

Thanks!!

Tom Kaye

Mike Fitzpatrick wrote on Apr 03, 2008

Thanks for the response. I am the amateur working on extrasolar planet RV, we met at NOAO several years back. I now live in Sierra Vista and will say hi when I visit Mark Trueblood.


I thought the name looked familiar, welcome to iraf.net.

All the commands were under cygwin. this is an XP machine with cygwin and i added the tsch and X11 packages.

here is the error word for word.
'ERROR invalid $iraf value <$iraf/iraf>
....'


This implies the value you set for $iraf is wrong, or else you have one too many/few 'iraf' directories in your tree. Since cygwin is a single user system you shouldn't have any problems writing to the root directory of the cygwin tree. So, assuming you create a "/iraf" directory, the tree and the places where you unpack the files should be:


  
                            /iraf
                            /   \
                  (AS) /iraf   /irafbin
                                 /    \
                    (IB) bin.cygwin  noao.bin.cygwin (NB)


The AS, IB, and NB files are shown where the distribution files should be unpacked. Note that the top-level /iraf can be a link to anywhere on your system, but for this system having a root directory is fine. In this case the "iraf root" directory given to the install script is /iraf/iraf and *not* just /iraf.

I am assuming there is no DOS prompt once you launch cygwin right? We really need an IRAF for Dummies with keystroke-by-keystroke instructions. Instructions ont he net like "launch DS9" are not helpful for us on the outside.


No DOS prompt unless you run a 'Command Prompt' window instead of the Cygwin shell. You'll need to install tcsh and X11 separately from the default Cygwin install but it sounds like you already have that. Google 'iraf tutorial' or 'iraf cygwin' and you'll find some docs on the net, I haven't had time to properly collect these for the site (and certainly don't have time to re-write them from scratch).

[quote]If you can't help me here maybe there is a shortcut to getting my problem solved. I have IRAF running under redhat that works fine for all the RV packages. when i go to noao and try and run daophot it says "task daophot has no param file". I get the same with "epar daophot".[/quote[

This again points to a problem in the directory structure or value of $iraf (since NOAO is defined to be in $iraf/noao). Check your installation against the tree above and let me know if you still have problems.

Cheers,
-Mike

Last post on Apr 03, 2008