1

I tried to run rabin2 (radare2 util) and got that error:

rabin2
# ERROR: Library handler has failed for '~/.local/share/radare2/plugins/core_pdd.so'

I've tried to google the error and got nothing: "Library handler has failed for" query with quotes and about 3 results, including radare2 source code.

This error is definitely thrown from here, but I can't figure out what exactly is wrong.

radare2 was installed according to author's instructions. So was r2dec. Also, I used export PATH="$PATH:$HOME/.r2env/versions/radare2@git/bin" to make it work.

At a quick glance, pdd and r2dec work pretty fine when executed from r2 console.

Could you give me a clue how to fix that?


Versions:

r2 -v
# radare2 5.8.5 30144 @ linux-x86-64 git.5.8.4-98-g0cf6e7a5cc, 
# commit: 0cf6e7a5cc90554d735f4071b8b4888005e63428 build: 2023-04-08__22:52:24
uname -r
# 5.15.0-69-generic
lsb_release -a
# No LSB modules are available.
# Distributor ID: Ubuntu
# Description:    Ubuntu 22.04.2 LTS
# Release:        22.04
# Codename:       jammy

r2dec version: 5.7.8+ (commit 23819a6)

Emil Viesná
  • 88
  • 1
  • 12
  • Did you ever solve this? – applehelpwriter Jul 15 '23 at 18:50
  • @applehelpwriter nope, I tried all above and nothing else :( – Emil Viesná Jul 19 '23 at 13:53
  • [Author's response:](https://github.com/radareorg/radare2/discussions/22079) R2-5.8.5 is pretty old, please update. My assumption is that you have inpaired versions of libraries. You can run make purge in the r2 repo to remove all system installations of r2, so you can start clean from there – Emil Viesná Aug 01 '23 at 08:21

1 Answers1

0

I had a similar issue earlier while trying to pipe the output to a file. Rabin2 is used in a terminal or a running instance of radare2.
For example:

r2 /path/to/file
[0x00000000] > .!rabin2 -flags $FILE

I'd have put this in a comment, but I don't have the reputation. Here is the man page showing the flags and use case.

dwir
  • 1
  • 1