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

[bb install issue] Library not loaded #9256

Closed
Taewa opened this issue Oct 16, 2024 · 2 comments · Fixed by #9438
Closed

[bb install issue] Library not loaded #9256

Taewa opened this issue Oct 16, 2024 · 2 comments · Fixed by #9438
Labels
from-community This originated from the community :)

Comments

@Taewa
Copy link

Taewa commented Oct 16, 2024

I followed the installation steps from : https://github.com/AztecProtocol/aztec-packages/tree/master/barretenberg/cpp/src/barretenberg/bb#installation

but when I tried bb --version, I got the this error:

dyld[19062]: Library not loaded: /usr/local/opt/llvm@16/lib/libunwind.1.dylib
  Referenced from: <E1BF9892-14A9-31C8-960D-778F1B0864D3> /Users/USER_NAME/.bb/bb
  Reason: tried: '/usr/local/opt/llvm@16/lib/libunwind.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/llvm@16/lib/libunwind.1.dylib' (no such file), '/usr/local/opt/llvm@16/lib/libunwind.1.dylib' (no such file)
[1]    19062 abort      bb --version

I found a person who had the same issue ( #8368 ) and I reinstalled LLVM as he did but no luck for me.

Here is my env:

nargo version = 0.33.0
noirc version = 0.33.0+325dac54efb6f99201de9fdeb0a507d45189607d
node = v18.17.0
MacOS

Does anyone know how to solve this issue?

@critesjosh critesjosh added the from-community This originated from the community :) label Oct 25, 2024
@critesjosh
Copy link
Contributor

Can you try installing bbup via the instructions here.

We need to update the README where you got those instructions from. cc @signorecello

@github-project-automation github-project-automation bot moved this to Todo in A3 Oct 28, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in A3 Nov 5, 2024
AztecBot pushed a commit to AztecProtocol/barretenberg that referenced this issue Nov 6, 2024
Adds notes to the docs that indicate that authwits only work in single
player mode, describes the problems with not simulating simulations, and
updates the bberg readme install instructions

closes AztecProtocol/dev-rel#422
closes AztecProtocol/dev-rel#433
closes AztecProtocol/aztec-packages#9256
closes AztecProtocol/dev-rel#423
closes AztecProtocol/aztec-packages#6865
AztecBot pushed a commit to AztecProtocol/aztec-nr that referenced this issue Nov 6, 2024
Adds notes to the docs that indicate that authwits only work in single
player mode, describes the problems with not simulating simulations, and
updates the bberg readme install instructions

closes AztecProtocol/dev-rel#422
closes AztecProtocol/dev-rel#433
closes AztecProtocol/aztec-packages#9256
closes AztecProtocol/dev-rel#423
closes AztecProtocol/aztec-packages#6865
Maddiaa0 pushed a commit that referenced this issue Nov 6, 2024
Adds notes to the docs that indicate that authwits only work in single
player mode, describes the problems with not simulating simulations, and
updates the bberg readme install instructions

closes AztecProtocol/dev-rel#422
closes AztecProtocol/dev-rel#433
closes #9256
closes AztecProtocol/dev-rel#423
closes #6865
@nmrshll
Copy link

nmrshll commented Nov 13, 2024

Even installing with bbup can lead to this error. Since it's a dynamic linking error, it means you need to already have a library on your mac, otherwise the bb executable won't be able to run.

2 solutions, either:

  1. install llvm@16 using homebrew. This will put the expected library in the place where it's looking:
    brew install llvm@16
  2. tell the executable where to find the libunwind library:
    • make sure you can find the libunwind.1.dylib file as part of your llvm installation (llvm versions >12 should have it in a folder called lib/)
    • patch the executable using install_name_tool (it's built in macos, nothing to install): this link explains how.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
from-community This originated from the community :)
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants