yunionio / cloudpods

A cloud-native open-source unified multi-cloud and hybrid-cloud platform. 开源、云原生的多云管理及混合云融合平台
https://www.cloudpods.org
Apache License 2.0
2.59k stars 532 forks source link

源码编译组件报错,是服务器缺少什么库文件吗? #6647

Closed Jorcyzz closed 4 years ago

Jorcyzz commented 4 years ago

[root@i-yvriesdx onecloud-master]# make cmd/host-image/ fatal: Not a git repository (or any parent up to mount point /data) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). fatal: Not a git repository (or any parent up to mount point /data) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). fatal: Not a git repository (or any parent up to mount point /data) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). go build -mod vendor -ldflags "-w -X yunion.io/x/pkg/util/version.gitVersion= -X yunion.io/x/pkg/util/version.gitCommit= -X yunion.io/x/pkg/util/version.gitBranch= -X yunion.io/x/pkg/util/version.buildDate=2020-05-28T13:10:42Z -X yunion.io/x/pkg/util/version.gitTreeState=clean -X yunion.io/x/pkg/util/version.gitMajor=0 -X yunion.io/x/pkg/util/version.gitMinor=0" -o /data/go/src/onecloud-demo/onecloud-master/_output/bin/host-image yunion.io/x/onecloud/cmd/host-image/

yunion.io/x/onecloud/pkg/hostimage

pkg/hostimage/image.go:20:23: fatal error: libqemuio.h: No such file or directory

include "libqemuio.h"

                   ^

compilation terminated. make: *** [cmd/host-image/] 错误 2

wanyaoqi commented 4 years ago

@Jorcyzz 这个组件编译依赖qemu的代码 默认可以不用编译这个 ,可以直接使用我们做好的rpm包 https://iso.yunion.cn/yumrepo-3.0/rpms/packages/host/host-image-1.0.5-1.el7.centos.x86_64.rpm 或者做好的docker镜像 registry.cn-beijing.aliyuncs.com/yunionio/host-base:latest,位置在 /opt/yunion/bin/host-image

zexi commented 4 years ago

/close

yunion-ci-robot commented 4 years ago

@zexi: Closing this issue.

In response to [this](https://github.com/yunionio/onecloud/issues/6647#issuecomment-679840102): >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.