containers / krunvm

Create microVMs from OCI images
Apache License 2.0
1.41k stars 42 forks source link

krun lib dependency ? #29

Closed setop closed 2 years ago

setop commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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