[kepler-dev] [Bug 5346] Kepler 2.2r3 Mac OS 64-bit Matlab demo fails with 'no suitable image found'

bugzilla-daemon at ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Wed Mar 16 16:06:46 PDT 2011


http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5346

--- Comment #6 from jianwu <jianwu at sdsc.edu> 2011-03-16 16:06:45 PDT ---
Try to be clear about my tests. If I use kepler.sh to start Kepler, the matlab
demo workflow pointed by Christopher runs correctly. But if I double-click
kepler.app to start, I can not run it (exception message is as follows). I
think it is because I only set DYLD_LIBRARY_PATH in my batch environment
(namely ~/.bash_profile), not ~/.MacOSX/environment.plist environment.

kepler:Java jianwu$ echo $DYLD_LIBRARY_PATH
/Applications/MATLAB64/MATLAB_R2010a/MATLAB_R2010a.app/bin/maci64 

Error for starting Kepler by double-clicking kepler.app:

ptolemy.kernel.util.IllegalActionException: There was a problem invoking the
Ptolemy II Matlab interface.
The interface has been tested under Linux, Mac OS X, and Windows.
The interface requires that Matlab be installed on the local machine and that
the ptmatlab shared library available.
* Under Linux, you must have the LD_LIBRARY_PATH environment variable set to
include the directories that contain libmx.so and libptmatlab.so.
* Under Mac OS X, you must have the DYLD_LIBRARY_PATH environment variable set
to include the directories that contain libmx.dylib and libptmatlab.jnilib.
* Under Windows, you must have your PATH set to include the Matlab bin/win32 or
equivalent directory so that libmex.dll is found and the directory that
contains libptmatlab.dll. In addition, if you are running under Windows from
the Cygwin bash prompt, then you must start Vergil with the -jni argument:
$PTII/bin/vergil -jni. For details, see $PTII/jni/package.html.
Refer to $PTII/ptolemy/matlab/makefile for more information.
  in .MatlabExpression.MatlabExpression
Because:
/Applications/Kepler-2.2rc3/Kepler.app/Contents/Resources/Java/common-2.2.0/lib/ptolemy/matlab/libptmatlab.jnilib:
 Library not loaded: @loader_path/libeng.dylib   Referenced from:
/Applications/Kepler-2.2rc3/Kepler.app/Contents/Resources/Java/common-2.2.0/lib/ptolemy/matlab/libptmatlab.jnilib
  Reason: image not found
    at ptolemy.matlab.Expression.preinitialize(Expression.java:263)
    at ptolemy.actor.Director.preinitialize(Director.java:1010)
    at ptolemy.actor.Director.preinitialize(Director.java:991)
    at
ptolemy.domains.sdf.kernel.SDFDirector.preinitialize(SDFDirector.java:647)
    at ptolemy.actor.CompositeActor.preinitialize(CompositeActor.java:1735)
    at ptolemy.actor.Manager.preinitializeAndResolveTypes(Manager.java:983)
    at ptolemy.actor.Manager.initialize(Manager.java:643)
    at ptolemy.actor.Manager.execute(Manager.java:340)
    at ptolemy.actor.Manager.run(Manager.java:1164)
    at ptolemy.actor.Manager$3.run(Manager.java:1217)
Caused by: java.lang.UnsatisfiedLinkError:
/Applications/Kepler-2.2rc3/Kepler.app/Contents/Resources/Java/common-2.2.0/lib/ptolemy/matlab/libptmatlab.jnilib:
 Library not loaded: @loader_path/libeng.dylib   Referenced from:
/Applications/Kepler-2.2rc3/Kepler.app/Contents/Resources/Java/common-2.2.0/lib/ptolemy/matlab/libptmatlab.jnilib
  Reason: image not found
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1823)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1699)
    at java.lang.Runtime.load0(Runtime.java:770)
    at java.lang.System.load(System.java:1020)
    at
ptolemy.data.expr.UtilityFunctions._loadLibrary(UtilityFunctions.java:1985)
    at
ptolemy.data.expr.UtilityFunctions.loadLibrary(UtilityFunctions.java:847)
    at ptolemy.matlab.Engine.<clinit>(Engine.java:176)
    at ptolemy.matlab.Expression.preinitialize(Expression.java:260)
    ... 9 more
Caused by: java.lang.UnsatisfiedLinkError:
/Applications/Kepler-2.2rc3/Kepler.app/Contents/Resources/Java/common-2.2.0/lib/ptolemy/matlab/libptmatlab.jnilib:
 Library not loaded: @loader_path/libeng.dylib   Referenced from:
/Applications/Kepler-2.2rc3/Kepler.app/Contents/Resources/Java/common-2.2.0/lib/ptolemy/matlab/libptmatlab.jnilib
  Reason: image not found
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1823)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1699)
    at java.lang.Runtime.load0(Runtime.java:770)
    at java.lang.System.load(System.java:1020)
    at
ptolemy.data.expr.UtilityFunctions._loadLibrary(UtilityFunctions.java:1985)
    at
ptolemy.data.expr.UtilityFunctions.loadLibrary(UtilityFunctions.java:847)
    at ptolemy.matlab.Engine.<clinit>(Engine.java:176)
    at ptolemy.matlab.Expression.preinitialize(Expression.java:260)
    at ptolemy.actor.Director.preinitialize(Director.java:1010)
    at ptolemy.actor.Director.preinitialize(Director.java:991)
    at
ptolemy.domains.sdf.kernel.SDFDirector.preinitialize(SDFDirector.java:647)
    at ptolemy.actor.CompositeActor.preinitialize(CompositeActor.java:1735)
    at ptolemy.actor.Manager.preinitializeAndResolveTypes(Manager.java:983)
    at ptolemy.actor.Manager.initialize(Manager.java:643)
    at ptolemy.actor.Manager.execute(Manager.java:340)
    at ptolemy.actor.Manager.run(Manager.java:1164)
    at ptolemy.actor.Manager$3.run(Manager.java:1217)

-- 
Configure bugmail: http://bugzilla.ecoinformatics.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the Kepler-dev mailing list