Skip to content

Commit

Permalink
Improve compile instructions in README
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk authored and ry committed May 31, 2018
1 parent c150c32 commit 4dce562
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,25 +68,36 @@ Roadmap is here: https://github.com/ry/deno/blob/master/TODO.txt
I will release binaries at some point but for now you have to build it
yourself.

You will need [Go](https://golang.org/) with `$GOPATH` defined and
`$GOPATH/bin` in your `$PATH`. You will also need
[yarn](https://yarnpkg.com/lang/en/docs/install/) installed.

You need Protobuf 3. On Linux this might work:
```
cd ~
wget https://github.com/google/protobuf/releases/download/v3.1.0/protoc-3.1.0-linux-x86_64.zip
unzip protoc-3.1.0-linux-x86_64.zip
export PATH=$HOME/bin:$PATH
> cd ~
> wget https://github.com/google/protobuf/releases/download/v3.1.0/protoc-3.1.0-linux-x86_64.zip
> unzip protoc-3.1.0-linux-x86_64.zip
> export PATH=$HOME/bin:$PATH
```

On macOS, using [HomeBrew](https://brew.sh/):
```
> brew install protobuf
```

Then you need `protoc-gen-go` and `go-bindata`:
```
go get -u github.com/golang/protobuf/protoc-gen-go
go get -u github.com/jteeuwen/go-bindata/...
> go get -u github.com/golang/protobuf/protoc-gen-go
> go get -u github.com/jteeuwen/go-bindata/...
```

You need to get and build `v8worker2`. It takes about 30 minutes to build:
You need to get and build `v8worker2`. The package will not build with `go
get` and will log out an error, which can be ignored. It takes about 30 minutes
to build:
```
go get -u github.com/ry/v8worker2
cd $GOPATH/src/github.com/ry/v8worker2
./build.py --use_ccache
> go get -u github.com/ry/v8worker2
> cd $GOPATH/src/github.com/ry/v8worker2
> ./build.py --use_ccache
```

Finally you can get `deno` and its other Go deps.
Expand Down

0 comments on commit 4dce562

Please sign in to comment.