Install node failed. dyld: Symbol not found

Install node failed. dyld: Symbol not found

book

Article ID: KB0083493

calendar_today

Updated On:

Products Versions
TIBCO Streaming 10.1

Description

When installing a node using the epadmin utility, the following error is seen:

Install node failed. dyld: Symbol not found: __cg_jpeg_resync_to_restart 
Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib 
Expected in: /Users/<username>/tibco/tibcojre64/1.8.0/lib/libJPEG.dylib 
in /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
This indicates that libJPEG.dylib is being loaded from multiple locations, which can be confirmed by setting DYLD_PRINT_LIBRARIES=1 in your environment.  The resulting console output will tell you from where each lib is being loaded:
dyld: loaded: /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
...
dyld: loaded: /Users/<username>/tibco/tibcojre64/1.8.0/lib/libJPEG.dylib

Environment

Mac OSX

Resolution

Since the library is being loaded from /System/Library.. before being loaded from the expected location (/Users/<username>..), the solution is to remove the file from the expected location.  After removing the file, replace it with a symlink to the first-loaded location.  For example:
cd /Users/<username>/tibco/tibcojre64/1.8.0/lib/
rm -rf libJPEG.dylib
ln -s /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib libJPEG.dylib
rm -rf libTIFF.dylib
ln -s /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib

Issue/Introduction

When attempting to install a node, a "symbol not found" is seen