wargio / r2dec-js

radare2 plugin - converts asm to pseudo-C code.
511 stars 48 forks source link

fatal error: 'r_cons.h' file not found #232

Closed umasii closed 3 years ago

umasii commented 3 years ago

Describe the bug When I run "r2pm -i r2dec" my terminal produces the following:

Your branch is up to date with 'origin/master'.
Already up to date.
Install Done For r2dec
make: pkg-config: Command not found
[CC] duktape/duktape.o
make: pkg-config: Command not found
[CC] duktape/duk_console.o
duktape/duk_console.c:13:10: fatal error: 'r_cons.h' file not found
#include <r_cons.h>
         ^~~~~~~~~~
1 error generated.
make: *** [duktape/duk_console.o] Error 1

I've tried both reinstalling r2, as that was the fix for another user, and running "sudo apt install pkg-config", which produces the error

Unable to locate an executable at "/Library/Java/JavaVirtualMachines/jdk-15.0.2.jdk/Contents/Home/bin/apt" (-1)

Any help is greatly appreciated!

Component

wargio commented 3 years ago

use radare2 from git, not the one from the package manager.

wargio commented 3 years ago

also you need to install pkg-config which is the main cause here.

umasii commented 3 years ago

Thanks for the response! r2 was installed via

git clone https://github.com/radareorg/radare2.git

and when I try to install pkg-config it gives the error in my first post. Sorry for the hassle.

jelasin commented 1 year ago

How can I uninstall the radare2 in kali

wargio commented 1 year ago

i guess cloning from the git repo and following the instruction in the readme. i strongly advise you to read the manual in this case.