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

1.5.0 compile eror #3277

Closed
BorilloB opened this issue Nov 16, 2016 · 17 comments
Closed

1.5.0 compile eror #3277

BorilloB opened this issue Nov 16, 2016 · 17 comments
Milestone

Comments

@BorilloB
Copy link

System information

OS & Version: Windows/Linux/OSX Ubuntu 14.04.5 LTS
go version go1.5.1 linux/amd64

Steps to reproduce the behaviour

/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

@fjl
Copy link
Contributor

fjl commented Nov 16, 2016

This should now be fixed on master and will go into the next release.

@fjl fjl added this to the 1.5.1 milestone Nov 16, 2016
@BorilloB
Copy link
Author

confirm.
close.

@Kojee
Copy link

Kojee commented Jan 12, 2017

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

@karalabe
Copy link
Member

What version of Geth are you building? Please post the commit hash.

@Kojee
Copy link

Kojee commented Jan 12, 2017

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 e0ceeab

@0xtuytuy
Copy link

@Kojee have you found a solution to this ?

@karalabe
Copy link
Member

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/ ?

@Kojee
Copy link

Kojee commented Feb 14, 2017

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.

@EasonWang01
Copy link

EasonWang01 commented Mar 7, 2017

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

2017-03-07 10 59 53

@EasonWang01
Copy link

EasonWang01 commented Mar 7, 2017

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...

2017-03-07 11 16 07

2017-03-07 11 16 17

@grmpz
Copy link

grmpz commented Apr 1, 2017

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

@karalabe
Copy link
Member

karalabe commented Apr 1, 2017

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

@littleskunk
Copy link

littleskunk commented Apr 1, 2017

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 105b37f

Same error with git clone https://github.com/ethereum/go-ethereum -b v1.5.9

@neerajkumarjha
Copy link

I fix the problem on ubuntu.

  1. Open /home/.bashrc file
  2. add the GO lang path
    export GOROOT=/usr/local/go
    export PATH=$GOPATH/bin:$GOROOT/bin:$PATH\
  3. save the file
  4. Open new tab
  5. navigate to go-etherium folder
  6. run the command "make geth "

@Odim2010
Copy link

Odim2010 commented Jul 22, 2018

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

@FatCache
Copy link

FatCache commented Aug 13, 2018

I'm having the same issue on Ubuntu 16.04 when I try to do make geth The following error is thrown at me:



Makefile:15: recipe for target 'geth' failed
make: *** [geth] Error 2

I'm updated my ~/.bashrc with all the environmental table set for $GOROOT, $GOPATH & PATH. go1.7.x is 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.

@karalabe
Copy link
Member

Go 1.8.0 is the current minimum as far as I know.

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