-
Notifications
You must be signed in to change notification settings - Fork 20.5k
Installation instructions for Windows
All versions of Geth are built and available for download at https://build.ethdev.com/builds/Windows%20Go%20master%20branch/. The latest version is always available as Geth-Win64-latest.zip
- Download zip file
- Extract geth.exe from zip
- Open a command terminal
- chdir
- open geth.exe
Note: Chocolatey is stuck at 1.2.2 and deprecated. Consider using another method
For master branch:
choco install geth-stable
For more information see https://chocolatey.org/packages/geth-stable
For develop branch:
choco install geth-latest
For more information see https://chocolatey.org/packages/geth-latest
The Chocolatey package manager provides an easy way to get the required build tools installed. If you don't have chocolatey yet, follow the instructions on https://chocolatey.org to install it first.
Then open an Administrator command prompt and install the build tools we need:
C:\Windows\system32> choco install git
C:\Windows\system32> choco install golang
C:\Windows\system32> choco install mingw
Installing these packages will set up the Path
environment variable.
Open a new command prompt to get the new Path
. The following steps don't
need Administrator privileges.
First we'll create and set up a Go workspace directory layout, then clone the source.
C:\Users\xxx> set "GOPATH=%USERPROFILE%"
C:\Users\xxx> set "PATH=%USERPROFILE%\bin;%PATH%"
C:\Users\xxx> setx GOPATH "%GOPATH%"
C:\Users\xxx> setx PATH "%PATH%"
C:\Users\xxx> go get github.com/tools/godep
C:\Users\xxx> mkdir src\github.com\ethereum
C:\Users\xxx> git clone https://github.com/ethereum/go-ethereum src\github.com\ethereum\go-ethereum
C:\Users\xxx> cd src\github.com\ethereum\go-ethereum
Finally, the command to compile geth is:
C:\Users\xxx\src\github.com\ethereum\go-ethereum> godep go install -v ./...
This script installs Go, MSYS2 and the development version of geth.
https://gist.github.com/tgerring/79f018954aadfb3f406e
- Install Git from http://git-scm.com/downloads
- Install Golang from https://storage.googleapis.com/golang/go1.4.2.windows-amd64.msi
- Install winbuilds from http://win-builds.org/1.5.0/win-builds-1.5.0.exe to
c:\winbuilds
- Run win builds here. It's safe to remove big dependencies like QT and GTK which aren't needed. An exact list of dependencies should be determined
- Setup environment paths
- Add
GOROOT
pointed toc:\go
andGOPATH
toc:\godev
(you are free to pick these paths). - Set
PATH
to%PATH%;%GOROOT%\bin;%GOPATH%\bin;c:\winbuilds\bin
- Open a terminal and install godep first:
go get -u github.com/tools/godep
- Open a terminal and download go-ethereum
go get -d -u github.com/ethereum/go-ethereum
- Try building ethereum with go dep, navigate to
c:\godev\src\github.com\ethereum\go-ethereum\cmd\geth
and rungit checkout develop && godep go install
If you want to build from an other branch bypass godep go install
for go install
and checkout the dependencies manually.