View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

set evironment

Arthit Laphirattanakul wrote on Aug 04, 2006

I am installing iraf v2.12 in my labtop, using RedHat9.0.
Core iraf and BIN files are extracted at /home/iraf/iraf and
/home/iraf/irafbin follow in PC-IRAF installation guide. Next, I try to
run the install script. I cannot use 'setenv iraf /home/iraf/iraf/' but
can use 'setenv iraf /home/'. I don't know it's cause cannot run
'./install -n' with iraf account later. can you help me why and how is it.
Thank you. :wink:

pweilbacher wrote on Aug 04, 2006

Why can you not "setenv iraf /home/iraf/iraf/"? I have done that on some systems in the past and it always worked well. What are the error messages that you get?

Arthit Laphirattanakul wrote on Aug 04, 2006

dear pweilbacher,

[img:27b91c559b]http://physics.science.cmu.ac.th/install01.jpg[/img:27b91c559b]

Arthit Laphirattanakul wrote on Aug 04, 2006

if I use 'setenv iraf /home/', I can run './install -n' but cannot enter iraf root directory later.

pweilbacher wrote on Aug 04, 2006

The iraf directory tree set by your environment variable, $iraf
is not generally readable. This will prevent most users from
being able to read iraf files, especially the binaries!

Please reset the permissions on the tree and try again...

That means that you did not give all users on the system the possiblity to access the iraf directory tree. You need to use "chmod" to change permissions, possibly of all directories and files in the tree. Or you remove the tree, change the default permission mask with "umask", and unpack again. "chmod" could be used like this
find /home/iraf/ -type d -exec chmod ug+rx {} \;
find /home/iraf/ -type f -exec chmod ug+r {} \;
find /home/iraf/ -type f -name "*.e" -exec chmod ug+rx {} \;
Working around the problem by setting $iraf to a wrong path initially will probably not succeed.

Arthit Laphirattanakul wrote on Aug 04, 2006

Thanks you for your kind, pweilbacher. I already install it complete.

Last post on Aug 04, 2006