Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: issue with DYLD_LIBRARY_PATH and environment.plist
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: issue with DYLD_LIBRARY_PATH and environment.plist



Hi Mattieu,

I need to add a new path to DYLD_LIBRARY_PATH so that a double- clickable
application can find a specific .dylib


Does anyone know why it fails or how to make it work ? Thanks in advance
for the feedback,



I believe can use the install_name_tool program to put the full path of the library into your executable e.g.:


$ otool -L testprog
testprog:
libclntsh9.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.3)
/usr/lib/libmx.A.dylib (compatibility version 1.0.0, current version 47.1.0)


$ install_name_tool -change libclntsh9.dylib /testing/ libclntsh9.dylib \
testprog


$ otool -L testprog
testprog:
/testing/libclntsh9.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.3)
/usr/lib/libmx.A.dylib (compatibility version 1.0.0, current version 47.1.0)




Best regards,

Patrick
---
Patrick van Kleef
Maintainer iODBC
OpenLink Software

Web: <http://www.iodbc.org>



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >issue with DYLD_LIBRARY_PATH and environment.plist (From: "Matthieu Chevrier" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.