rizinorg / rizin-pm

1 stars 3 forks source link

`rz-pm -i rz-ghidra` installs to `/usr/local` instead of `~/.local` #9

Open theopechli opened 3 years ago

theopechli commented 3 years ago

Work environment

Questions Answers
OS/arch/bits (mandatory) Fedora 34 x86 64
rizin -v full output, not truncated (mandatory) rizin 0.3.0-git @ linux-x86-64 commit: 45796515509a056e991b41d9626a511624ab9b3f, build: 2021-05-30__15:44:01

Expected behavior

rz-pm -i rz-ghidra installs to ~/.local.

Actual behavior

rz-pm -i rz-ghidra fails with "Permission denied" because it tries to install to /usr/local.

Steps to reproduce the behavior

chinggg commented 3 years ago

I can reproduce this on Debian based distros, is it a feature or bug? I have to run rz-pm with sudo as a workaround.

wargio commented 3 years ago

probably a bug.

wargio commented 3 years ago

you can fix it by changing the prefix https://github.com/rizinorg/rz-ghidra#building

chinggg commented 3 years ago

you can fix it by changing the prefix https://github.com/rizinorg/rz-ghidra#building

Thanks! It works to install rz-ghidra. Which repo does this problem lies in? I can try to fix it forever.

ret2libc commented 3 years ago

BTW, I think this is the wrong repository... you are probably using rz-pm the bash script, which is in the rizinorg/rizin repository. This repository is about a new implementation in golang that can work across all major systems and provide compilable and binary plugins. It still needs to be developed though, but we plan to move it forward in the next few months.

you can fix it by changing the prefix https://github.com/rizinorg/rz-ghidra#building

Thanks! It works to install rz-ghidra. Which repo does this problem lies in? I can try to fix it forever.

You should probably look at https://github.com/rizinorg/rizin-pm/blob/master/db/rz-ghidra .