0

I just got a Macbook and I'm attempting to build a chess engine, so I want to run the perft function on Stockfish to compare my perft results. When I was on PC, I was able to download the engine from the website and run the perft function fine, but I can't figure out how to do it on mac. I tried downloading Stockfish with Homebrew which apparently worked but when I tried the ./stockfish command to run t it outputted this error: zsh: no such file or directory: ./stockfish. Can anyone provide complete steps to do this? Or if there's any alternative that has a feature equivalent to what Stockfish's perft does that would be good too.

13
  • what is the executable called? this question is more suited for unix or apple stack exchange.
    – qwr
    Commented Aug 7, 2023 at 23:40
  • 1
    @qwr I wasn't sure where to post this but I decided to put it here because I figured that more people would know how to solve this in case it was a Stockfish-related problem and not purely a Unix problem. The executable in the src folder is called stockfish if that's what you're asking. I tried opening Stockfish by clicking on the executable icon and I got a zsh: illegal hardware instruction error in the terminal window that opened
    – wdk23
    Commented Aug 8, 2023 at 1:03
  • which MacBook are you using? You need to get a binary that matches your hardware. If it's designed for M1 chip then you need to get that binary version.
    – qwr
    Commented Aug 8, 2023 at 1:24
  • 1
    @qwr I'm on a 2023 14 inch pro with an m2 chip. So do I need a different version of Stockfish?
    – wdk23
    Commented Aug 8, 2023 at 1:44
  • 1
    you installed through homebrew? that means it should be in your PATH right? what happens if you try stockfish without ./
    – qwr
    Commented Aug 8, 2023 at 1:53

1 Answer 1

0

Solution: I downloaded stockfish through homebrew and was able to run it on the terminal with the command stockfish. All other commands are the same.

Credit: @qwr in the comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.