mark wrote:
> Martin Costabel <costabel <at> wanadoo.fr> writes:
[]
>> Are you setting the environment variable DYLD_LIBRARY_PATH? This 
>> typically causes errors like the one you are seeing.
>>
> 
> Hi, Martin:
> 
> It is set as :
> 
> setenv DYLD_LIBRARY_PATH 
> /Applications/OpenOffice.org1.0.1/program:/Applications/OpenOffice.
> org1.0.1/program/filter:/sw/lib:/usr/local/lib:/usr/X11R6/lib
> 
> Anything wrong with that?

Yes, this is the cause of your error. The dynamic loader looks first in 
this list of directories for libfreetype.6.dylib and takes what it finds 
there instead of the correct /sw/lib/freetype219/lib/libfreetype.6.dylib
In your case I assume it finds one in /sw/lib, maybe another one in 
/usr/local/lib and certainly an old one in /usr/X11R6/lib.

The environment variable DYLD_LIBRARY_PATH should only be used in very 
special circumstances, either for test purposes or when one really needs 
to make dyld look for libraries at a different place than where they 
would naturally be installed.

If you want to use it in order to point dyld to libraries that it would 
otherwise not find at all, then use DYLD_FALLBACK_LIBRARY_PATH which 
does not have that undesirable side effect. But it is almost certain 
that you don't need /sw/lib:/usr/local/lib:/usr/X11R6/lib there.

-- 
Martin




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fink-beginners mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.beginners

Reply via email to