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

Unable to run buzz from releases #226

Open
Its-Kenta opened this issue Oct 26, 2023 · 5 comments
Open

Unable to run buzz from releases #226

Its-Kenta opened this issue Oct 26, 2023 · 5 comments
Labels
bug Something isn't working
Milestone

Comments

@Its-Kenta
Copy link

Downloaded 0.3.0 of Buzz and added it to PATH.
On attempting to run buzz from terminal getting the following errors:

dyld[3378]: Library not loaded: @rpath/libbuzz.dylib
  Referenced from: <D29A2BE4-E295-3791-9EE8-E11808BE92CF> /Users/kenta/.langs/buzz/bin/buzz
  Reason: tried: '/Users/giann/git/buzz/zig-cache/o/831b7c6651fac287367bed2fde12371b/libbuzz.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/giann/git/buzz/zig-cache/o/831b7c6651fac287367bed2fde12371b/libbuzz.dylib' (no such file), '/Users/giann/git/buzz/zig-cache/o/831b7c6651fac287367bed2fde12371b/libbuzz.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/giann/git/buzz/zig-cache/o/831b7c6651fac287367bed2fde12371b/libbuzz.dylib' (no such file), '/usr/local/lib/libbuzz.dylib' (no such file), '/usr/lib/libbuzz.dylib' (no such file, not in dyld cache)
zsh: abort      buzz

Running macOS on Mac Studio M2 Max

@giann
Copy link
Collaborator

giann commented Oct 26, 2023

I recommend building buzz from source and from the main branch when possible.
You can try creating a symlink to the dylib in /usr/local/lib to fix this.

@Its-Kenta
Copy link
Author

Built it from source and works fine. My issue is resolved on this one, do you want to close it or leave it open for future cases to fix this at some point?

@giann
Copy link
Collaborator

giann commented Oct 26, 2023

Let it open. The buzz binary should be able to find the dylib by looking in its own directory.

@giann giann added the bug Something isn't working label Oct 26, 2023
@giann giann added this to the 0.4.0 milestone Oct 26, 2023
@vtereshkov
Copy link

@giann

  1. The same path resolution problem is seen on Linux, even when buzz and libbuzz.so are put into the same folder:
./buzz: error while loading shared libraries: libbuzz.so: cannot open shared object file: No such file or directory

I worked around it by first calling

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./
  1. The release binaries are expecting a newer GLIBC version, so I merely cannot run buzz on Ubuntu 20:
vtereshkov@Vasiliy-Acer:~/buzz-0.3.0-linux-x86_64/bin$ ./buzz 
./buzz: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ./buzz)
./buzz: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./buzz)
./buzz: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by libbuzz.so)
./buzz: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by libbuzz.so)
vtereshkov@Vasiliy-Acer:~/buzz-0.3.0-linux-x86_64/bin$ ldd --version
ldd (Ubuntu GLIBC 2.31-0ubuntu9.2) 2.31

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