unable to go get or godeps
palmertime opened this issue · 4 comments
palmertime commented
It looks like the comments arn't commenting! Let me know what i'm doing wrong.
When trying to install this project i get the following:
terraform-provider-vix (master)$ godep get
# github.com/hooklift/terraform-provider-vix/vendor/github.com/hooklift/govix
vendor/github.com/hooklift/govix/guest.go:7:10: fatal error: 'vix.h' file not found
#include "vix.h"
^
1 error generated.
godep: go exit status 2
godep: exit status 1
terraform-provider-vix (master)$ go get github.com/hooklift/terraform-provider-vix
# github.com/hooklift/terraform-provider-vix/vendor/github.com/hooklift/govix
vendor/github.com/hooklift/govix/guest.go:7:10: fatal error: 'vix.h' file not found
#include "vix.h"
^
1 error generated.
c4milo commented
Hey! I'm sorry you run into this issue. Because this module uses CGO and libvix C sources are not available, this module has to be cloned using Git instead.
c4milo commented
Also, try to use the Makefile instead of the regular Go tooling, it should set some needed env vars for you
cyberi0n commented
I am also having this issue. No vix.h in sight. VIX API is supposedly bundled with VMware Fusion. How do I make this build/install aware of that?
arizvisa commented
set CGO_FLAGS to /usr/include/vmware-vix
if you're using vmware-workstation and
set CLD_FLAGS to -L/usr/lib/vmware-vix -lvixAllProducts
.