On Jun 16, 2010, at 2:08 PM, Sarah Sadavoy wrote:
>
> This is what I have in gaia.sh
>
> if test "$DYLD_LIBRARY_PATH" = ""; then
> export LD_LIBRARY_PATH
> if test "$LD_LIBRARY_PATH" = ""; then
> LD_LIBRARY_PATH="$BASE_DIR/lib:/star/lib"
> else
> LD_LIBRARY_PATH="$BASE_DIR/lib:/star/lib:$LD_LIBRARY_PATH"
> fi
> else
> export DYLD_LIBRARY_PATH
> if test "$DYLD_LIBRARY_PATH" = ""; then
> DYLD_LIBRARY_PATH="$BASE_DIR/lib:/star/lib"
> else
> DYLD_LIBRARY_PATH="$BASE_DIR/lib:/star/lib:$LD_LIBRARY_PATH"
> fi
> fi
>
> Should I change the "$BASE_DIR/lib:/star/lib:$LD_LIBRARY_PATH" to "$BASE_DIR/lib:/star/lib:$DYLD_LIBRARY_PATH"?
>
Yes.
> As for the libgcc* files, I have them in several different places:
>
> /usr/lib/gcc/i686-apple-darwin9/4.2.1/
> /usr/lib/gcc/i686-apple-darwin9/4.0.1/
> /usr/local/lib/gcc/i386-apple-darwin9.7.0/4.4.1/
> /usr/local/lib/gcc/i386-apple-darwin9.0.0/4.3.0/
> /usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin9/4.2.1/
> /usr/lib/
> /usr/local/lib/lib/
> /usr/local/lib/lib/gcc/i386-apple-darwin9.7.0/4.4.1
>
> Which do I send the path to?
>
Actually, I've just looked at my test computer. It had libraries (libgcc and libstdc++) in /usr/local/lib and /usr/local/lib/x86_64. I get the malloc errors. If I simply move those out the way (eg into a tmp directory so that they can be moved back later) then gaia runs up without any complaint. In fact, it's the libstdc++ library that is causing the trouble (in /usr/local/lib/x86_64). Move that out the way and GAIA should load fine ("otool -L $GAIA_DIR/gaia_wish" will list it).
--
Tim Jenness
Joint Astronomy Centre
|