This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
juju-windows [2014/04/22 21:54] gsamfira created |
juju-windows [2015/03/22 14:58] gsamfira |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Building Juju on windows ====== | ====== Building Juju on windows ====== | ||
+ | |||
+ | For convenience, | ||
+ | |||
+ | start powershell | ||
+ | |||
+ | * Download necessary dependencies: | ||
+ | |||
+ | (new-object System.Net.WebClient).DownloadFile(" | ||
+ | (new-object System.Net.WebClient).DownloadFile(" | ||
+ | (new-object System.Net.WebClient).DownloadFile(" | ||
+ | (new-object System.Net.WebClient).DownloadFile(" | ||
+ | |||
+ | |||
+ | * Install dependencies | ||
+ | |||
+ | cmd.exe /C call msiexec /i $HOME\go1.2.1.windows-amd64.msi /qb | ||
+ | cmd.exe /C call msiexec /i $HOME\tortoisehg-2.11.2-hg-2.9.2-x64.msi /qb | ||
+ | cmd.exe /C call $HOME\bzr-2.5.1-1-setup.exe /SILENT | ||
+ | cmd.exe /C call $HOME\Git-1.9.0-preview20140217.exe /SILENT | ||
+ | |||
+ | * Add Apropriate environment variables | ||
+ | |||
+ | setx PATH " | ||
+ | setx GOPATH " | ||
+ | |||
+ | |||
+ | * set variables for current session as well. The C:\Go\bin path is set by the installer: | ||
+ | |||
+ | $env:PATH += "; | ||
+ | $env:GOPATH = " | ||
+ | mkdir $env:GOPATH | ||
+ | |||
+ | * Get juju-core and its dependencies | ||
+ | |||
+ | go get -v github.com/ | ||
+ | | ||
+ | |||
+ | * Install and run godeps | ||
+ | |||
+ | go get -v launchpad.net/ | ||
+ | $env: | ||
+ | |||
+ | |||
+ | * run install | ||
+ | |||
+ | go install github.com/ | ||
+ | |||
+ | |||
+ | :!: IMPORTANT NOTE :!: DRAGONS AHEAD :!: | ||
+ | |||
+ | If you ever get a bunch of errors like the following while compiling: | ||
+ | |||
+ | conflicting definitions for @ | ||
+ | |||
+ | Simply: | ||
+ | |||
+ | rm -Recurse -force $env: | ||
+ | |||
+ | and try again. | ||