On Tue, 25 Aug 2009, Matthijs H.D. van der Wiel wrote:
> Hi Peter,
>
> On Tue, Aug 25, 2009 at 4:32 PM, Peter W. Draper<[log in to unmask]> wrote:
>>
>> can you try moving all the "png" libraries out of the way in /star/lib:
>>
>> cd /star/lib
>> mkdir pnglibs
>> mv libpng* pnglibs
>>
>
> After that, Gaia will not start, saying:
> ~> gaia
> GAIA_DIR = /star/bin/gaia
> dyld: Library not loaded: libgaia4.3.0.dylib
> Referenced from: /star/bin/gaia/gaia_wish
> Reason: image not found
>
> So I set the DYLD library path again:
> export DYLD_LIBRARY_PATH=/star/lib
>
> Then started Gaia with a data cube, picked a spectrum from the cube
> and exported that to Splat, which started up normally!
Good, so at least GAIA and SPLAT (and presumably TOPCAT) are working.
> Now, obviously, those commands (I've tried a couple in KAPPA) that do
> need the png libraries cannot find them anymore, for example:
>
> ~/data/PDRs/JCMT2009B> kaphelp
> dyld: Library not loaded: /star/lib/libpng12.0.dylib
> Referenced from: /star/lib/libpgplot_star.0.dylib
> Reason: Incompatible library version: libpgplot_star.0.dylib
> requires version 39.0.0 or later, but libpng12.0.dylib provides
> version 30.0.0
> Trace/BPT trap
>
> So I tried adding the pnglibs subdirectory to the path as well. Like this:
> export DYLD_LIBRARY_PATH=/star/lib,/star/lib/pnglibs/
That should be:
export DYLD_LIBRARY_PATH=/star/lib:/star/lib/pnglibs/
^
> Then I get a different error message from kaphelp:
>
> ~> kaphelp
> dyld: Library not loaded: libcfitsio.dylib
> Referenced from: /star/bin/kappa/kaphelp
> Reason: image not found
> Trace/BPT trap
>
> Even though the libcfitsio.dylib file is present in /star/lib
>
> ~> ls /star/lib/libcfitsio.dylib
> /star/lib/libcfitsio.dylib
>
> Am I doing something stupid in setting multiple paths here?
Fix up the DYLD_LIBRARY_PATH as above and that should make KAPPA work,
although that will probably break SPLAT again.
I'm not sure how to fix this issue permanently at the moment. I think the
problem is down to system applications not having the install_name for the
PNG library defined, so inadvisably seem to be using the DYLD_LIBRARY_PATH.
We'll need to think about this.
Any of the developers with a Mac care to look into this a bit further?
Cheers,
Peter.
|