Containerd: btrfs error on build

Created on 5 Aug 2019  路  4Comments  路  Source: containerd/containerd

Hello i am using CentOS Linux release 7.6.1810 (Core) . I am trying to make a build of containerd project but i'am facing this issue :

`

  • bin/ctr
  • bin/containerd

github.com/containerd/containerd/vendor/github.com/containerd/btrfs

vendor/github.com/containerd/btrfs/btrfs.go:38:25: fatal error: btrfs/ioctl.h: No such file or directory
#include
^
compilation terminated.
make: * [bin/containerd] Erreur 2
`

kinbug

Most helpful comment

Have you installed btrfs-progs-devel? @fahedouch

I'm pretty sure that I only installed btrfs-tools on Ubuntu before, and it worked for me, but suddenly stopped working.

All 4 comments

I keep getting same error recently.

Haven't got time to check what dependency was changed.

You just have to install the btrfs headers and it should be fine.

Have you installed btrfs-progs-devel? @fahedouch

I'm pretty sure that I only installed btrfs-tools on Ubuntu before, and it worked for me, but suddenly stopped working.

@Random-Liu btrfs-progs-devel does resolve the problem.

Was this page helpful?
0 / 5 - 0 ratings