-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
Problem
Building the sample main.go from the README.md on MacOS I get the following result:
$ go build
# pkg-config --cflags -- glusterfs-api glusterfs-api glusterfs-api
Package glusterfs-api was not found in the pkg-config search path.
Perhaps you should add the directory containing `glusterfs-api.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glusterfs-api' found
Package glusterfs-api was not found in the pkg-config search path.
Perhaps you should add the directory containing `glusterfs-api.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glusterfs-api' found
Package glusterfs-api was not found in the pkg-config search path.
Perhaps you should add the directory containing `glusterfs-api.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glusterfs-api' found
pkg-config: exit status 1Ok. It seems that glusterfs-api is not available natively for Mac. Perhaps I can try cross compile the binary for a linux image:
$ GOOS=linux GOARCH=amd64 go build
# main
./main.go:6:10: undefined: gfapi.VolumeSteps to replicate
- a test go project was created as per the instructions on github.com/gluster/gogfapi
GOOS=linux GOARCH=amd64 go buildwas executed to do the build
zhijian-pro
Metadata
Metadata
Assignees
Labels
No labels