OSX: Unable to compile
rtfmoz opened this issue · 4 comments
HAL:~ kevin$ export PATH=$PATH:/usr/local/go/bin
HAL:~ kevin$ go version
go version go1.3.3 darwin/amd64
HAL:~ kevin$ export GOPATH=$HOME/gocode
HAL:~ kevin$ mkdir -p $GOPATH
HAL:~ kevin$ go get mumble.info/grumble/cmd/grumble
package mumble.info/grumble/cmd/grumble: unrecognized import path "mumble.info/grumble/cmd/grumble"
HAL:~ kevin$
Mac OSX 10.9 Yosemite, Macbook Pro
You should be able to compile grumble if you clone the repo, then move it manually into a Go path. Try something like what is done in this build script:
cd ~
mkdir -p gocode/src/mumble.info
cd gocode
export GOPATH="$(pwd)"
cd src/mumble.info
git clone git@github.com:mumble-voip/grumble.git
go get mumble.info/grumble/cmd/grumble
cd ../../bin
./grumble
HAL9002:~ kevin$ rm -rf gocode
HAL9002:~ kevin$ mkdir -p gocode/src/mumble.info
HAL9002:~ kevin$ cd gocode
HAL9002:gocode kevin$ export GOPATH="$(pwd)"
HAL9002:gocode kevin$ cd src/mumble.info
HAL9002:mumble.info kevin$ git clone git@github.com:mumble-voip/grumble.git
Cloning into 'grumble'...
The authenticity of host 'github.com (192.30.252.130)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,192.30.252.130' (RSA) to the list of
known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
On Wed, Nov 26, 2014 at 11:59 PM, Tim Cooper notifications@github.com
wrote:
You should be able to compile grumble if you clone the repo, then move it
manually into a Go path. Try something like what is done in this build
script
https://github.com/bontibon/pkgbuilds/blob/master/grumble-git/PKGBUILD:cd ~
mkdir -p gocode/src/mumble.info
cd gocode
export GOPATH="$(pwd)"
cd src/mumble.info
git clone git@github.com:mumble-voip/grumble.git
go get mumble.info/grumble/cmd/grumble
cd ../../bin
./grumble—
Reply to this email directly or view it on GitHub
#1 (comment).
It looks like you have not fully configured your GitHub account. You could try cloning via HTTPS, rather than SSH:
git clone https://github.com/mumble-voip/grumble.git
Thanks for the tip. After adding my SSH keys to github, your instructions worked.