Installing Ghidra on Mac M1 feat. Installing Java, Gradle using Nix Env

Christine LeeChristine Lee
1 min read

Installing Java

https://search.nixos.org/packages?channel=24.05&show=jdk&from=0&size=50&sort=relevance&type=packages&query=jdk

  • I don't use flakes so I've installed using nix-env -iA nixpkgs.jdk

  • Close and reopen terminal

  • Check with java --version and javac --version to confirm proper installation

Installing Gradle

Install Gradle to rebuild native binary for ARM64

https://search.nixos.org/packages?channel=24.05&show=gradle&from=0&size=50&sort=relevance&type=packages&query=gradle

  • I don't use flakes so I've installed using nix-env -iA nixpkgs.gradle

  • Close and reopen terminal

  • Check with gradle --version to confirm proper installation

Installing Ghidra

  • Install latest package from github repo

  • Run buildNatives inside support folder, like this ./buildNatives

  • Run ghidraRun to start Ghidra application

Reference

https://hacksms.tistory.com/269

0
Subscribe to my newsletter

Read articles from Christine Lee directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Christine Lee
Christine Lee