You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/07/26 09:12:01 UTC
[GitHub] [pulsar-client-go] Sherlock-Holo opened a new issue #573: Windows user can't not build with this lib
Sherlock-Holo opened a new issue #573:
URL: https://github.com/apache/pulsar-client-go/issues/573
#### Expected behavior
build success
#### Actual behavior
build failed, report
```
# github.com/DataDog/zstd
cgo: exec gcc: exec: "gcc": executable file not found in %PATH%
```
because the zstd lib that pulsar-client-go used is a cgo lib
#### Steps to reproduce
build this codes
```go
package main
import (
"fmt"
"github.com/apache/pulsar-client-go/pulsar"
)
func main() {
fmt.Println(pulsar.AUTO)
}
```
#### System configuration
**Pulsar go client version**: v0.6.0
**GO**: 1.16.6
It seems this [lib](https://github.com/klauspost/compress/tree/master/zstd#zstd) doesn't use the cgo, so Windows user can use pulsar-client-go too
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar-client-go] Sherlock-Holo commented on issue #573: Windows user can't build this lib
Posted by GitBox <gi...@apache.org>.
Sherlock-Holo commented on issue #573:
URL: https://github.com/apache/pulsar-client-go/issues/573#issuecomment-887161493
set env `CGO_ENABLED=0` can build now, but could plusar-client-go detect the OS and decide use cgo or not?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar-client-go] merlimat commented on issue #573: Windows user can't build this lib
Posted by GitBox <gi...@apache.org>.
merlimat commented on issue #573:
URL: https://github.com/apache/pulsar-client-go/issues/573#issuecomment-886730960
@Sherlock-Holo Are you compiling with `CGO_ENABLED=1`? Setting that to 0 will make the library to use the pure go compression library.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar-client-go] liangyuanpeng commented on issue #573: Windows user can't build this lib
Posted by GitBox <gi...@apache.org>.
liangyuanpeng commented on issue #573:
URL: https://github.com/apache/pulsar-client-go/issues/573#issuecomment-931866663
@Sherlock-Holo In my windows, i build success when `CGO_ENABLED=0` or `CGO_ENABLED=1`, nothing to do with OS.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org