Open urza opened 2 weeks ago
This error looks like there are build tools missing. If you're using Ubuntu or something similar please try this:
sudo apt update
sudo apt install build-essential
The docker image is a portable binary release, you might consider using that instead. Releasing "plain" binaries is not as simple as it might seem. Some of the dependencies are linked to shared objects outside of minmon itself, so the resulting binary is not 100% portable. It would be an option to offer pre-built Debin/Ubuntu and/or RPM packages though. Which distribution are you using?
I am using Ubuntu Server. Mix of 22.04 and 24.04
Docker is nice, but I would also like to use minmon in some situations which are so low on resources that running Docker is not possible (VPS and such).
Doesn't rust have something like static build where it compiles all it needs into the resulting binary?
Doesn't rust have something like static build where it compiles all it needs into the resulting binary?
Yes and no. The rust "parts" of the binary are statically linked. But some of the dependencies dynamically link to shared objects.
This is the output of ldd
for the MinMon binary on Arch Linux:
linux-vdso.so.1 (0x00007ffe7efc4000)
libssl.so.3 => /usr/lib/libssl.so.3 (0x000076b1bd927000)
libcrypto.so.3 => /usr/lib/libcrypto.so.3 (0x000076b1bd400000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x000076b1bdcb1000)
libm.so.6 => /usr/lib/libm.so.6 (0x000076b1bd315000)
libc.so.6 => /usr/lib/libc.so.6 (0x000076b1bd131000)
/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x000076b1bdce3000)
OpenSSL (libcrypto
and libssl
) could be replaced with rustls which minmon already supports. The resulting binary would have improved portability but still not perfect (i.e. musl-based distributions like Alpine still won't work). Prepackaged deb and rpm packages would be more robust as they track dependencies and give proper error messages when they fail to install. I'm undecided on which way is the better one to be honest. Do you know other projects that release prebuilt (unpackaged) binaries? Would be good to see how others handle this problem.
Did you try to build with build-essentials
installed on Ubuntu?
Hi, would you consider publishing compiled binary with your releases please?
For people who are not rust developers, it is added complexity to compile minmon. I just followed your instructions, but my cargo install command ended with error
I can imagine that it is not just me who would appreciate if you published the binary with releases that we could just drop into the system..
Thanks