Welcome to iraf.net Saturday, May 11 2024 @ 07:08 PM GMT


 Forum Index > Help Desk > Systems New Topic Post Reply
 Fedora 10 & xgterm
   
tschonis
 05/04/2009 05:13AM (Read 9887 times)  
+----
Newbie

Status: offline


Registered: 05/03/2009
Posts: 5
Hi,I am VERY new to IRAF installs. I managed to fight my way through most of it today and a "cl" in the normal terminal in Fedora Core 10 64 bit brings up IRAF and I can edit parameter files and such. I have no graphics in this terminal obviously, so I tried to install x11iraf in order to use ds9 and after this, I cannot bring up an xgterm. I get the error:[code:1:db1593625c]
xgterm: error while loading shared libraries: libXmu.so.6: cannot open shared object file: No such file or directory[/code:1:db1593625c]Now I have seen several threads where this is discussed (https://iraf.net/phpBB2/viewtopic.php?t=88398&sid=bb2af90652b9729cd01441e9fe81ec2d and https://iraf.net/phpBB2/viewtopic.php?p=145265), but I cant figure out what is meant by "manually installing" the xgterm.LNUX.STATIC file. Im not that good with linux either, so any help would be appreciated.Thanks alot!Taylor

 
Profile Email Website
 Quote
fitz
 05/04/2009 05:13AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
"Manually installing" means to download the specified file to your local machine. You'll probably want to rename it simply 'xgterm', the just move it to someplace like /usr/local/bin or else replace the xgterm binary you have and rerun the install script. Note that DS9 is not part of x11iraf, you'll need to get that separately from SAO.-Mike

 
Profile Email
 Quote
tschonis
 05/04/2009 05:13AM  
+----
Newbie

Status: offline


Registered: 05/03/2009
Posts: 5
Hi Mike,Thanks alot for the quick reply!OK. I downloaded it and renamed it "xgterm" and it is in my /usr/local/bin/ directory where my other xgterm file was. I kept the old one and renamed it xgtermOLD. If I type xgterm in my terminal, I now get a message that doesnt complain about shared libraries, it just says "permission denied" even when logged in as root and even after changing the files permissions to include all of everybody. Now you do mention "rerunning the install script". By this, I am guessing that you mean rerun the x11iraf script, right?I know that ds9 is not part of x11iraf and I have it on my computer for viewing FITS files already. But if I want to use the imexam command and plot radial profiles or line profiles, etc., I need x11iraf installed and running in an xgterm, right?Thanks and sorry if these are newbie questions. Gotta learn sometime, right?Thanks alot for your help,
Taylor

 
Profile Email Website
 Quote
fitz
 05/04/2009 05:13AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
[quote:4f7780ec8f]it just says "permission denied" even when logged in as root and even after changing the files permissions to include all of everybody. Now you do mention "rerunning the install script". By this, I am guessing that you mean rerun the x11iraf script, right? [/quote:4f7780ec8f]Be sure the file has execute permissions, e.g. % chmod 755 /usr/local/bin/xgtermA "which xgterm" will tell you the path to the command it's trying to execute, sometimes having a file/directory called 'xgterm' in your current path can be a problem. Yes, by 'install script' I meant the x11iraf script.XGterm is just one graphics terminal, the Xterm that comes with the system can also be used but won't be as pretty. Just do a MKIRAF and when asked for the terminal type respond with 'xtermjh" (produces a nice status line) rather than 'xgterm'. Be sure you're actually running an XTerm window however, any kind of garbage on the screen means your terminal window isn't what you told IRAF it was.-Mike

 
Profile Email
 Quote
tschonis
 05/04/2009 05:13AM  
+----
Newbie

Status: offline


Registered: 05/03/2009
Posts: 5
Alright, well xgterm now works. I redid the install script for x11iraf and that basically just overwrote the xgterm file i just renamed. So I downloaded again and replaced again, xgterm works. I cl in xgterm after doing another mkiraf and specifying xgterm as the terminal type. Everything seems fine until I try to display an image. I get some error "Cannon open device (node!imtool,,512,512)". I see that this is in the FAQ, but none of the solutions make much sense to me as the most likely one is the bad install, but I did install iraf and x11iraf as root. I try ximtool and I get the same shared libraries error as before (likely because of 64 bit OS). Yes, ds9 was open when I ran the display command and I am using the most recent version of ds9.I really dont know what to do. This is so frustrating. Thanks.Taylor

 
Profile Email Website
 Quote
fitz
 05/04/2009 05:13AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
I've uploaded a similar 'ximtool.LNUX.STATIC' binary to https://iraf.net/ftp/pub that should avoid the library complaints, install the same as you did for xgterm. The 'cannot open device' message means IRAF couldn't find a display server. DS9 should open the same fifo/sockets but it must be running before you try to display. Anyway, let me know if you have problems with the static ximtool, I haven't really tested it on a 64-bit system.-Mike

 
Profile Email
 Quote
tschonis
 05/04/2009 05:13AM  
+----
Newbie

Status: offline


Registered: 05/03/2009
Posts: 5
Hi Mike,So I solved the cannot open device by doing an "lo" and then "cl" again once ds9 was reopened. I have downloaded and added the static ximtool to my /usr/local/bin folder and it seems to open up just fine. Now here is the issue: both ds9 and ximtool will respond to a "display" command from iraf running in the xgterm. BUT, the image in both appears as a smaller version of the actual image: the image that is displayed appears to be the center 1/3 or 1/4 of the image I am calling up. Zooming out shows that this is in fact the image at full resolution but cropped down to a smaller size. Once again, both ds9 and ximtool do this same thing. Note that if I open an image directly from either ximtool's or ds9's menus, the images are displayed normally. The other problem is that imexam works in ximtool but not in ds9. But, when adjusting the display in ximtool, it only adjusts some small section of the image.When opening ximtool from the terminal, there are lots of warnings in the terminal window it was opened from saying something to the effect of "Warning: cannot convert string "..." " and the ... is filled by some text that appears to be names of fonts. I get no errors or warnings when opening ds9 from the terminal. This is very peculiar. Am I having these problems because I am running 64 bit Fedora 10? I have seen comments from others in other forum threads that talk about iraf running fine once they use your statically linked executables. Thanks for your help.Taylor

 
Profile Email Website
 Quote
fitz
 05/04/2009 05:13AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
The default frame buffer size is 512x512 and probably what you are using. The size is controlled by the value of the 'stdimage' environment variable set in your login.cl file (uncomment it to change the value). The GDEVICES command will print a list of available frame buffers, you can also change it on the command line with something like[code:1:aff682aefd]
cl> reset stdimage = imt2048[/code:1:aff682aefd]As for the complaints about the fonts, this may mean that either you don't have a complete installation of the X11 stuff, or more likely that you don't have an XFILESEARCHPATH unix environment variable set to find the font directories. Try using[code]setenv XFILESEARCHPATH "/usr/lib/X11/%T/%N%S:/usr/x11R6/lib/X11/%T/%N%S:/usr/local/lib/%T/%N%S"[code]
-Mike

 
Profile Email
 Quote
tschonis
 05/04/2009 05:13AM  
+----
Newbie

Status: offline


Registered: 05/03/2009
Posts: 5
Hi Mike,You were right on the login.cl file standard image size. Mine was set to 800 for some reason. So now I can see my whole image. Ximtool is till acting a bit funny, but it works. The setenv command for fixing the font warnings did not work however. Interesting that not all the X11 stuff would be installed. I havent done anything custom to my Fedora10 install, so whatever is installed is whatever the Fedora 10 OS installs by default.Any idea why imexam wont work with ds9 but does on ximtool?As far as I can tell, IRAF is operating normally other than these graphics issues.Thanks.Taylor

 
Profile Email Website
 Quote
fitz
 05/04/2009 05:13AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
What do you mean by ximtool acting 'funny'?? I don't know what might be the problem with DS9, I just answered another use question where in order to get the keystrokes to be recognized you have to click on the DS9 window so the keystroke input focus is directed to it. If you mean you're still seeing the 'cannot open device' message then try getting the latest version from SAO, I believe there was at least one version that temporarily broke IRAF displays.-Mike

 
Profile Email
 Quote
   
Content generated in: 0.35 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login