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

Error installing the plugin #2

Closed
radmiraal opened this issue Apr 25, 2014 · 4 comments
Closed

Error installing the plugin #2

radmiraal opened this issue Apr 25, 2014 · 4 comments

Comments

@radmiraal
Copy link

Hi,

First of all thanks for this work ;) Looking forward to give it a try. Unfortunately I can't get it compiled, while following the install procedure from the readme is get the follpwing during the make step:

make
==> Installing dependencies
==> Building
==> Verifying Go
==> Installing dependencies to speed up builds...
# github.com/rickard-von-essen/packer-parallels/builder/parallels/common
builder/parallels/common/ssh.go:31: undefined: "code.google.com/p/go.crypto/ssh".ClientAuth
builder/parallels/common/ssh.go:43: undefined: "code.google.com/p/go.crypto/ssh".ClientAuthKeyring
builder/parallels/common/ssh.go:53: undefined: "code.google.com/p/go.crypto/ssh".ClientKeyring
builder/parallels/common/ssh_config.go:49: cannot assign <T> to _ (type blank) in multiple assignment
make: *** [all] Error 2
@rickard-von-essen
Copy link
Owner

This is due to: hashicorp/packer#1019
Also see #1

I will push a fix to this.

Be sure to run make updatedeps after git pull.

Hope to get some more feedback on this when you have it up and running. I'll started on trying to get this merged into Packer, but it might take some time before that is done and released.

@radmiraal
Copy link
Author

hey, thanks, I got it working now. Had to install some extra dependencies and run make updatedeps a few times. Maybe it's good to add go, mercurial and bzr as dependencies for the building (didn't have any of those installed before), and I had to do a 'go get github.com/mitchellh/gox' as I got 'gox: command not found' during the make.

But now: installed ;-)

@legal90
Copy link

legal90 commented Apr 26, 2014

Sorry, but it is not working for me. make updatedeps completed successfully, but make failed:

# github.com/rickard-von-essen/packer-parallels/builder/parallels/common
builder/parallels/common/ssh.go:32: undefined: "github.com/mitchellh/packer/communicator/ssh".Password
builder/parallels/common/ssh.go:34: cannot use "github.com/mitchellh/packer/communicator/ssh".PasswordKeyboardInteractive(config.SSHPassword) (type "code.google.com/p/go.crypto/ssh".KeyboardInteractiveChallenge) as type "code.google.com/p/gosshold/ssh".ClientKeyboardInteractive in function argument:
    "code.google.com/p/go.crypto/ssh".KeyboardInteractiveChallenge does not implement "code.google.com/p/gosshold/ssh".ClientKeyboardInteractive (missing Challenge method)
builder/parallels/common/ssh.go:65: undefined: "github.com/mitchellh/packer/communicator/ssh".SimpleKeychain
make: *** [all] Error 2

P.s. I'm not familiar with Golang. Could you please help me - what should I do to install this builder? Thanks.

@rickard-von-essen
Copy link
Owner

Packer is just in a phase where they change to a new upstream SSH lib version. Since every dependency is taken from master I have to update this code at the same pace.

I'll update the code in a moment.

Just for reference this should be enough to get this building:

  • Go and dependencies
brew install go mercurial git bzr

Setting up a dev env:

mkdir -p ~/src/go-code/src/github.com/rickard-von-essen
export GOPATH=~/src/go-code
cd $GOPATH/src/go-code/src/github.com/rickard.von.essen
git clone https://github.com/rickard-von-essen/packer-parallels.git
go get github.com/mitchellh/gox
cd packer-parallels
make
make test

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

3 participants