0

I'm on Mac OS and I have a problem with the canvas module. When I want to do an action with canvas, I have this error:

dyld: lazy symbol binding failed: Symbol not found: ____chkstk_darwin Referenced from: /Users/user/Desktop/Personnel/Dev/Bot/node_modules/canvas/build/Release/libcairo.2.dylib (which was built for Mac OS X 10.15) Expected in: /usr/lib/libSystem.B.dylib Abort trap: 6

Then I've made some research and found that I have to install something with this command: brew install pkg-config cairo pango libpng jpeg giflib librsvg

But when I do this, I have this warning:

Warning: No available formula or cask with the name "ca-certificates". ==> Searching for similarly named formulae... Error: No similarly named formulae found. ==> Searching for a previously deleted formula (in the last month)... Error: No previously deleted formula found. ==> Searching taps on GitHub... Error: No formulae found in taps. Updating Homebrew... fatal: Needed a single revision Warning: No available formula or cask with the name "pkg-config". ==> Searching for similarly named formulae... Error: No similarly named formulae found. ==> Searching for a previously deleted formula (in the last month)... Error: No previously deleted formula found. ==> Searching taps on GitHub... Error: No formulae found in taps.

I have tried to find a solution but I have decided to ask for help on StackOverflow.

Zsolt Meszaros
  • 15,542
  • 12
  • 36
  • 40
Theo
  • 61
  • 1
  • 3

1 Answers1

0

It seems like your homebrew is unable to update. Try uninstalling it with:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"

Next, reinstall it with:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
adisidev
  • 193
  • 13
  • I've do it but, it don't really work, i still have the same error message with homebrew,. Did i have another way than homebrew to install what i need ? – Theo Nov 03 '21 at 09:10
  • You may want to look at a few of the answers here: https://stackoverflow.com/questions/39619889/homebrew-fatal-needed-a-single-revision-macos-sierra. – adisidev Nov 03 '21 at 11:36
  • it doesn't work, even if i uninstall and reinstall homebrew, i have the same problem.. As a result.. I think the best way is to find an alternative than homebrew to install the files i need. – Theo Nov 03 '21 at 13:48