mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
Improve compile instructions in README
This commit is contained in:
parent
c150c320c6
commit
4dce562333
1 changed files with 21 additions and 10 deletions
31
README.md
31
README.md
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue