Build Ghidra Development on Ubuntu 18 Linux
09-23-2019
Language or Platform: Other
Code:
sudo apt-get update
sudo apt-get install bison flex
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk version
mkdir gradle
cd gradle
sdk install gradle 6.7
cd ../
git clone https://github.com/NationalSecurityAgency/ghidra.git
cd ghidra
gradle --init-script gradle/support/fetchDependencies.gradle init
NOTE You will need to have Java 11 installed.
sudo apt install openjdk-11-jdk
I actually had to install
multiple versions of Java and manually select version 11 with:
sudo update-alternatives --config java
gradle buildGhidra
gradle prepDev
gradle buildNatives_linux64
Output will be
~/ghidra/build/dist/
Unzip the file file to any location and run ./ghidraRun
When you run Ghidra, you may have to point it to 'javac' which can be located using:
find / -name javac
Back