User Tools

Site Tools


juju-windows

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
juju-windows [2014/04/22 22:46]
gsamfira
juju-windows [2015/03/23 17:37] (current)
gsamfira
Line 15: Line 15:
   * Install dependencies   * Install dependencies
  
-  msiexec /i $HOME\go1.2.1.windows-amd64.msi /quiet +  cmd.exe /C call msiexec /i $HOME\go1.2.1.windows-amd64.msi /qb 
-  msiexec /i $HOME\tortoisehg-2.11.2-hg-2.9.2-x64.msi /quiet +  cmd.exe /C call msiexec /i $HOME\tortoisehg-2.11.2-hg-2.9.2-x64.msi /qb 
-  $HOME\bzr-2.5.1-1-setup.exe /SILENT +  cmd.exe /C call $HOME\bzr-2.5.1-1-setup.exe /SILENT 
-  $HOME\Git-1.9.0-preview20140217.exe /SILENT+  cmd.exe /C call $HOME\Git-1.9.0-preview20140217.exe /SILENT
  
   * Add Apropriate environment variables   * Add Apropriate environment variables
Line 26: Line 26:
  
  
-  * set variables for current session as well:+  * set variables for current session as well. The C:\Go\bin path is set by the installer:
  
-  $env:PATH = "$env:PATH;${env:ProgramFiles(x86)}\Git\cmd;${env:ProgramFiles(x86)}\Bazaar;${env:ProgramFiles}\TortoiseHg"+  $env:PATH += ";${env:ProgramFiles(x86)}\Git\cmd;${env:ProgramFiles(x86)}\Bazaar;${env:ProgramFiles}\TortoiseHg;C:\go\bin"
   $env:GOPATH = "$HOME\golang"   $env:GOPATH = "$HOME\golang"
   mkdir $env:GOPATH   mkdir $env:GOPATH
Line 34: Line 34:
   * Get juju-core and its dependencies   * Get juju-core and its dependencies
  
-  go get launchpad.net/juju-core/...+  go get -v github.com/juju/juju/... 
 +  
  
 +  * Install and run godeps
  
-  * Get our patched version from gitThis contains the windows support:+  go get -v launchpad.net/godeps 
 +  & $env:GOPATH\bin\godeps.exe -f -u $env:GOPATH\src\github.com\juju\juju\dependencies.tsv
  
-  rm -Recurse -Force $env:GOPATH\src\launchpad.net\juju-core 
-  git clone https://github.com/cloudbase/juju-core.git $env:GOPATH\src\launchpad.net\juju-core 
-  cd $env:GOPATH\src\launchpad.net\juju-core && git checkout rebase-1.19 
  
-  * Because of the way Go works, you will always get the latest revisions of dependencies. This might sometimes break the build of juju. The checkout from 19 April needs the following hack:+  * run install
  
-  cd $env:GOPATH\src\code.google.com\p\go.crypto\ssh +  go install github.com/juju/juju/...
-  hg update -r 191:2990fc550b9f # hack for this particular checkout of juju+
  
-  * Build juju-core on windows 
- 
-  go install -v launchpad.net/juju-core/... 
- 
-  * Binaries can be found in $env:GOPATH\bin 
  
 :!: IMPORTANT NOTE :!: DRAGONS AHEAD :!: :!: IMPORTANT NOTE :!: DRAGONS AHEAD :!:
  
-If you ever get a bunch of errors like the following:+If you ever get a bunch of errors like the following while compiling:
  
   conflicting definitions for @   conflicting definitions for @
juju-windows.1398195975.txt.gz · Last modified: 2014/04/22 22:46 (external edit)