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

Installed executable cannot find libchronolog_client.so #232

Open
fkengun opened this issue Dec 10, 2024 · 0 comments
Open

Installed executable cannot find libchronolog_client.so #232

fkengun opened this issue Dec 10, 2024 · 0 comments

Comments

@fkengun
Copy link
Contributor

fkengun commented Dec 10, 2024

Summary

LD_LIBRARY_PATH has to be manually set before running any ChronoLog binaries from the installation directory.

Steps to reproduce

Running ${INSTAL_PATH}/bin/client_admin fails with an error message like this

/home/kfeng/chronolog/Debug/bin/client_admin: error while loading shared libraries: libchronolog_client.so: cannot open shared object file: No such file or directory

What is the current bug behavior?

Binaries have to be run with LD_LIBRARY_PATH configured properly like this

LD_LIBRARY_PATH=~/chronolog/Debug/lib ~/chronolog/Debug/bin/client_admin

What is the expected correct behavior?

ChronoLog binaries should be able to run as it is. No additional things need to be set.

Potential cause

RPATH or RUNPATH is not configured correctly. Currently there are lines of messages during make install. It means the RPATH or RUNPATH is set to empty which could be the root cause of this issue.

-- Set runtime path of "/home/kfeng/chronolog/Debug/bin/client_admin" to ""

Potential solution

Set RPATH or RUNPATH using CMake variable CMAKE_INSTALL_RPATH might fix it.

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

No branches or pull requests

1 participant