(replying to the list so it's on the record, sorry for the duplication Gareth)
On Tue, 19 Jan 2021 at 22:28, Gareth Baker wrote:
> From the tarball.
OK, I installed it and didn't get the same error. But I had a poke around at the exe
$ otool -L opendylan-2020.1/bin/dylan-compiler
opendylan-2020.1/bin/dylan-compiler:
@rpath/libdylan-compiler.dylib (compatibility version 0.0.0, current version 0.0.0)
@rpath/libdylan.dylib (compatibility version 0.0.0, current version 0.0.0)
/Users/housel/obj/x86_64-apple-darwin19.6.0/dylan/odbuild-2020.1/release/opendylan-2020.1/lib/libgc.1.dylib (compatibility version 6.0.0, current version 6.3.0)
@rpath/libcommon-dylan.dylib (compatibility version 0.0.0, current version 0.0.0)
@rpath/libodsystem.dylib (compatibility version 0.0.0, current version 0.0.0)
... lots more lines...
so
for some reason the path for libgc is not the same as the others and I
guess the OS loader can't find it because you won't have that
/Users/housel/... path.
I don't get the same error
because I have libgc installed system-wide (needed to compile opendylan
myself, obviously) so the loader can find it on the system path
$ DYLD_PRINT_LIBRARIES=1 dylan-compiler
dyld: loaded: /tmp/opendylan-2020.1/bin/dylan-compiler
dyld: loaded: /private/tmp/opendylan-2020.1/bin/../lib/libdylan-compiler.dylib
dyld: loaded: /private/tmp/opendylan-2020.1/bin/../lib/libdylan.dylib
dyld: loaded: /usr/local/lib/libgc.1.dylib
dyld: loaded: /private/tmp/opendylan-2020.1/bin/../lib/libcommon-dylan.dylib
... lots more lines...
I
think the exes need to be recompiled, to reference libgc relative to
the @rpath, like all the others. The actual library has been included in
the tar file, but the loader doesn't find it.
Pete