From 73c3d9b9e1c0000f44d04ed3be8d5d6880d1b581 Mon Sep 17 00:00:00 2001 From: helinb <1696060289@qq.com> Date: Sun, 27 Sep 2015 20:02:28 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0archlinux=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spec/install.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/install.md b/spec/install.md index 712dc07ff7..0ca488f13b 100644 --- a/spec/install.md +++ b/spec/install.md @@ -12,10 +12,18 @@ 3. go get github.com/v2ray/v2ray-core 4. go build github.com/v2ray/v2ray-core/release/server +### archlinux 编译源文件 +1. 安装 Git: sudo pacman -S git +2. 安装 golang:sudo pacman -S go + 1. export GOPATH=$HOME/work +3. go get github.com/v2ray/v2ray-core +4. go build github.com/v2ray/v2ray-core/release/server + ### Debian / Ubuntu sudo bash <(curl -s https://raw.githubusercontent.com/v2ray/v2ray-core/master/release/install.sh) 此脚本会自动安装 git 和 golan 1.5 (如果系统上没有的话),然后把 v2ray 编译到 $GOPATH/bin/v2ray,新装的 golang 会把 GOPATH 设定到 /v2ray。 + ## 配置和运行 [链接](https://github.com/V2Ray/v2ray-core/blob/master/spec/guide.md) From 21e7e8ad2d3f4a4bf18436f9786aee442bae1332 Mon Sep 17 00:00:00 2001 From: helinb <1696060289@qq.com> Date: Sun, 27 Sep 2015 20:20:17 +0800 Subject: [PATCH 2/2] Update install.md --- spec/install.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/install.md b/spec/install.md index 0ca488f13b..3442c422d9 100644 --- a/spec/install.md +++ b/spec/install.md @@ -17,7 +17,7 @@ 2. 安装 golang:sudo pacman -S go 1. export GOPATH=$HOME/work 3. go get github.com/v2ray/v2ray-core -4. go build github.com/v2ray/v2ray-core/release/server +4. go build -o $GOPATH/bin/v2ray -compiler gc github.com/v2ray/v2ray-core/release/server ### Debian / Ubuntu sudo bash <(curl -s https://raw.githubusercontent.com/v2ray/v2ray-core/master/release/install.sh)