openimsdk / chat

A business server that includes user registration and login, deployed together with Open-IM-Server, can be used to set up a chat product.
https://openim.io
GNU General Public License v3.0
82 stars 102 forks source link

An error occurred while compiling the chat business server on CentOS 7 #42

Closed xiao-arch closed 11 months ago

xiao-arch commented 1 year ago

What happened?

CGO_ENABLED=0 GOOS=linux GOARCH=amd64; go build -ldflags="-w -s" -o open_im_chat_api error obtaining VCS status: exit status 128

What did you expect to happen?

编译报错 make build make[1]: 进入目录“/home/OpenIM-V3.0/chat/cmd/api/chat_api” CGO_ENABLED=0 GOOS=linux GOARCH=amd64; go build -ldflags="-w -s" -o open_im_chat_api error obtaining VCS status: exit status 128 Use -buildvcs=false to disable VCS stamping. make[1]: [build] 错误 1 make[1]: 离开目录“/home/OpenIM-V3.0/chat/cmd/api/chat_api” make: [install] 错误 2 open_im_chat_api build failed

How can we reproduce it (as minimally and precisely as possible)?

./build_all_service.sh

Anything else we need to know?

No response

version

[root@172-10-32-116 chat]# git branch -a main

Cloud provider

OS version

[root@172-10-32-116 /]# cat /etc/os-release NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7"

Install tools

skiffer-git commented 1 year ago

CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-buildvcs=false"

skiffer-git commented 1 year ago

https://github.com/spdk/spdk-csi/commit/97da59882e3451d05a9876d62ac19d093080c4ed

xiao-arch commented 1 year ago

CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-buildvcs=false" 这个在哪里加呢

kubbot commented 12 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

kubbot commented 11 months ago

This issue was closed because it has been stalled for 7 days with no activity.