Daniel Stern |
07/29/2007 09:18PM (Read 6887 times)
|
|
|
Status: offline
Registered: 07/27/2007
Posts: 2
|
I am having difficulties installing ucsclris on my system, and the problem seems to stem from xc crashing. I am running redhat 9 and iraf 2.12.1. When I try to mkpkg, I get the following error (only the first lines shown):cl> mkpkg -p ucsclris
check out file `salign.x = /space/stern/iraf/ucsclris/src/support/salign.x'
check out file `flex_fit.x = /space/stern/iraf/ucsclris/src/support/flex_fit.x'
xc -c -w -p ucsclris maskalign.x xbox.x mboxfind.x simulator.x mapmask.x fabmask.x gen_igi.x mshift.x l2process.x salign.x flex_fit.x
Segmentation fault (core dumped)
ar r /space/stern/iraf/ucsclris/src/libpkg.a etc.o futil.o lris_util.o maskalign.o xbox.o mboxfind.o simulator.o mapmask.o fabmask.o gen_igi.o mshift.o l2process.o salign.o flex_fit.o
ar: maskalign.o: No such file or directorySo it seems like xc is crashing. If I just type xc from within IRAF, I get the following:
cl> xc
Segmentation fault (core dumped)I suspect the following is a clue (is my gcc poorly installed?): when I type xc from a terminal window (launched from the panel), I get the following:
[strada]:<ftp>% xc
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 directoryHowever, if I do the same from an xterm or xgterm (launched from a command line), I get the:
[strada]:<stern>% xc
Segmentation fault (core dumped)Any suggestions? I'm stymied.Thanks,Daniel
|
|
|
|
fitz |
07/29/2007 09:18PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
Daniel,Firstly, I've put a tarball of UCSCLRIS that includes a Redhat binary at https://iraf.net/ftp/pub/ucsclris.tar.gz As I remember there were a number of issues with the package compiling that needed to be fixed anyway (at least for more recent compilers).As for your XC problems: Be sure that you've defined a $iraf and $IRAFARCH enironment variable in your .cshrc file so you're using the proper IRAF environment. The segfault sounds familiar but I think was fixed long ago, XC still won't do anything too reasonable of not given a file to compile. There was also an old bug where long pathnames would cause a segfault you should check (where 'long' is 64 chars or so in the directory). Anyway, with the above tarball you should be good to go as soon as you declare the package. Hope this helps.Cheers,
-Mike
|
|
|
|
Daniel Stern |
07/29/2007 09:18PM
|
|
|
Status: offline
Registered: 07/27/2007
Posts: 2
|
Fabulous, Mike!The redhat binaries work great. One caveat, however, is that they've added an ADC into the optical path of LRIS, forcing Drew Philips to update ucsclris a bit -- this was the reason I was trying to recompile the package. I'm guessing the binaries you sent are pre-ADC? Would it be possible for you to make a redhat binary of the revised ucsclris package? I'd be much obliged!Here's the e-mail I got from Drew:> Hi Daniel,
> The story is that there is a modified "mapmask" for ADC. I have
> produced a new tar file that has a modified version of simulator in it
> also (a few additional bells and whistles -- its my personal version). So,
> you may either install the new version (available at ftp.ucolick.org,
> get pub/users/phillips/tar_ucsclris_adc.2007jun25), or grab the mapmask.x
> and mapmask.par files, replace them in your current version, and remake
>the package. mapmask is the only task that needed modification for ADC.
>
> Please let me know about any problems.
>
> Cheers,
> drew
|
|
|
|
fitz |
07/29/2007 09:18PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
I replaced the tarball with the newer version.Cheers,
-Mike
|
|
|
|
jsilverman |
07/29/2007 09:18PM
|
|
|
Status: offline
Registered: 09/12/2007
Posts: 2
|
I'm running Ubuntu Linux with bash terminals:[code:1:709364ed1d]jsilv@lappy:~$ uname -a
Linux lappy 2.6.20-16-generic #2 SMP Fri Aug 31 00:55:27 UTC 2007 i686 GNU/Linux
[/code:1:709364ed1d]and I'm having similar issues to the previous posts. I tried your fix of declaring $iraf and $IRAFARCH in my .bash_rc:[code:1:709364ed1d]export IRAFARCH=linux
export iraf=/iraf/iraf/
[/code:1:709364ed1d]but I'm still having issues. I downloaded and untarred your file from the forum, but when I try to run SOME of the scripts in the package (some seem to run fine) I get the following:[code:1:709364ed1d]prep> fabmask
ERROR: Cannot open connected subprocess (./x_ucsclris.e)
[/code:1:709364ed1d]I tried remaking the package, but I get this:[code:1:709364ed1d]cl> mkpkg -p ucsclris
Library libpkg.a is up to date
Object x_ucsclris.o is up to date
xc -Nz -p ucsclris x_ucsclris.o libpkg.a -lxtools -liminterp -lsurfit -lgsurfit -lcurfit -o xx_ucsclris.e
gcc: libos.a: No such file or directory
Warning, mkpkg line 7: module `relink' not found or returned error
move `xx_ucsclris.e' to `ucsclrisbin$x_ucsclris.e'
$move: file `xx_ucsclris.e' not found
Warning, mkpkg line 20: error moving file xx_ucsclris.e
Warning, mkpkg line 8: module `install' not found or returned error
Warning, mkpkg line 20: module `update@src' not found or returned error
Warning, mkpkg line 16: module `update' not found or returned error
[/code:1:709364ed1d]Any advice or help you could give would be very, very much appreciated.
Thank you!--Jeff
|
|
|
|
fitz |
07/29/2007 09:18PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
Jeff,The message means that your $iraf/unix/bin.linux directory (where libos.a lives) is probably empty. To fix this, simply copy the contents of $iraf/unix/bin.redhat to $iraf/unix/bin.linux and try to build again.Cheers,
-Mike
|
|
|
|
jsilverman |
07/29/2007 09:18PM
|
|
|
Status: offline
Registered: 09/12/2007
Posts: 2
|
[b:9e81a3bcdc]THANK YOU!!!![/b:9e81a3bcdc]Fitz, you're a lifesaver!That worked perfectly, thank you so much!--Jeff
|
|
|
|
sastanford |
07/29/2007 09:18PM
|
|
|
Status: offline
Registered: 01/09/2008
Posts: 13
|
Mike -Would it be possible to post a tarball of the updated ucsclris package
with a binary for OS X, version 10.5.2?thanks,
Adam
|
|
|
|
fitz |
07/29/2007 09:18PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
Adam,I've updated the tarball in my original reply to include both PPC and Intel Mac binaries.Enjoy,
-Mike
|
|
|
|
sastanford |
07/29/2007 09:18PM
|
|
|
Status: offline
Registered: 01/09/2008
Posts: 13
|
That was fast! thanks Mike -[quote:985d0d9dc5="fitz"]Adam,I've updated the tarball in my original reply to include both PPC and Intel Mac binaries.Enjoy,
-Mike[/quote:985d0d9dc5]
|
|
|
|