Hello Rony

2 URLs that could help

https://stackoverflow.com/questions/45464584/macosx-which-dynamic-libraries-linked-by-binary
 
<https://stackoverflow.com/questions/45464584/macosx-which-dynamic-libraries-linked-by-binary>
try
DYLD_PRINT_LIBRARIES=1 DYLD_PRINT_LIBRARIES_POST_LAUNCH=1 DYLD_PRINT_RPATHS=1 
rexxj.sh ...


https://blog.krzyzanowskim.com/2018/12/05/rpath-what/ 
<https://blog.krzyzanowskim.com/2018/12/05/rpath-what/>

From here, I could be wrong, but I understand that @rpath instructs the dynamic 
linker to search a list of LC_RPATH in order, and substitute @rpath by the 
value of LC_RPATH to locate the dynamic library.

To display the LC_RPATH of rexx:
otool -l rexx | grep LC_RPATH -A2

The value is @executable_path/../lib
so @rpath/librexx.4.dylib
becomes 
@executable_path/../lib//librexx.4.dylib

rexxj.sh is launching java, not rexx.
I assume that java and rexx are not in the same folder, so maybe it’s the 
reason why this library is not found ?


> On 18 Mar 2021, at 17:47, Rony G. Flatscher <rony.flatsc...@wu.ac.at> wrote:
> 
> Got a strange error on a student's MacBook (Mojave) which I am not able to 
> recreate at all nor have I received a comparable error report so far:
> T-MacBook-Air:~ t.f$ rexxj.sh 
> /Applications/ooRexx.app/Contents/utilities/ooRexxTry.rxj && exit 
> [BSFManager.loadScriptingEngine()] unable to load language: rexx: 
> java.lang.UnsatisfiedLinkError: 
> /Library/Frameworks/BSF4ooRexx.framework/Versions/A/Libraries/libBSF4ooRexx.dylib:
>  
> dlopen(/Library/Frameworks/BSF4ooRexx.framework/Versions/A/Libraries/libBSF4ooRexx.dylib,
>  1): Library not loaded: @rpath/librexx.4.dylib
>   Referenced from: 
> /Library/Frameworks/BSF4ooRexx.framework/Versions/A/Libraries/libBSF4ooRexx.dylib
>   Reason: image not found
> at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
> at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442)
> at 
> java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2498)
> at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694)
> at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2659)
> at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:830)
> at java.base/java.lang.System.loadLibrary(System.java:1873)
> at org.rexxla.bsf.engines.rexx.RexxAndJava.<clinit>(RexxAndJava.java:871)
> at org.rexxla.bsf.engines.rexx.RexxEngine.initialize(RexxEngine.java:291)
> at org.apache.bsf.BSFManager$8.run(BSFManager.java:854)
> at java.base/java.security.AccessController.doPrivileged(Native Method)
> at org.apache.bsf.BSFManager.loadScriptingEngine(BSFManager.java:852)
> at org.rexxla.bsf.RexxDispatcher.main(RexxDispatcher.java:117)
> Teresas-MacBook-Air:~ t.f$ 
> All the ooRexx libraries (e.g. librexx.3.dylib, librexx.4.dylib, 
> librexx.dylib) are in /usr/local/lib linking to: 
> /Library/Frameworks/ooRexx.framework/Libraries/ (librexx.3.dylib, 
> librexx.4.dylib are links to librexx.dylib).
> Running ooRexx programs from anywhere on the system works.
> Anyone with an idea, an advice what to look for, what to do in this case?
> 
> ---rony
> 
> P.S.: This BSF4ooRexx (which includes oorexx) got used: 
> <https://sourceforge.net/projects/bsf4oorexx/files/beta/20200928/b4r_641_500_64Bit_macosx-20210205-r12147.zip/download>
>  
> <https://sourceforge.net/projects/bsf4oorexx/files/beta/20200928/b4r_641_500_64Bit_macosx-20210205-r12147.zip/download>
> _______________________________________________
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel

_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to