install.md 930 字节
Newer Older
1 2 3 4
# Installation on OSX

Please use the following steps to build and install Delve on OSX.

5 6 7 8 9 10 11 12 13 14
## Via Homebrew

If you have [HomeBrew](http://brew.sh/) installed, simply run:

```
$ brew install go-delve/delve/delve
```

## Manual install

D
Derek Parker 已提交
15 16 17 18 19 20
Ensure you have a proper compilation toolchain.

This should be as simple as:

`xcode-select --install`

21
Now you can install delve using `go get`:
22

23 24 25
```
$ go get github.com/derekparker/delve/cmd/dlv
```
26

27
With this method you will not be able to use delve's native backend.
28

29
Alternatively, you can clone the repo and run:
30

31 32 33
```
$ make install
```
34

35
The makefile will take care of creating and installing a self-signed certificate automatically.
36

37
Note: If you are using Go 1.5 you must set `GO15VENDOREXPERIMENT=1` before continuing. The `GO15VENDOREXPERIMENT` env var simply opts into the [Go 1.5 Vendor Experiment](https://docs.google.com/document/d/1Bz5-UB7g2uPBdOx-rw5t9MxJwkfpx90cqG9AFL0JAYo/).