cargo install garage fails on libsodium (in docker) #244

Closed
opened 2022-02-16 08:18:27 +00:00 by runasleep · 2 comments

Following the instructions in docs https://garagehq.deuxfleurs.fr/documentation/cookbook/from-source/ currently fails on cargo install garage

Attached two logs:

  • debian:latest docker image on raspberry pi 3 (kernel 5.10.63-v7+ armv7l)
  • ubuntu:focal docker image on amd64 laptop (kernel 4.15.0-96-generic x86_64)
Following the instructions in docs https://garagehq.deuxfleurs.fr/documentation/cookbook/from-source/ currently fails on `cargo install garage` Attached two logs: - debian:latest docker image on raspberry pi 3 (kernel 5.10.63-v7+ armv7l) - ubuntu:focal docker image on amd64 laptop (kernel 4.15.0-96-generic x86_64)
Author

cargo build from the git sources (both tag v0.6.0 and current main 84613e6) fail with the same error

`cargo build` from the git sources (both tag v0.6.0 and current main 84613e6) fail with the same error
Owner

So I tried and got this additionnal error line that wasn't in your logs:

  /tmp/cargo-install0U0fjE/release/build/libsodium-sys-1640e3b7021362d4/out/source/libsodium/configure: line 11471: /usr/bin/file: No such file or directory

Installing the file packaged solved this, but now I'm at the same state as you.

Looking at the container environmenet for ubuntu:focal, it looks like make is not installed, so I went ahead and installed the whole build-essential (a metapackage that includes a C compiler, GNU Make, and other tools necessary for compiling stuff). This solved the issue.

I guess we'll make this issue a documentation issue to ask people to add build-essential to their list of packages to install beforehand.

So I tried and got this additionnal error line that wasn't in your logs: ``` /tmp/cargo-install0U0fjE/release/build/libsodium-sys-1640e3b7021362d4/out/source/libsodium/configure: line 11471: /usr/bin/file: No such file or directory ``` Installing the `file` packaged solved this, but now I'm at the same state as you. Looking at the container environmenet for `ubuntu:focal`, it looks like `make` is not installed, so I went ahead and installed the whole `build-essential` (a metapackage that includes a C compiler, GNU Make, and other tools necessary for compiling stuff). This solved the issue. I guess we'll make this issue a documentation issue to ask people to add `build-essential` to their list of packages to install beforehand.
lx added the
Documentation
label 2022-02-16 11:01:12 +00:00
lx closed this issue 2022-02-16 11:19:39 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Deuxfleurs/garage#244
No description provided.