Hello Charles,

> For Xplor-NIH 2.19, you should add the lines:
> 
> Darwin_8_x86 Darwin_9_x86
> Darwin_8 Darwin_9

I believe this does not work for PowerPCs running Leopard.

In the xplor script, this is how the equivlist is checked:

if [ -d $XPLOR_DIR/bin.$ARCH ]; then
    arch=$ARCH
else
    #see if arch is in equivList
    arch=`grep $ARCH $XPLOR_DIR/arch/equivList | cut -d' ' -f1`
fi

And on my G5 running Leopard, this evaluated to Darwin_8_x86, 
since both lines match "Darwin_9".

I fixed it by making the grep a little more specific:

arch=`egrep "$ARCH"$ $XPLOR_DIR/arch/equivList | cut -d' ' -f1`

That will only match $ARCH that is in the right hand column, so it 
skips the first line and uses the second.

Does that make sense?  I've been staring at code all day, and I 
may be seeing a bit cross-eyed by now.

In any case, this fix seems to work for me on both 10.4 and 10.5 
Power Macs.

-ben

--
Ben Eisenbraun
Structural Biology Grid
http://sbgrid.org/

Reply via email to