digitalocean / ceph_exporter

Prometheus exporter that scrapes meta information about a ceph cluster.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

compile get error: "could not determine kind of name for C.rados_mgr_command"

kazu12 opened this issue · comments

I use go version 1.18, and compile in centos 7.9.2009. I get error:

# github.com/ceph/go-ceph/rados /root/go/pkg/mod/github.com/ceph/go-ceph@v0.14.0/rados/command.go:106:9: could not determine kind of name for C.rados_mgr_command
I also changed tag "luminous", "mimic", "nautilus", and "octopus", it is still not working.

how can I resovle this problem?

commented

Do you have the libs for the CGO dependencies? https://github.com/ceph/go-ceph#installation

yes, before I compiled , I have already installed librados2-devel, librb1-devel. I can't find there is some package like libcephfs**-devel.
after I installed centos-release-ceph-nautilu, it still no work.
btw, my OS is centos, 7.9.2009. Is the system's problem?

it solved. I use the tag nautilu, and compiled ok.

thinks!