You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 variableNo package 'glusterfs-api' foundPackage 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 variableNo package 'glusterfs-api' foundPackage 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 variableNo package 'glusterfs-api' foundpkg-config: exit status 1
Ok. 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.Volume
Steps to replicate
a test go project was created as per the instructions on github.com/gluster/gogfapi
GOOS=linux GOARCH=amd64 go build was executed to do the build
The text was updated successfully, but these errors were encountered:
Problem
Building the sample main.go from the
README.md
on MacOS I get the following result:Ok. 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.Volume
Steps to replicate
GOOS=linux GOARCH=amd64 go build
was executed to do the buildThe text was updated successfully, but these errors were encountered: