Submit a Story  :  IRAF Links  :  Past Polls  :  Calendar  :  Advanced Search  
     iraf.net
FAQ
 Forum FAQForum FAQ   Forum SearchForum Search   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

guiapps/spectool problems

 
Post new topic   Reply to topic    iraf.net Forum Index -> Applications
View previous topic :: View next topic  
Author Message
Alida



Joined: 09 Jun 2011
Posts: 3

PostPosted: Tue Jul 19, 2011 8:42 pm    Post subject: guiapps/spectool problems Reply with quote

Hi

I am running IRAF V2.15.1a on Ubuntu 10.04 (64 bit), and I am trying to install the guiapps package. I tried using the "Dynamic External Package Loading" by typing

% sudo make guiapps

in my external package directory, which is /iraf/iraf/extern/. (This has worked for other packages like tables and stsdas.) This method seems successful until I try to open a spectrum with spectool, upon which it crashes with "ERROR: segmentation violation". I have also tried downloading, unzipping and installing the source and bin.linux64 tar files manually (with appropriate definitions in /iraf/iraf/unix/hlib/extern.pkg), but this will not work either.

After consulting previous threads, I gathered that recompiling guiapps from source might solve this problem. However, I have tried several configurations of "mkpkg", both inside and out of the cl, but to no avail. For example, if I try

% setenv iraf /iraf/iraf/
% setenv IRAFARCH linux64
% source $iraf/unix/hlib/irafuser.csh
% sudo mkpkg linux64
Warning, hlib$mkpkg.inc line 5: macro `IRAFARCH' not found
/bin/bash: host//mkfloat.csh: No such file or directory
% sudo mkpkg -p guiapps -p noao

(then follows a long run of output, ending with the following:)

...
Updated 85 files in libpkg.a
xc -c -w -p guiapps -p noao -p noao x_rv.x
x_rv.x:
sys_runtask:
x_rv.f:
sysruk:
xc -z -/static -p guiapps -p noao -p noao -o xx_xrv.e x_rv.o libpkg.a -lasttools -lsmw -lxtools -ldeboor -lcurfit -liminterp -lllsq -lnlfit
gcc: libmain.o: No such file or directory
gcc: libex.a: No such file or directory
gcc: libsys.a: No such file or directory
gcc: libvops.a: No such file or directory
Warning, mkpkg line 7: module `relink' not found or returned error
move `xx_xrv.e' to `guibin$x_xrv.e'
$move: file `xx_xrv.e' not found
Warning, mkpkg line 21: error moving file xx_xrv.e
Warning, mkpkg line 8: module `install' not found or returned error
Warning, mkpkg line 33: module `update@xrv' not found or returned error
Warning, mkpkg line 12: module `xrv' not found or returned error
---------------------- DEMO -----------------------
xc -c -w -p guiapps -p noao -p noao demo.x
demo.x:
sys_runtask:
t_demo:
demo.f:
sysruk:
tdemo:
xc -z -/static -p guiapps -p noao -p noao demo.o -o xx_demo.e
gcc: libmain.o: No such file or directory
gcc: libex.a: No such file or directory
gcc: libsys.a: No such file or directory
gcc: libvops.a: No such file or directory
Warning, mkpkg line 7: module `relink' not found or returned error
move `xx_demo.e' to `guibin$x_demo.e'
$move: file `xx_demo.e' not found
Warning, mkpkg line 17: error moving file xx_demo.e
Warning, mkpkg line 8: module `install' not found or returned error
Warning, mkpkg line 37: module `update@demo' not found or returned error
Warning, mkpkg line 13: module `demo' not found or returned error
purge directory `guibin$'
!date
Tue Jul 19 22:25:06 SAST 2011

These warnings have more or less popped up with everything that I have tried. Does anybody perhaps know what the problem could be and how I can fix it to get guiapps and spectool running?

Thanks!

Kind regards
Alida
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Fri Jul 22, 2011 11:01 pm    Post subject: Reply with quote

The segfault from the task may be data-specific since I don't see it using test data on my machine. Would you mind uploading a sample FITS file that shows the problem to the anonftp on ftp://iraf.noao.edu/pub along with any parameter settings you may have used so I can reproduce the problem?

As for the problems with compiling: You should put the definitions for $iraf and $IRAFARCH in your .cshrc file so they are properly defined. The use of 'sudo' also isn't required unless root owns the files, but might also be part of the problem since this will inherit the 'root' environment and not the one set on the commandline as yourself.

Even so, if the segfault is a coding error or data-specific then recompiling probably wouldn't fix it anyway. If it is a 64-bit specific problem, then installing the 'bin.linux' binaries instead of 'bin.linux64' will use the 32-bit binaries.
Back to top
View user's profile Send private message
Alida



Joined: 09 Jun 2011
Posts: 3

PostPosted: Mon Jul 25, 2011 1:59 pm    Post subject: Reply with quote

Hi

I don't think it was data-specific as I tried data files in different formats from different telescopes.

Also, the $iraf and $IRAFARCH definitions was in the .cshrc file, but the "sudo" in the command proved to be the problem! I changed the ownership of my $iraf directory from root to my own username and ran mkpkg as before, but without the sudo. Guiapps compiled perfectly and spectool is also working now!

Thank you so much for your help, I really appreciate it!

Regards
Alida
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    iraf.net Forum Index -> Applications All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2009 phpBB Group
 Copyright © 2005-2011 iraf.net
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.11 seconds