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

Barrentenberg installation not working #8368

Closed
hridambasu opened this issue Sep 4, 2024 · 3 comments
Closed

Barrentenberg installation not working #8368

hridambasu opened this issue Sep 4, 2024 · 3 comments

Comments

@hridambasu
Copy link
Contributor

When I am trying to install Barrentenberg on my MacOS Laptop by the following commands as mentioned in the README file:

  1. curl -L https://raw.githubusercontent.com/AztecProtocol/aztec-packages/master/barretenberg/cpp/installation/install | bash
  2. source ~/.zshrc
  3. bbup -v 0.46.1
  4. bb --version gives the following error:
dyld[48923]: Library not loaded: /usr/local/opt/llvm@16/lib/libunwind.1.dylib
  Referenced from: <30073420-4614-3CDC-BAC4-102F31DC3514> /Users/hridambasu/.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)
zsh: abort      bb --version

My nargo version:
nargo version = 0.32.0
noirc version = 0.32.0+c679f01a19b02ad2ac2287c8e699b46887f7872c

@github-project-automation github-project-automation bot moved this to Todo in A3 Sep 4, 2024
@hridambasu
Copy link
Contributor Author

Reinstalling LLVM via Homebrew solved this issue!

@github-project-automation github-project-automation bot moved this from Todo to Done in A3 Sep 4, 2024
@Taewa
Copy link

Taewa commented Oct 16, 2024

@hridambasu I reinstalled LLVM but no luck :/

This is my env

nargo version = 0.33.0
noirc version = 0.33.0+325dac54efb6f99201de9fdeb0a507d45189607d

@nmrshll
Copy link

nmrshll commented Nov 13, 2024

2 solutions, either:

  1. install llvm@16 using homebrew. This will put the expected library in the place where it's looking
  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
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants