Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libr_core.so: cannot open shared object file: No such file or directory #59

Closed
VolkerSchlegel opened this issue Oct 2, 2021 · 8 comments

Comments

@VolkerSchlegel
Copy link
Contributor

Evironment:
Arch Linux (completely up to date)
iaito + radare2 installed from git

[kakidev@arch iaito]$ make run
build/iaito
build/iaito: error while loading shared libraries: libr_core.so: cannot open shared object file: No such file or directory
make: *** [Makefile:88: run] Fehler 127
[kakidev@arch iaito]$ 
@radare
Copy link
Collaborator

radare commented Oct 3, 2021 via email

@VolkerSchlegel
Copy link
Contributor Author

VolkerSchlegel commented Oct 4, 2021

I just did

./configure
make
make install

@trufae
Copy link
Collaborator

trufae commented Oct 6, 2021

./configure, uses /usr/local as default path for installation, if your system doesnt have this path in the library path (etc/ld.so.conf and LD_LIBRARY_PATH env var), then the program needs to be compiled with rpath in order to find the libraries in there.

Using rpath is a bad practice because it limits the ability to the user to tell the system where the libs are. So its not done by default, as long as all distros will complain if so.

git pull, i just pushed a "fix" for make run to inherit the ldpath from r2, so it will work for your case, but will fail again when installed because no rpath or ld.so.conf

@VolkerSchlegel
Copy link
Contributor Author

Ok, thanks

@VolkerSchlegel
Copy link
Contributor Author

I tried adding /usr/local to /etc/ld.so.conf and then running ldconfig, but it still can't find it.

@trufae
Copy link
Collaborator

trufae commented Nov 4, 2021

The path is /usr/local/lib

@VolkerSchlegel
Copy link
Contributor Author

Oh.

@VolkerSchlegel
Copy link
Contributor Author

Ok, it finds the shared object now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants