Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to go get or godeps #36

Open
palmertime opened this issue Jul 5, 2017 · 4 comments
Open

unable to go get or godeps #36

palmertime opened this issue Jul 5, 2017 · 4 comments

Comments

@palmertime
Copy link

palmertime commented Jul 5, 2017

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
Copy link
Member

c4milo commented Jul 6, 2017

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
Copy link
Member

c4milo commented Jul 6, 2017

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

@cyberi0n
Copy link

cyberi0n commented Nov 18, 2018

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants