Iraf installation problems on Fedora Linux
Bimal wrote on Nov 29, 2007
./install-iraf: Permission denied
When I was doing the same procedure on Mandrake 10.1 it worked out all fine, but here on Fedora something is wrong?!
Can someone please help me?
Mike Fitzpatrick wrote on Nov 29, 2007
% chmod 755 ./install-iraf
% ./install-iraf-Mike
Bimal wrote on Nov 29, 2007
-bash: ./install-iraf: /bin/csh: bad interpreter: No such file or directory
What no?
Mike Fitzpatrick wrote on Nov 29, 2007
-Mike
Bimal wrote on Nov 29, 2007
Mike Fitzpatrick wrote on Nov 29, 2007
# rpm -i tcsh.rpmDo this as the 'root' user.
-Mike
Bimal wrote on Nov 29, 2007
Mike Fitzpatrick wrote on Nov 29, 2007
# yum install tcsh It will be installed from the net.
-Mike
Bimal wrote on Nov 29, 2007
# yum install tcsh
Now, the only problem is that after the installation I want to make it start. As a normal user I wanted to do "mkiraf" and I got the following answer:
Error: current directory is not an iraf user login directory
Normally "mkiraf" is done as a local user. I don't know why he wants me to be an iraf user?
Mike Fitzpatrick wrote on Nov 29, 2007
-Mike
Bimal wrote on Nov 29, 2007
Initialize uparm? (y|n): y
-- initializing uparm
Terminal types: xgterm,xterm,gterm,vt640,vt100,etc.
Enter terminal type: xgterm
A new LOGIN.CL file has been created in the current directory.
You may wish to review and edit this file to change the defaults.
After that I wanted it to start the program with "cl", and again some problems arised:
[Bimal@localhost ~]$ cl
/iraf/iraf/bin.redhat/cl.e: Permission denied.
Now, I really don't know what to do anymore?
Mike Fitzpatrick wrote on Nov 29, 2007
However, the error means that the CL binary doesn't have the proper permissions to be executed, I assume the same is true for the other binaries in the system as well. This may be retricting access to users other than 'iraf' or to all users, I can't tell. In any case, the following commands should fix it. Run these as either 'root' or 'iraf' if that's who owns the files:
% cd /iraf/iraf/bin.redhat ; chmod 755 *.e
% cd /iraf/iraf/noao/bin.redhat ; chmod 755 *.e
% cd /iraf/iraf/unix/bin.redhat ; chmod 755 *.e
Since you're able to at least see the file I'm assuming there aren't any intervening path permission problems.
Cheers,
-Mike
Bimal wrote on Nov 29, 2007
Do you know how to install ds9 since here on fedora 8 seems to be no ds9 viewer, since I got the message:
cl> !ds9&
ds9: Command not found.
[1] 3491
[1] Exit 1 ds9
Normally in my previous linux distribution this was already included in the basic package.
Cheers, Bimal
Mike Fitzpatrick wrote on Nov 29, 2007
Note that starting with something explicit like 'cl> !/usr/local/bin/ds9 &' will also work.
Cheers,
-Mike
Bimal wrote on Nov 29, 2007
I was trying as you proposed:
cl> !/iraf/x11iraf/bin/ds9 &
[1] 6020
cl> /iraf/x11iraf/bin/ds9: Permission denied.
So, it looks like there is some other problem maybe?
Mike Fitzpatrick wrote on Nov 29, 2007
% chmod 755 /iraf/x11iraf/bin/ds9-Mike
Bimal wrote on Nov 29, 2007
cl> !/iraf/x11iraf/bin/ds9&
[1] 3223
cl> ds9: dynamic-link.h:62: elf_get_dynamic_info: Assertion `! "bad dynamic tag"' failed.
Mike Fitzpatrick wrote on Nov 29, 2007
You might also try the unix command "ldd /path/ds9" to see if it complains about any missing shared library versions.
-Mike
Bimal wrote on Nov 29, 2007
Thank you very much for your help. I have downloaded a new DS9 and now it is working. Now I have started making stellar spectra analysis in IRAF. First I change the *.fts files to *.imh files so that they are ready for working with APALL. I do this with:
cl> rfits ima0001.fts * ima0001.imh
PANIC in `/iraf/iraf/bin.redhat/x_dataio.e': Memory has been corrupted
cl>
As you can see I get the message, that memory has been corrupted. Consequently the *.imh file is useless and I can't work with it in APALL. Do you have any idea what is the problem?
Mike Fitzpatrick wrote on Nov 29, 2007
Let me know if you still have problems. Note that you don't need to explicitly convert to IMH format images, IRAF can operate on the FITS files directly. You can reset your 'imtype' variable in your login.cl file to create output FITS image by default by setting it to 'fits' and logging back in.
-Mike
Bimal wrote on Nov 29, 2007
I was trying to display the .imh file on ds9 and look what I got:
cl> display ima0001.imh
frame to be written into (1:4) (1): 1
PANIC in `/iraf/iraf/bin.redhat/x_tv.e': Memory has been corrupted
cl>
Another problem arised was when I was running apall after setting the parameters in epar apall,
ec> apall
List of input images (ima0001.imh):
Find apertures for ima0001? (yes):
Number of apertures to be found automatically (27):
PANIC in `/iraf/iraf/noao/bin.redhat/x_apextract.e': Memory has been corrupted
ec>
Mike Fitzpatrick wrote on Nov 29, 2007
[code]% limit stacksize unlimited # for C-shell
or
% ulimit -s unlimited # if you use Bash
[code]
You can put this command in your .cshrc file or .profile/.bashrc to make it permanent. The 'cl' command should do this automatically as well, however it depends on the IRAF version you're using.
-Mike
Bimal wrote on Nov 29, 2007
apall
List of input images (ima0001.imh):
Find apertures for ima0001? (yes): y
Number of apertures to be found automatically (27): y
Resize apertures for ima0001? (yes): y
Edit apertures for ima0001? (yes): y
server # XGTERM.GUI -- Default GUI for Xgterm, providing a standard graphics terminal
# emulation.
reset-server
appInitialize xgterm Xgterm {
Xgterm.objects: toplevel Gterm gterm
*allowShellResize: true
*gterm.warpCursor: true
*gterm.raiseWindow: true
*gterm.deiconifyWindow: true
}
createObjects
send gterm setGterm
activate
sre[]ssz[R]
Under that a long list of strange characters appear.
Mike Fitzpatrick wrote on Nov 29, 2007
-Mike
Bimal wrote on Nov 29, 2007
Mike Fitzpatrick wrote on Nov 29, 2007
-Mike
Bimal wrote on Nov 29, 2007
setting terminal type to xgterm...
timeout - terminal type set wrong? (`stty termtype' to reset)
NOAO PC-IRAF Revision 2.11.3 EXPORT Tue Oct 26 21:01:12 MST 1999
This is the EXPORT version of PC-IRAF V2.11 supporting most PC systems.
Welcome to IRAF. To list the available commands, type ? or ??. To get
detailed information about a command, type `help command'. To run a
command or load a package, type its name. Type `bye' to exit a
package, or `logout' to get out of the CL. Type `news' to find out
what is new in the version of the system you are using. The following
commands or packages are currently defined:
apropos guiapps. lists. plot. stsdas. utilities.
dataio. images. noao. proto. system.
dbms. language. obsolete. softools. tables.
cl>
So I typed:
cl> stty termtype
Warning: No entry in device capabilities file for device (termtype)
cl>
I am running IRAF V 2.11.
Mike Fitzpatrick wrote on Nov 29, 2007
The value 'termtype' is not valid, use 'xgterm' if you are indeed running an XGTerm window.
-Mike
Bimal wrote on Nov 29, 2007
Mike Fitzpatrick wrote on Nov 29, 2007
-Mike
Bimal wrote on Nov 29, 2007
Mike Fitzpatrick wrote on Nov 29, 2007
% xgterm Log into the CL from the window that pops up.
-Mike
Bimal wrote on Nov 29, 2007
/iraf/x11iraf/bin/xgterm
Now it is finally working. Thank you Mike.
So, how do I make it to run without typing all this long path? I have to go to my .bashrc? Where do I find this .bashrc?
Mike Fitzpatrick wrote on Nov 29, 2007
-Mike
Bimal wrote on Nov 29, 2007
Thank you again for everything!
Bimal
Last post on Nov 29, 2007