onesixtyone icon indicating copy to clipboard operation
onesixtyone copied to clipboard

How can we install it On Mac M1

Open fubxx opened this issue 1 year ago • 1 comments

hi all , How can we install it On Mac M1

fubxx avatar Aug 08 '24 06:08 fubxx

Please provide more information. There's a Makefile in the project that should work fine on Apple Silicon; if it isn't, please give us the error message you're seeing and we can try and diagnose it.

woodruffw avatar Aug 08 '24 14:08 woodruffw

Good news! I can confirm that onesixtyone builds and runs perfectly on Apple Silicon (tested on an M-series Mac).

Quick Installation Steps

  1. Clone the repository:

    git clone https://github.com/trailofbits/onesixtyone.git
    cd onesixtyone
    
  2. Build with make:

    make
    
  3. Verify it's working:

    ./onesixtyone
    

That's it! The standard Makefile works without any modifications on Apple Silicon.

What you should see:

After running make, you'll get a native ARM64 binary:

cc    -o onesixtyone onesixtyone.c

You can verify it's an Apple Silicon native binary with:

file onesixtyone
# Output: onesixtyone: Mach-O 64-bit executable arm64

Prerequisites

You just need Xcode Command Line Tools installed (which provides cc/gcc). If you don't have them:

xcode-select --install

Optional: System-wide installation

If you want to install it system-wide:

sudo make install

This will install:

  • Binary to /usr/bin/onesixtyone
  • Dictionary file to /usr/share/onesixtyone/dict.txt
  • Man page to /usr/share/man/man1/onesixtyone.1

The tool compiles cleanly without any warnings or errors on Apple Silicon. No special flags or modifications needed!

dguido avatar Aug 30 '25 17:08 dguido

Closing this issue as the installation instructions above should resolve the question. onesixtyone builds successfully on Apple Silicon Macs (M1/M2/M3) using the standard Makefile without any modifications needed. Feel free to reopen if you encounter any specific build errors!

dguido avatar Aug 30 '25 17:08 dguido