hooklift / terraform-provider-vix

VMware VIX provider for Terraform
Mozilla Public License 2.0
103 stars 22 forks source link

unable to go get or godeps #36

Open palmertime opened 7 years ago

palmertime commented 7 years ago

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 7 years ago

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 7 years ago

Also, try to use the Makefile instead of the regular Go tooling, it should set some needed env vars for you

cyberi0n commented 5 years ago

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 4 years ago

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.