radareorg / radare2

UNIX-like reverse engineering framework and command-line toolset
https://www.radare.org/
GNU Lesser General Public License v3.0
20.58k stars 3k forks source link

r_core not found when installing r2pm plugin #10642

Closed cryptax closed 6 years ago

cryptax commented 6 years ago

I am trying to install r2frida this time in a Docker container which is based on an Ubuntu 16.04. I did r2pm init, r2pm update. Then I try r2pm -i r2frida. And it fails pretty quickly complaining it cannot find r_core. (see log below)

To my understanding, those are the radare2 core libraries? Why aren't they finding them? They're obviously there ;)

Home dir for radare2: /opt/radare2 That's what I have in ~/.local/share/radare2/r2pm:

db  git  pkg

I tried to install another plugin (not r2frida) , and it seemed to work ok.

Work environment

Questions Answers
OS/arch/bits (mandatory) Ubuntu 16.04.2 LTS
File format of the file you reverse (mandatory) -
Architecture/bits of the file (mandatory) x86/64
r2 -v full output, not truncated (mandatory) rradare2 2.7.0-git 18677 @ linux-x86-64 git.2.6.9-38-gb9ce57d commit: b9ce57d68d57c9e9689859baae7fae972d2f5351 build: 2018-07-06__11:37:48

Expected behavior

Install r2frida. Though in that case, the issue seems to be with r2pm?

Actual behavior

# r2pm -i r2frida
Already up-to-date.
Install Done For r2frida
Makefile:1: config.mk: No such file or directory
./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for working directories... current
using prefix '/usr/local'
checking for c compiler... gcc
checking for c++ compiler... g++
ERROR: Cannot find PKGCONFIG pkg-config
Using PKGCONFIG: pkg-config
checking pkg-config flags for r_core... no
This package is required
Makefile:128: recipe for target 'config.mk' failed
make: *** [config.mk] Error 1
ERROR: Build failed

Steps to reproduce the behavior

In a Docker container, clone radare2. Then install with sys/install.sh. Then r2pm init, then r2pm -i r2frida

radare commented 6 years ago

It cant find rcore because you don’t have pkgconfig installed

On 6 Jul 2018, at 14:10, cryptax notifications@github.com wrote:

I am trying to install r2frida this time in a Docker container which is based on an Ubuntu 16.04. I did r2pm init, r2pm update. Then I try r2pm -i r2frida. And it fails pretty quickly complaining it cannot find r_core. (see log below)

To my understanding, those are the radare2 core libraries? Why aren't they finding them? They're obviously there ;)

Home dir for radare2: /opt/radare2 That's what I have in ~/.local/share/radare2/r2pm:

db git pkg I tried to install another plugin (not r2frida) , and it seemed to work ok.

Work environment

Questions Answers OS/arch/bits (mandatory) Ubuntu 16.04.2 LTS File format of the file you reverse (mandatory) - Architecture/bits of the file (mandatory) x86/64 r2 -v full output, not truncated (mandatory) rradare2 2.7.0-git 18677 @ linux-x86-64 git.2.6.9-38-gb9ce57d commit: b9ce57d build: 2018-07-06__11:37:48 Expected behavior

Install r2frida. Though in that case, the issue seems to be with r2pm?

Actual behavior

r2pm -i r2frida

Already up-to-date. Install Done For r2frida Makefile:1: config.mk: No such file or directory ./configure checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for working directories... current using prefix '/usr/local' checking for c compiler... gcc checking for c++ compiler... g++ ERROR: Cannot find PKGCONFIG pkg-config Using PKGCONFIG: pkg-config checking pkg-config flags for r_core... no This package is required Makefile:128: recipe for target 'config.mk' failed make: *** [config.mk] Error 1 ERROR: Build failed Steps to reproduce the behavior

In a Docker container, clone radare2. Then install with sys/install.sh. Then r2pm init, then r2pm -i r2frida

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

cryptax commented 6 years ago

ah yes - sorry. Stupid :(

fr33k3v1n0 commented 4 months ago

i have the same error and pkg-config is already installed

trufae commented 4 months ago

How did you installed r2? Distros use to ship the pkgconfig files separately

fr33k3v1n0 commented 4 months ago

hello. it work now. i deinstalled radare2 and reinstall it from GitHub. Thank you very much . Good bless you.

Le ven. 7 juin 2024 à 08:58, pancake @.***> a écrit :

How did you installed r2? Distros use to ship the pkgconfig files separately

— Reply to this email directly, view it on GitHub https://github.com/radareorg/radare2/issues/10642#issuecomment-2154301133, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZMC3MXIH5EI5PKW62FVKMTZGFR4FAVCNFSM6AAAAABI5UGK6SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJUGMYDCMJTGM . You are receiving this because you commented.Message ID: @.***>