bluenergy / snova

Automatically exported from code.google.com/p/snova
1 stars 0 forks source link

[how-to] compile gsnova for linux i386 #498

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
配置环境
sudo pacman -Syu go # Archlinux 安装 go 包

编译
git clone https://github.com/yinqiwen/gsnova.git # 下载 gsnova
rm gsnova/src/main/icon.syso # 解决编译出错问题
nano gsnova/src/common/logger.go # 把 func Write 
里面的内容除了最后一行 ‘return len(p), nil’ 
其它全部在前面加“//”注释掉,解决编译出错问题
git clone https://github.com/yinqiwen/godns.git gsnova/src/github.com/yinqiwen 
# 下载 godns,解决编译出错问题
chmod +x build.sh # 让编译程序变成可运行
./build.sh dist gsnova # 进行32位系统的编译,注意后面两个参数

运行
tar -xf gsnova_0.22.1_linux_386.tar.gz
cd gsnova-0.22.1
nano gsnova.conf # 添加 WorkerNode[0]= 你部署的 
appid,删掉最后一行"#AutoOpenWebUI=false"前面的"#"
./gsnova

Original issue reported on code.google.com by westmin...@gmail.com on 29 Dec 2013 at 7:39