AztecProtocol / aztec-packages

Apache License 2.0
203 stars 235 forks source link

Barrentenberg installation not working #8368

Closed hridambasu closed 2 months ago

hridambasu commented 2 months ago

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

hridambasu commented 2 months ago

Reinstalling LLVM via Homebrew solved this issue!

Taewa commented 1 month ago

@hridambasu I reinstalled LLVM but no luck :/

This is my env

nargo version = 0.33.0
noirc version = 0.33.0+325dac54efb6f99201de9fdeb0a507d45189607d
nmrshll commented 2 days ago

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.