Re: Re[2]: How to install Subversion JavaHL library with homebrew in 2021?
On Sun, May 9, 2021 at 7:21 AM Reto Hoehener wrote: > - sudo ln -s /opt/local/lib/lib svnjavahl-1.dylib Regarding the line above, it seems something got cut off there? Thanks for circling back. It will undoubtedly help others. Cheers, Nathan
Re: Re[2]: How to install Subversion JavaHL library with homebrew in 2021?
On Sun, May 9, 2021 at 7:21 AM Reto Hoehener wrote: > > Just upgraded to Big Sur 11.3.1. > On the MacPorts front, I tried the universal variant, but got an error: > sudo port install subversion +universal > sudo port install subversion-javahlbindings +universal > > Error: Problem while installing python38 > Error: Unable to execute port: upgrade cyrus-sasl2 failed > main.log: :info:build ValueError: Don't know machine value for > archs=('arm64', 'x86_64') > > > On May 5, Eclipse beta builds for MacOS AArch64 became available (see > https://bugs.eclipse.org/bugs/show_bug.cgi?id=565690), so I tried to > move the complete stack to AArch64: > > - Installed Eclipse for MacOS (AArch64) Early Access: > https://download.eclipse.org/eclipse/downloads/index.html > - Downloaded and extracted OpenJDK 17 for MacOS (AArch64): > https://jdk.java.net/17/ (Zulu also offers an early access build) > - Edited eclipse.ini to use > /Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home (see > https://wiki.eclipse.org/Eclipse.ini) > - Reinstalled the default MacPorts for subversion and > subversion-javahlbindings: > - sudo port install subversion > - sudo port install subversion-javahlbindings > - sudo mkdir -p /Library/Java/Extensions > - sudo ln -s /opt/local/lib/lib svnjavahl-1.dylib > /Library/Java/Extensions/libsvnjavahl-1.dylib > - Reinstalled Subclipse Plugin: https://subclipse.github.io/updates/ > - Eclipse Team Settings: Changed SVN Client to JavaHL and ran "Team - > Update to HEAD" action > > It worked! And I must say Eclipse runs a LOT snappier. And Subclipse > with JavaHL as well, like subsecond to open the commit dialog compared > to tens of seconds for many files! > Since I use Eclipse on Mac currently for the sole purpose of using my > favorite SVN Client Subclipse (and the file search/replace > functionality), I'm fine with using early access builds for now. > Homebrew closed my issue and asked for a PR, so not sure how that front > will develop. Thanks for updating back, and good to know Eclipse is making its way towards supporting Apple Silicon. If I get some time, I will take a look at the Homebrew formula and submit a PR if I get anywhere with it. Mark
Re[2]: How to install Subversion JavaHL library with homebrew in 2021?
Just upgraded to Big Sur 11.3.1. On the MacPorts front, I tried the universal variant, but got an error: sudo port install subversion +universal sudo port install subversion-javahlbindings +universal Error: Problem while installing python38 Error: Unable to execute port: upgrade cyrus-sasl2 failed main.log: :info:build ValueError: Don't know machine value for archs=('arm64', 'x86_64') On May 5, Eclipse beta builds for MacOS AArch64 became available (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=565690), so I tried to move the complete stack to AArch64: - Installed Eclipse for MacOS (AArch64) Early Access: https://download.eclipse.org/eclipse/downloads/index.html - Downloaded and extracted OpenJDK 17 for MacOS (AArch64): https://jdk.java.net/17/ (Zulu also offers an early access build) - Edited eclipse.ini to use /Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home (see https://wiki.eclipse.org/Eclipse.ini) - Reinstalled the default MacPorts for subversion and subversion-javahlbindings: - sudo port install subversion - sudo port install subversion-javahlbindings - sudo mkdir -p /Library/Java/Extensions - sudo ln -s /opt/local/lib/lib svnjavahl-1.dylib /Library/Java/Extensions/libsvnjavahl-1.dylib - Reinstalled Subclipse Plugin: https://subclipse.github.io/updates/ - Eclipse Team Settings: Changed SVN Client to JavaHL and ran "Team - Update to HEAD" action It worked! And I must say Eclipse runs a LOT snappier. And Subclipse with JavaHL as well, like subsecond to open the commit dialog compared to tens of seconds for many files! Since I use Eclipse on Mac currently for the sole purpose of using my favorite SVN Client Subclipse (and the file search/replace functionality), I'm fine with using early access builds for now. Homebrew closed my issue and asked for a PR, so not sure how that front will develop. Thank you all for your help! -- Original Message -- From: "Ryan Schmidt" To: "Reto Hoehener" Cc: "Subversion Users" Sent: 04.05.2021 23:13:22 Subject: Re: How to install Subversion JavaHL library with homebrew in 2021? 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 TimeTime Time Current Dload Upload Total SpentLeft Speed 100 809k 100 809k0 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: 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
Re: Re[2]: How to install Subversion JavaHL library with homebrew in 2021?
On Tue, May 4, 2021 at 1:56 PM 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 I think you might have the opposite problem. The last time I looked, Eclipse did not support Apple Silicon yet so you have to run it using Rosetta and the Intel JVM. This means that the JVM can only load native libraries that are the same architecture. So you actually need Subversion and the JavaHL library compiled for Intel processors. I have held off on installing Eclipse on my Mac until it supports Apple Silicon. Mark
Re[2]: How to install Subversion JavaHL library with homebrew in 2021?
I created an issue: https://github.com/Homebrew/homebrew-core/issues/76649 -- Original Message -- From: "Mark Phippard" To: "Reto Hoehener" Cc: "Subversion" Sent: 30.04.2021 16:00:06 Subject: Re: How to install Subversion JavaHL library with homebrew in 2021? On Thu, Apr 29, 2021 at 3:44 AM Reto Hoehener wrote: Hello I hope it's ok to crosspost my stack overflow question to this list: https://stackoverflow.com/questions/67288397/how-to-install-subversion-javahl-library-with-homebrew-in-2021 In short: I cannot figure out how to install Subversion JavaHL to use with Subclipse on a Mac Mini M1. After executing "brew install subversion", I cannot find libsvnjavahl-1.dylib. According to the formula, they are not currently building JavaHL on Apple Silicon: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/subversion.rb#L24 I wonder if this could be improved now because AFAIK, they are supporting OpenJDK on Apple Silicon in Homebrew now. So it seems like they could add the Java bindings back to the Subversion formula. Mark
Re[2]: How to install Subversion JavaHL library with homebrew in 2021?
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 -- Original Message -- From: "Ryan Schmidt" To: "Reto Hoehener" Cc: "Subversion Users" Sent: 30.04.2021 00:03:29 Subject: Re: How to install Subversion JavaHL library with homebrew in 2021? On Apr 29, 2021, at 02:34, Reto Hoehener wrote: I hope it's ok to crosspost my stack overflow question to this list: https://stackoverflow.com/questions/67288397/how-to-install-subversion-javahl-library-with-homebrew-in-2021 In short: I cannot figure out how to install Subversion JavaHL to use with Subclipse on a Mac Mini M1. After executing "brew install subversion", I cannot find libsvnjavahl-1.dylib. If you're open to an alternative to Homebrew, Subversion and the JavaHL bindings can be installed using MacPorts by running: sudo port install subversion-javahlbindings https://ports.macports.org/port/subversion-javahlbindings
Re[2]: How to install Subversion JavaHL library with homebrew in 2021?
Would be nice. No idea who maintains the Homebrew formula for Subversion. -- Original Message -- From: "Mark Phippard" To: "Reto Hoehener" Cc: "Subversion" Sent: 30.04.2021 16:00:06 Subject: Re: How to install Subversion JavaHL library with homebrew in 2021? On Thu, Apr 29, 2021 at 3:44 AM Reto Hoehener wrote: Hello I hope it's ok to crosspost my stack overflow question to this list: https://stackoverflow.com/questions/67288397/how-to-install-subversion-javahl-library-with-homebrew-in-2021 In short: I cannot figure out how to install Subversion JavaHL to use with Subclipse on a Mac Mini M1. After executing "brew install subversion", I cannot find libsvnjavahl-1.dylib. According to the formula, they are not currently building JavaHL on Apple Silicon: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/subversion.rb#L24 I wonder if this could be improved now because AFAIK, they are supporting OpenJDK on Apple Silicon in Homebrew now. So it seems like they could add the Java bindings back to the Subversion formula. Mark