nowsecure / r2frida

Radare2 and Frida better together.
MIT License
1.18k stars 121 forks source link

Install issue cannot find -lzip #99

Closed theblackturtle closed 6 years ago

theblackturtle commented 6 years ago

Hi, I trying install frida but always get this error. I tried install many times in arch linux, ubuntu and linux mint.

[ "`readlink ext/frida`" = frida-linux-12.0.8 ] || \
    (cd ext && rm -f frida ; ln -fs frida-linux-12.0.8 frida)
make io_frida.so
make[1]: Entering directory '/root/Downloads/r2frida'
pkg-config --cflags r_core
-I/usr/include/libr -I/usr/include/capstone -I/usr/include/libr
g++ src/io_frida.o -o io_frida.so -shared -fPIC -lr_core -lcapstone -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_magic -lmagic -lr_crypto -lr_hash -lr_io -lr_socket -lr_util -lz -lzip -ldl  ext/frida/libfrida-core.a -lresolv 
/usr/bin/ld: cannot find -lzip
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:132: io_frida.so] Error 1
make[1]: Leaving directory '/root/Downloads/r2frida'
make: *** [Makefile:96: all] Error 2

Please tell me how to fix it. Thanks.

trufae commented 6 years ago

Do you have libzip installed?

On 8 Sep 2018, at 14:14, sieunhando notifications@github.com wrote:

Hi, I trying install frida but always get this error. I tried install many times in arch linux, ubuntu and linux mint.

[ "readlink ext/frida" = frida-linux-12.0.8 ] || \ (cd ext && rm -f frida ; ln -fs frida-linux-12.0.8 frida) make io_frida.so make[1]: Entering directory '/root/Downloads/r2frida' pkg-config --cflags r_core -I/usr/include/libr -I/usr/include/capstone -I/usr/include/libr g++ src/io_frida.o -o io_frida.so -shared -fPIC -lr_core -lcapstone -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_magic -lmagic -lr_crypto -lr_hash -lr_io -lr_socket -lr_util -lz -lzip -ldl ext/frida/libfrida-core.a -lresolv /usr/bin/ld: cannot find -lzip collect2: error: ld returned 1 exit status make[1]: [Makefile:132: io_frida.so] Error 1 make[1]: Leaving directory '/root/Downloads/r2frida' make: [Makefile:96: all] Error 2 Please tell me how to fix it. Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

theblackturtle commented 6 years ago

Thanks, I fixed it.

enovella commented 6 years ago

sudo apt install cmake make libzip-dev nodejs npm curl

trufae commented 6 years ago

thanks, i have updated the README with a section containing installation instructions

On Mon, Sep 10, 2018 at 12:45 PM Eduardo Novella notifications@github.com wrote:

sudo apt install cmake make libzip-dev nodejs npm curl

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/nowsecure/r2frida/issues/99#issuecomment-419870116, or mute the thread https://github.com/notifications/unsubscribe-auth/AGIjGymzUv0fXSIr0C3TwYBLsF_SCxqIks5uZkK0gaJpZM4Wf2OQ .

enovella commented 6 years ago

This issue can be closed now.