On May 4, 2021, at 12:56, Reto Hoehener wrote:
> I uninstalled Homebrew Subversion and tried with MacPorts, but no luck (the
> library seems to be build for amd64). So back to square one.
>
> sudo port install subversion
> sudo port -N install subversion-javahlbindings
> sudo mkdir -p /Library/Java/Extensions
> sudo ln -s /opt/local/lib/libsvnjavahl-1.dylib
> /Library/Java/Extensions/libsvnjavahl-1.dylib (note: opt not usr)
>
> Opening the Eclipse SVN preferences showed me this error:
> Failed to load JavaHL Library.
> These are the errors that were encountered:
> no libsvnjavahl-1 in java.library.path:
> /Users/reto/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
> /opt/local/lib/libsvnjavahl-1.0.dylib:
> dlopen(/opt/local/lib/libsvnjavahl-1.0.dylib, 1): no suitable image found.
> Did find:
> /opt/local/lib/libsvnjavahl-1.0.dylib: mach-o, but wrong architecture
Hmm, I am not on an Apple Silicon machine but I downloaded our arm64
subversion-javahlbindings archive and verified that it does contain an arm64
library, not an x86_64 one:
$ curl -O
https://packages.macports.org/subversion-javahlbindings/subversion-javahlbindings-1.13.0_0.darwin_20.arm64.tbz2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 809k 100 809k 0 0 1336k 0 --:--:-- --:--:-- --:--:-- 1336k
$ tar xf subversion-javahlbindings-1.13.0_0.darwin_20.arm64.tbz2
$ file opt/local/lib/libsvnjavahl-1.0.dylib
opt/local/lib/libsvnjavahl-1.0.dylib: Mach-O 64-bit arm64 dynamically linked
shared library,
flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|WEAK_DEFINES|BINDS_TO_WEAK|NO_REEXPORTED_DYLIBS>
Can you show me some more info about your system and your MacPorts installation
like:
uname -mpv
xcodebuild -version
port version
port -v installed subversion-javahlbindings
grep _arch /opt/local/etc/macports/macports.conf