Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dyld: Library not loaded: /usr/local/opt/libressl/lib/libssl.47.dylib #117

Closed
aDotInTheVoid opened this issue May 12, 2020 · 10 comments
Closed
Labels
bug Something isn't working

Comments

@aDotInTheVoid
Copy link

Currently, brew installs libcrypto.46.dylib andlibssl.48.dylib

However ponyup expects libssl.47.dylib and libcrypto.46.dylib. This lead to errors like

dyld: Library not loaded: /usr/local/opt/libressl/lib/libssl.47.dylib
  Referenced from: /Users/nixon/.local/share/ponyup/bin/ponyup
  Reason: image not found
Abort trap: 6
@SeanTAllen
Copy link
Member

@aDotInTheVoid which version of macOS are you using?

@SeanTAllen
Copy link
Member

Also @aDotInTheVoid can you change this line in your ponyup-init.sh that you downloaded from "releases" to "nightlies" and let me know if you are good.

https://github.com/ponylang/ponyup/blob/master/ponyup-init.sh#L7

@aDotInTheVoid
Copy link
Author

macOS Catilina: l10.15.4 (19E287)
libressl: stable 3.1.1 (bottled), HEAD [keg-only]

Unfortunately, nightly doesn't fix it

Full log
$ ./pony.sh
ponyup_root = /Users/nixon/.local/share/ponyup
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2905  100  2905    0     0   7830      0 --:--:-- --:--:-- --:--:--  7830
checksum=91cd9d02c4ed056f09d58c264e3abc2790ed9ae4543add06c473dd874cf13333
dl_url=https://dl.cloudsmith.io/public/ponylang/nightlies/raw/versions/20200513/ponyup-x86-64-apple-darwin.tar.gz
downloading ponyup-x86-64-apple-darwin.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  241k  100  241k    0     0  1155k      0 --:--:-- --:--:-- --:--:-- 1155k
checksum ok
ponyup placed in /Users/nixon/.local/share/ponyup/bin
$ which ponyup
/Users/nixon/.local/share/ponyup/bin/ponyup
$ ponyup
dyld: Library not loaded: /usr/local/opt/libressl/lib/libssl.47.dylib
  Referenced from: /Users/nixon/.local/share/ponyup/bin/ponyup
  Reason: image not found
Abort trap: 6

@SeanTAllen
Copy link
Member

That's odd. I'm guessing that we need to do a brew update to get the latest package definitions. I'll set that up and ping you again in a couple days to test a nightly again.

Thanks for the information @aDotInTheVoid.

@SeanTAllen
Copy link
Member

@aDotInTheVoid I got a little sidetracked. On Saturday Eastern US time, can you try the latest nightly and see if it works for you. It will be generated around midnight eastern time and will be ready anytime after that. I think will fix the issue as we should be linking against the latest libressl installed by homebrew at that point.

Thanks for your assistance!

@SeanTAllen
Copy link
Member

@aDotInTheVoid scratch that. We have a chicken and the egg problem at the moment.

@Theodus I think we are going to have to install ponyc and corral "the hard way" on macOS in order to work around a dependency problem as we can't run ponyup to install corral with the updated libressl. I could get clever to get around that but I don't think that would help for long.

SeanTAllen added a commit that referenced this issue May 16, 2020
When the libressl version changes, ponyup won't run, so we can't
build a new ponyup to adapt as the current ponyup can't run and
install the dependencies.

See #117
SeanTAllen added a commit that referenced this issue May 16, 2020
When the libressl version changes, ponyup won't run, so we can't
build a new ponyup to adapt as the current ponyup can't run and
install the dependencies.

See #117
@SeanTAllen
Copy link
Member

@Theodus to address this problem we need to make ponyup on macOS always install the most recent nightly rather than a release.

additionally, we need to tell people if they update libressl that they will need to reinstall the latest ponyup nightly IF brew installs the old ssl (I don't know if it does, that would be shitty, but, we'll find out).

SeanTAllen added a commit that referenced this issue May 17, 2020
When the libressl version changes, ponyup won't run, so we can't
build a new ponyup to adapt as the current ponyup can't run and
install the dependencies.

See #117
@SeanTAllen
Copy link
Member

@aDotInTheVoid can you try the latest nightly please?

@SeanTAllen SeanTAllen added the bug Something isn't working label May 18, 2020
@ergl
Copy link
Member

ergl commented May 18, 2020

@SeanTAllen had the same issue on Mojave 10.14.6, changing the default repository to "nightlies" fixed the issue for me.

@aDotInTheVoid
Copy link
Author

Works for me with lates nightly too (checksum=6143c010be7dcad9336d1d50735ff07d36104759b7c85d1b8e49a444ef47f9fe)

Thanks for the fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants