On Tue, 10 Mar 2009, Alexander Hansen wrote:

> Bhuvana R wrote:
>> Hi,
>>
>> I have an iMAC Version 10.5.6. Installed fink 0.9.0. I have no Xcode and
>> my X11 is 2.1.1. I am trying to install AFNI and I see the following
>> error.
>> dyld: Library not loaded: /usr/X11/lib/libpng12.0.dylib
>> Referenced from: /usr/bin/afni/abin/afni
>> Reason: Incompatible library version: afni requires version
>> 27.0.0 or later, but libpng12.0.dylib provides version 25.0.0
>> Trace/BPT trap
>>
>> I did a find -name and found two copies of libpng12.0.dylib. While the one
>> in /usr/X11/lib is of version 25.0.0, the one in
>> /sw/lib/ is version 27.0.0. How can I make AFNI read the dylib file on
>> /usr/lib? Please help.
>>
>>
>> Thanks!
>>
> AFNI isn't a Fink package.  You didn't build AFNI if you don't have
> Xcode, and therefore your Fink libraries shouldn't be playing a role.
>
> Moreover, even if the dynamic linker somehow found Fink's library, that
> one is of the _right_ version.  Your message indicates that your
> executable _didn't_ find fink's.
>
> Why this error is occurring is presumably that whomever built the
> package used a later version of X11 than yours, and therefore has a
> later libpng12.0.dylib than yours.
>
> I assume you mean /sw/lib rather than /usr/lib above.  Check the man
> page for "install_name_tool", which will indeed let you point to the
> later libpng12.0.dylib
>
> -- 
> Alexander Hansen
> Fink User Liaison
>
Hi Alexander,

I totally see your point. I did not use Fink to build AFNI. I used the 
binary provided, guess that is where the version mismatch occured. Right 
now, I just copied the libpng12.0.dylib from the /sw/lib/ into 
/usr/X11/lib and that worked! Hope I dont run into any more issues. Thanks 
for patiently making sense of what I wrote! Am treading a very new area 
and hence the ignorance :)

Thanks again!

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to