Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go build 构建失败 #273

Closed
fsy2020 opened this issue Nov 12, 2024 · 3 comments
Closed

go build 构建失败 #273

fsy2020 opened this issue Nov 12, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@fsy2020
Copy link

fsy2020 commented Nov 12, 2024

docker运行成功。没写过go,这个是文件缺失的bug吗
image

@fsy2020 fsy2020 added the bug Something isn't working label Nov 12, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: go build Build failed

I have never written Go. Is this a file missing bug?
image

@imszy
Copy link

imszy commented Nov 13, 2024

  1. execute command:

sudo apt-get update
sudo apt-get install libwebp-dev

  1. enable Cgo:

export CGO_ENABLED=1

  1. check if enabled or not:

go env CGO_ENABLED

enabled if return 1

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


  1. When executing go build -o chatnio, it prompts that there is a problem with the webp library. Solution:

sudo apt-get update
sudo apt-get install libwebp-dev

Start Cgo

export CGO_ENABLED=1

Check if it is enabled

go env CGO_ENABLED

If the return value is 1, it has been enabled

@coaidev coaidev locked and limited conversation to collaborators Nov 15, 2024
@zmh-program zmh-program converted this issue into discussion #279 Nov 15, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants