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

krun lib dependency ? #29

Closed
setop opened this issue Aug 9, 2022 · 3 comments
Closed

krun lib dependency ? #29

setop opened this issue Aug 9, 2022 · 3 comments

Comments

@setop
Copy link

setop commented Aug 9, 2022

using make or cargo build --release, I get an error /usr/bin/ld: cannot find -lkrun.

I don't get where dependency comes from : os (apt) or rust (cargo).

Any idea ?

@slp
Copy link
Collaborator

slp commented Aug 9, 2022

krunvm needs to link against libkrun, which is a dynamic library. I'm aware that libkrun is packaged in Fedora Rawhide and OpenSUSE, but I don't know about other distros.

@setop
Copy link
Author

setop commented Aug 13, 2022

I've seen it's in rust but not available on crates.io.
So I added its git repo to the cargo.toml file.
It kinda works but then I have issue compiling librun : something about init binary that is not found.
I have to work on it...

@slp
Copy link
Collaborator

slp commented Aug 16, 2022

Even though is written in Rust, libkrun is a dynamic library and it's intended to be built using make as indicated in documentation.

@slp slp closed this as completed Aug 31, 2022
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

2 participants