Closed jimsalterjrs closed 2 years ago
0.12.11 built and installed fine on the same machine, btw. (Ubuntu 20.04)
Jim, appreciate you taking the time to build from sources, and to file this bug. Know the extra work is not ideal for any user.
My best guess is that this is related to the version of Rust you have installed. Did you install Rust from apt
instead of rustup
? I believe this code builds with the latest Rust 1.62. Maybe run rustup update
if you did install Rust via rustup
? If you didn't, yes, this is probably an example of the faster moving Rust ecosystem moving faster than the distributions' packaging.
FYI, sidebar, many Rust packages have a minimum supported Rust version (MSV) they test against and with which they guarantee compatibility. Say versions 1.5 or 1.42. I don't, because I always update to the latest stable Rust version. This is really about me trying to keep httm
simple for me.
This is definitely something that could also be checked in a CI/CD pipeline with a GitHub action to just build against the MSV. GitHub actions and CI/CD are not currently on my to-do, but maybe they should be, along with better tests integrated in the repo.
This had a pretty simple fix for 1.59 and should build on 20.04 now. See: https://github.com/kimono-koans/httm/commit/580307a3210f11b6927c3e2d1ed8b65cd775c9f1
To install the latest bits, without cloning the repo, use: cargo install --git https://github.com/kimono-koans/httm
My best guess is that this is related to the version of Rust you have installed. Did you install Rust from apt instead of rustup?
I first performed the rustup installation as suggested. But when I tried to use cargo in the next step, the machine complained about having no such command available, and offered apt install cargo as a way to get it.
I did a quick check to make sure cargo hadn't simply been put in /opt or something, could not find it, then did apt install cargo. After that, the cargo commands worked, but neither building from master nor building from the source for 0.13.0 worked; both produced the same error shown above.
Dropping back to 0.12.11 did work; beginning from the source for that release cargo deb finished without complaint, and dpkg -i on the deb produced resulted in a working httm binary.
I first performed the rustup installation as suggested. But when I tried to use cargo in the next step, the machine complained about having no such command available, and offered apt install cargo as a way to get it.
That's interesting. FYI, it should install to .cargo/bin
and add that directory to your path, for me, via . "$HOME/.cargo/env"
to my .zshenv
. Yeah, might have hit an rustup
install bug.
I'm closing these both, as I'm now using a GH action to build both Redhat and Debian packages on Ubuntu 18.04. Should work on most distros now.
See: https://github.com/kimono-koans/httm/blob/master/.github/workflows/package-build.yml
Feel free to reopen if you you think additional comments are necessary. Thanks Jim!
When attempting to build from source: