You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Ryan Schmidt <su...@ryandesign.com> on 2021/05/04 21:13:22 UTC

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   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


Re: Re[2]: How to install Subversion JavaHL library with homebrew in 2021?

Posted by Mark Phippard <ma...@gmail.com>.
On Sun, May 9, 2021 at 7:21 AM Reto Hoehener <re...@gmail.com> 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: How to install Subversion JavaHL library with homebrew in 2021?

Posted by Ryan Schmidt <su...@ryandesign.com>.

On May 9, 2021, at 06:20, Reto Hoehener wrote:

> 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')
> 

I'm not familiar with this problem, and on my Apple Silicon test machine I'm not able to get to this point; I experience an earlier failure. If you want to help us resolve this issue, please file a ticket in the MacPorts issue tracker and attach your main.log file.

https://trac.macports.org/newticket


Re: Re[2]: How to install Subversion JavaHL library with homebrew in 2021?

Posted by Nathan Hartman <ha...@gmail.com>.
On Sun, May 9, 2021 at 7:21 AM Reto Hoehener <re...@gmail.com> 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[2]: How to install Subversion JavaHL library with homebrew in 2021?

Posted by Reto Hoehener <re...@gmail.com>.
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" <su...@ryandesign.com>
To: "Reto Hoehener" <re...@gmail.com>
Cc: "Subversion Users" <us...@subversion.apache.org>
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   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
>