reverse-engineeringghidra

Decompiler not working in Ghidra Disassembler


I'm kind of new to Ghidra Disassembler so kindly bear with me .

I was trying to install Ghidra to analyse an executable. After opening the executable in Ghidra it loads everything fine except Decompiler. Decompiler window displays

Decompiler: Unable to initialize the DecompilerInterface: Could not find decompiler executable" this error message. Also it shows "os/mac_x86_64/decompile does not exist

I downloaded it from here. I also have JDK installed in my mac. What should i do so as to make Decompiler work?

Image 1

Image 2

Image 3

As the error says there is no decompiler inside "os/mac_x86_64". Not sure on what i should do.

Image 5


Solution

  • Issue happened because I removed the decompile file while installing ghidra for the first coz gatekeeper in my Mac prompted me to remove it as it was from github. Solution to this issue is to allow it in the Security & Privacy . Thank you @Robert for ur inputs and ur time. U saved me ton of time.

    Image 1

    Clicking "Allow Anyways" without removing decompile fixed the issue for me.

    Image 2