OS & Version: Windows/Linux/OSX Ubuntu 14.04.5 LTS
go version go1.5.1 linux/amd64
/go-ethereum-1.5.0# make geth
build/env.sh go run build/ci.go install ./cmd/geth
internal/build/azure.go:23:2: cannot find package "github.com/Azure/azure-sdk-for-go/storage" in any of:
/usr/lib/go/src/github.com/Azure/azure-sdk-for-go/storage (from $GOROOT)
/go-ethereum-1.5.0/build/_workspace/src/github.com/Azure/azure-sdk-for-go/storage (from $GOPATH)
internal/build/pgp.go:27:2: cannot find package "golang.org/x/crypto/openpgp" in any of:
/usr/lib/go/src/golang.org/x/crypto/openpgp (from $GOROOT)
/go-ethereum-1.5.0/build/_workspace/src/golang.org/x/crypto/openpgp (from $GOPATH)
make: * [geth] Error 1
This should now be fixed on master and will go into the next release.
confirm.
close.
I'm having the same problem on my raspberry pi B:
sudo make geth
build/env.sh go run build/ci.go install ./cmd/geth
build/_workspace/src/github.com/ethereum/go-ethereum/internal/build/azure.go:23:2: cannot find package "github.com/Azure/azure-sdk-for-go/storage" in any of:
/usr/lib/go/src/pkg/github.com/Azure/azure-sdk-for-go/storage (from $GOROOT)
/home/pi/go-ethereum/build/_workspace/src/github.com/Azure/azure-sdk-for-go/storage (from $GOPATH)
build/_workspace/src/github.com/ethereum/go-ethereum/internal/build/pgp.go:27:2: cannot find package "golang.org/x/crypto/openpgp" in any of:
/usr/lib/go/src/pkg/golang.org/x/crypto/openpgp (from $GOROOT)
/home/pi/go-ethereum/build/_workspace/src/golang.org/x/crypto/openpgp (from $GOPATH)
Makefile:15: recipe for target 'geth' failed
make: * [geth] Error 1
What version of Geth are you building? Please post the commit hash.
I reinstalled my raspbian because I messed with golang installations.
Now i get this error:
sudo make geth
build/env.sh go run build/ci.go install ./cmd/geth
build/env.sh: 31: exec: go: not found
Makefile:15: recipe for target 'geth' failed
make: * [geth] Error 127
Where do I find the commit hash?
Also I've installed golang following the golang Getting started guide, and I didn't use sudo apt-get install -y build-essential golang fearing that it would break my installation.
Do I need to run it?
EDIT: after running it, it installed go version 1.3.3 as expected so now I have two versions of go, and I get the same error as before.
I think this is the commit hash e0ceeab0d111ada7d847c83992d2ff3128bfb959
@Kojee have you found a solution to this ?
build/env.sh: 31: exec: go: not found
Apparently you don't have Go installed? If you want to build Geth you'll need to do that yourself. Otherwise why not grab a pre-built binary from https://geth.ethereum.org/downloads/ ?
Yeah I solved it using a pre builth geth binary, sorry for not clarifying earlier.
At the time of the problem the download page https://geth.ethereum.org/downloads/ couldn't load.
Hi,could I ask if I already install golang https://www.digitalocean.com/community/tutorials/how-to-install-go-1-6-on-ubuntu-14-04
why it still got this error,thanks.
on ubuntu RPI3

After manually go get github.com/Azure/azure-sdk-for-go/storage
git clone https://github.com/Azure/azure-sdk-for-go.git then put it into/usr/lib/go/src/pkg
But another error happend...


FWIW to anyone hitting this thread - I had this issue with Mint 17.3 (Ubuntu 14.04) and go 1.5. Upgrading go to 1.7.5 fixed all the issues
Go 1.5 required the GO15VENDOREXPERIMENT env var to be set to 1. (Alternatively typing 'make geth' would have set it automatically). Please note, Geth 1.6 raised the minimum requirements for Go to 1.7
I have the same problem. I followed the guide https://github.com/ethereum/go-ethereum/wiki/Installation-Instructions-for-Ubuntu#building-from-source and used Go 1.7.3. Later I updated to Go 1.8. Always the same error message.
root@ethereum:~/go-ethereum# make geth
build/env.sh go run build/ci.go install ./cmd/geth
build/_workspace/src/github.com/ethereum/go-ethereum/internal/build/azure.go:23:2: cannot find package "github.com/Azure/azure-sdk-for-go/storage" in any of:
/usr/lib/go/src/pkg/github.com/Azure/azure-sdk-for-go/storage (from $GOROOT)
/root/go-ethereum/build/_workspace/src/github.com/Azure/azure-sdk-for-go/storage (from $GOPATH)
build/_workspace/src/github.com/ethereum/go-ethereum/internal/build/pgp.go:27:2: cannot find package "golang.org/x/crypto/openpgp" in any of:
/usr/lib/go/src/pkg/golang.org/x/crypto/openpgp (from $GOROOT)
/root/go-ethereum/build/_workspace/src/golang.org/x/crypto/openpgp (from $GOPATH)
Makefile:15: recipe for target 'geth' failed
make: *** [geth] Error 1
Last commit 105b37f1b4f77a50625dc997eaab9d71c52495df
Same error with git clone https://github.com/ethereum/go-ethereum -b v1.5.9
I fix the problem on ubuntu.
By using Ubuntu:
Download go-ethereum package:
git clone https://github.com/ethereum/go-ethereum
Install go:
sudo apt install golang-go
Get in go-ethereum folder:
cd go-ethereum
Install geth
make geth
or make all for building the full suite of utilities
then:
By using Power Shell:
Install chocolate:
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
will be continued
I'm having the same issue on Ubuntu 16.04 when I try to do
make gethThe following error is thrown at me:Makefile:15: recipe for target 'geth' failed make: *** [geth] Error 2I'm updated my
~/.bashrcwith all the environmental table set for $GOROOT, $GOPATH & PATH.go1.7.xis tar'ed at/usr/local/
After countless debugging, turns out you need go 1.10 installed - clean install and configure $GOROOT, $GOPATH & PATH all manually.
Go 1.8.0 is the current minimum as far as I know.
Most helpful comment
I fix the problem on ubuntu.
export GOROOT=/usr/local/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH\