소스 검색

Merge pull request #2321 from gmembre/master

Adding GOPATH
Torkel Ödegaard 10 년 전
부모
커밋
4bc5b37c09
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      docs/sources/project/building_from_source.md

+ 3 - 2
docs/sources/project/building_from_source.md

@@ -17,6 +17,7 @@ dev environment.
 ## Get Code
 ## Get Code
 
 
 ```
 ```
+export GOPATH=`pwd`
 go get github.com/grafana/grafana
 go get github.com/grafana/grafana
 ```
 ```
 
 
@@ -24,11 +25,11 @@ go get github.com/grafana/grafana
 ```
 ```
 cd $GOPATH/src/github.com/grafana/grafana
 cd $GOPATH/src/github.com/grafana/grafana
 go run build.go setup            (only needed once to install godep)
 go run build.go setup            (only needed once to install godep)
-godep restore                    (will pull down all golang lib dependecies in your current GOPATH)
+$GOPATH/bin/godep restore                    (will pull down all golang lib dependecies in your current GOPATH)
 go build .
 go build .
 ```
 ```
 
 
-# Building on Windows
+## Building on Windows
 The Grafana backend includes Sqlite3 which requires GCC to compile. So in order to compile Grafana on windows you need
 The Grafana backend includes Sqlite3 which requires GCC to compile. So in order to compile Grafana on windows you need
 to install GCC. We recommend [TDM-GCC](http://tdm-gcc.tdragon.net/download).
 to install GCC. We recommend [TDM-GCC](http://tdm-gcc.tdragon.net/download).