I'm trying to install r2dec plugin for radare2. The Build fails because there are some files missing.
first I did run following commands
$r2pm init
then
$r2pm init
then i tried to install it with :
$r2pm -i r2dec
When the build failed I installed npm because a comment on this answer suggested it https://stackoverflow.com/a/51466052/10854709
$sudo apt install nodejs
Expected output would be a successful build.
the actual output is the following:
Install Done For r2dec make: Entering directory '/home/me/.local/share/radare2/r2pm/git/r2dec-js/p' cc -I/home/me/.local/share/radare2/prefix/include -g -O3 -I/usr/include/libr -I./duktape -L/home/me/.local/share/radare2/prefix/lib -lr_core -lr_config -lr_debug -lr_bin -lr_anal -lr_bp -lr_egg -lr_asm -lr_lang -lr_parse -lr_flag -lr_cons -lr_reg -lr_search -lr_syscall -lr_fs -lr_io -lr_socket -lr_magic -lr_crypto -lr_hash -lr_util -ldl -lm -std=c99 -shared -fPIC duktape/duktape.c duktape/duk_console.c core_pdd.c -o core_pdd.so
duktape/duk_console.c:13:20: fatal error: r_cons.h: No such file or directory
[..]
core_pdd.c:8:21: fatal error: r_types.h: No such file or directory
[..]
compilation terminated. Makefile:10: recipe for target 'all' failed make: *** [all] Error 1 make: Leaving directory '/home/me/.local/share/radare2/r2pm/git/r2dec-js/p'
Try this: sudo apt install pkg-config