git-together icon indicating copy to clipboard operation
git-together copied to clipboard

libssl path issue on Mac release

Open JamesMcMahon opened this issue 7 years ago • 1 comments

I'm seeing the following issue on my Macbook after install via the tap:

dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /Users/jamie/.brew/bin/git-together
  Reason: image not found
fish: 'git-together' terminated by signal SIGABRT (Abort)

I think this may be due to my brew prefix being pointed at my user directory. I am new to rust so I am not sure how rustc handles linking to paths for dynamic libraries. When I build the project local I have no trouble with the resulting binaries. I can also fix the issue by linking my user directory opt directory into /usr/local/.

May be a limited corner case but if you decide it's worth fixing I am happy to help debug further.

JamesMcMahon avatar Sep 15 '18 03:09 JamesMcMahon

Looks like openssl-sys is an indirect dependency from git2. It seems like there's a way to statically link openssl. I'll experiment with setting that manually in git-together's Cargo.toml will have the desired effect next time I'm poking around in the codebase.

kejadlen avatar Sep 17 '18 17:09 kejadlen

Should be fixed in v0.1.0-alpha.25

kejadlen avatar Sep 28 '23 15:09 kejadlen