confluentinc / confluent-kafka-go-dev

[EXPERIMENTAL] Development / WIP / exploratory / test fork of confluent-kafka-go
Apache License 2.0
0 stars 7 forks source link

Getting error on build #7

Open anitacapitalone opened 4 years ago

anitacapitalone commented 4 years ago

Description

Using import: "github.com/confluentinc/confluent-kafka-go-dev/kafka"

trying to build with CGO_ENABLED=1 GOOS=linux GOARCH=amd64 (on macOS)

get error:

# github.com/confluentinc/confluent-kafka-go-dev/kafka
ld: library not found for -lrt
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [build] Error 2

what am I missing?

How to reproduce

Checklist

Please provide the following information:

go version 1.14

Digl commented 4 years ago

I have the same problem! Is there any solution for this?

ladislavmacoun commented 3 years ago

had similiar issue

go build ./...
/usr/local/go/pkg/tool/darwin_amd64/link: running clang failed: exit status 1
ld: library not found for -lz
clang-11: error: linker command failed with exit code 1 (use -v to see invocation)

xcode-select --install solved it for me